Fix T41003: Object Info's Random socket produces erratic results when
material is applied to multiple Dupli instances of an object. One of the random_id initialization lines for cycles objects slipped into the basic update part in this commit: rBb98ff5cb5b2c14c33b16e3b129e1e08810e90a6c This would constantly re-shuffle the random_id ...
This commit is contained in:
@@ -289,7 +289,6 @@ Object *BlenderSync::sync_object(BL::Object b_parent, int persistent_id[OBJECT_P
|
|||||||
uint visibility = object_ray_visibility(b_ob) & PATH_RAY_ALL_VISIBILITY;
|
uint visibility = object_ray_visibility(b_ob) & PATH_RAY_ALL_VISIBILITY;
|
||||||
if(b_parent.ptr.data != b_ob.ptr.data) {
|
if(b_parent.ptr.data != b_ob.ptr.data) {
|
||||||
visibility &= object_ray_visibility(b_parent);
|
visibility &= object_ray_visibility(b_parent);
|
||||||
object->random_id ^= hash_int(hash_string(b_parent.name().c_str()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* make holdout objects on excluded layer invisible for non-camera rays */
|
/* make holdout objects on excluded layer invisible for non-camera rays */
|
||||||
|
|||||||
Reference in New Issue
Block a user