diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-10 16:41:28 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-10 16:41:28 +0300 |
commit | 0c82ba4213577c1b02b2060888f8c43c265c1637 (patch) | |
tree | 870d6cdf52b97cd199c8ec8000d7cbbb029465bb /source/blender/makesdna | |
parent | d70ffd375fdf444f50a693f74ca79fe248337cda (diff) |
Data previews: add preview to Object, Group and Scene.
This commit does not add anything yet to users, it’s purely internal one.
Useful commit is next. ;)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_group_types.h | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_group_types.h b/source/blender/makesdna/DNA_group_types.h index 2740281b4c0..45dd0cb9ff2 100644 --- a/source/blender/makesdna/DNA_group_types.h +++ b/source/blender/makesdna/DNA_group_types.h @@ -52,7 +52,9 @@ typedef struct Group { ID id; ListBase gobject; /* GroupObject */ - + + struct PreviewImage *preview; + /* Bad design, since layers stored in the scenes 'Base' * the objects that show in the group can change depending * on the last used scene */ diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index 0a454d4f281..2937be7d133 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -296,6 +296,8 @@ typedef struct Object { ListBase lodlevels; /* contains data for levels of detail */ LodLevel *currentlod; + + struct PreviewImage *preview; } Object; /* Warning, this is not used anymore because hooks are now modifiers */ diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index fd6d39c9ce6..f9cea3871f6 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1443,6 +1443,8 @@ typedef struct Scene { /* RigidBody simulation world+settings */ struct RigidBodyWorld *rigidbody_world; + + struct PreviewImage *preview; } Scene; /* **************** RENDERDATA ********************* */ |