diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-01-23 13:20:42 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-01-23 13:20:42 +0400 |
commit | 6c1c6f22cea9729c40e02ed45374bad31fbca6dd (patch) | |
tree | c6433821f7ac73cd3f757d2de09afc1db00360ab /source/blender/blenkernel/BKE_scene.h | |
parent | 1713db203583a1b93143b14dfa77eb447697deac (diff) |
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
Diffstat (limited to 'source/blender/blenkernel/BKE_scene.h')
-rw-r--r-- | source/blender/blenkernel/BKE_scene.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_scene.h b/source/blender/blenkernel/BKE_scene.h index 4ff1c8ba3a4..d19c281afb8 100644 --- a/source/blender/blenkernel/BKE_scene.h +++ b/source/blender/blenkernel/BKE_scene.h @@ -83,7 +83,8 @@ void BKE_scene_base_select(struct Scene *sce, struct Base *selbase); typedef struct SceneBaseIter { struct ListBase *duplilist; struct DupliObject *dupob; - int fase; + float omat[4][4]; + int phase; } SceneBaseIter; int BKE_scene_base_iter_next(struct EvaluationContext *eval_ctx, struct SceneBaseIter *iter, |