Fix #32144: cycles viewport missing update with dupliverts. Ideally this would be

fixed in the dependency graph so it gives a proper signal but that would need a
bigger refactor.
This commit is contained in:
Brecht Van Lommel 2012-09-03 13:18:23 +00:00
parent 1f64aecb30
commit 264975b89c

@ -248,7 +248,9 @@ void BlenderSync::sync_object(BL::Object b_parent, int b_index, BL::Object b_ob,
}
/* object sync */
if(object_updated || (object->mesh && object->mesh->need_update)) {
/* transform comparison should not be needed, but duplis don't work perfect
* in the depsgraph and may not signal changes, so this is a workaround */
if(object_updated || (object->mesh && object->mesh->need_update) || tfm != object->tfm) {
object->name = b_ob.name().c_str();
object->pass_id = b_ob.pass_index();
object->tfm = tfm;