diff options
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_depsgraph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c index 843c53d5fd3..1c505d757ff 100644 --- a/source/blender/makesrna/intern/rna_depsgraph.c +++ b/source/blender/makesrna/intern/rna_depsgraph.c @@ -151,7 +151,10 @@ static void rna_DepsgraphObjectInstance_matrix_world_get(PointerRNA *ptr, float copy_m4_m4((float(*)[4])mat, deg_iter->dupli_object_current->mat); } else { - unit_m4((float(*)[4])mat); + /* We can return actual object's matrix here, no reason to return identity matrix + * when this is not actually an instance... */ + Object *ob = (Object *)iterator->current; + copy_m4_m4((float(*)[4])mat, ob->obmat); } } |