Tugcga / Sycles

Cycles render integration into Softimage
5 stars 1 forks source link

Update color of the instance object #1

Closed Tugcga closed 1 year ago

Tugcga commented 1 year ago

Example scene: pointcloud with instance shape from the scene object. Shader of the instance use an object color. When the scene is rendered at the first time, then it properly assign object color from poincloud point attribute. But if then change instance object geometry (or CyclesMesh property), then it use the color of the instance master object, instead of the poitcloud color attribute.

The reason in this line. It updates the color for all instances and get value from the instance master. May be we shouldn't reassign the color in update method, but only at the creation object case.

Tugcga commented 1 year ago

Fixed. Will be available after update 2.1.2.