diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-04-29 15:38:39 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-04-29 15:52:04 +0400 |
commit | 7544961ea5177b61b8f1f07e156cac28afe29764 (patch) | |
tree | 3a89976a66f7cc0bbd19b11a531f8b324a1e1be5 /source/blender/blenkernel/BKE_anim.h | |
parent | 182e97a2cd4bdca9709dbbd1a4e6c175aed448a6 (diff) |
Fix T39942: Displacement of group instance objects when switching to textured viewport shading
Usual dupli object issue, sometimes it's needed that all the object in
dupli group have modified obmat.
Made it an utility function now, which is used by convertblender and
dupli draw code now.
Diffstat (limited to 'source/blender/blenkernel/BKE_anim.h')
-rw-r--r-- | source/blender/blenkernel/BKE_anim.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_anim.h b/source/blender/blenkernel/BKE_anim.h index e87fef1c864..e49fe98aa14 100644 --- a/source/blender/blenkernel/BKE_anim.h +++ b/source/blender/blenkernel/BKE_anim.h @@ -71,5 +71,17 @@ struct ListBase *object_duplilist(struct EvaluationContext *eval_ctx, struct Sce void free_object_duplilist(struct ListBase *lb); int count_duplilist(struct Object *ob); -#endif +typedef struct DupliExtraData { + float obmat[4][4]; +} DupliExtraData; + +typedef struct DupliApplyData { + int num_objects; + DupliExtraData *extra; +} DupliApplyData; +DupliApplyData *duplilist_apply_matrix(struct ListBase *duplilist); +void duplilist_restore_matrix(struct ListBase *duplilist, DupliApplyData *apply_data); +void duplilist_free_apply_data(DupliApplyData *apply_data); + +#endif |