Removed the omat matrix from DupliObject.
authorLukas Tönne <lukas.toenne@gmail.com>
Thu, 23 Jan 2014 09:20:42 +0000 (10:20 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Thu, 23 Jan 2014 09:20:42 +0000 (10:20 +0100)
commit6c1c6f22cea9729c40e02ed45374bad31fbca6dd
treec6433821f7ac73cd3f757d2de09afc1db00360ab
parent1713db203583a1b93143b14dfa77eb447697deac
Removed the omat matrix from DupliObject.

This was storing the original object matrix, which builds on the
assumption that obmat is modified during dupli construction, which is a
bad hack.

Now the obmats are still modified, but this only happens outside of the
dupli system itself and the original ("omat") is stored as local
variables in the same place where the obmat manipulation takes place.
This is easier to follow and avoids hidden hacks as much as possible.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D254
source/blender/blenkernel/BKE_scene.h
source/blender/blenkernel/intern/object_dupli.c
source/blender/blenkernel/intern/scene.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_view.c
source/blender/gpu/intern/gpu_material.c
source/blender/makesdna/DNA_object_types.h
source/blender/makesrna/intern/rna_object.c
source/blender/render/intern/source/convertblender.c