diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-03-02 20:12:30 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-03-02 20:12:30 +0300 |
commit | 5ce6388f7c2a7fed483ae3ff187063f94f139e94 (patch) | |
tree | 6cbaf43e123924517299a91536020cbf7a3806dd /source/blender/blenkernel | |
parent | 0322700d875a1d518a730512531a881f1278124b (diff) |
Outliner: add hooks for (yet to be implemented) layer reordering routines
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_collection.h | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_collection.h b/source/blender/blenkernel/BKE_collection.h index 45014b801b5..e090584ad7a 100644 --- a/source/blender/blenkernel/BKE_collection.h +++ b/source/blender/blenkernel/BKE_collection.h @@ -52,6 +52,9 @@ void BKE_collection_object_add_from(struct Scene *scene, struct Object *ob_src, void BKE_collection_object_remove(struct Main *bmain, struct Scene *scene, struct SceneCollection *sc, struct Object *object, const bool free_us); void BKE_collections_object_remove(struct Main *bmain, struct Scene *scene, struct Object *object, const bool free_us); +void BKE_collection_reinsert_after(const struct Scene *scene, struct SceneCollection *sc_reinsert, struct SceneCollection *sc_after); +void BKE_collection_reinsert_into(struct SceneCollection *sc_reinsert, struct SceneCollection *sc_into); + typedef void (*BKE_scene_objects_Cb)(struct Object *ob, void *data); typedef void (*BKE_scene_collections_Cb)(struct SceneCollection *ob, void *data); diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c index 370a5953964..eac0fc7a2fd 100644 --- a/source/blender/blenkernel/intern/collection.c +++ b/source/blender/blenkernel/intern/collection.c @@ -298,6 +298,18 @@ void BKE_collections_object_remove(Main *bmain, Scene *scene, Object *ob, const FOREACH_SCENE_COLLECTION_END } +void BKE_collection_reinsert_after(const struct Scene *scene, SceneCollection *sc_reinsert, SceneCollection *sc_after) +{ + UNUSED_VARS(scene, sc_reinsert, sc_after); + TODO_LAYER_OPERATORS; +} + +void BKE_collection_reinsert_into(SceneCollection *sc_reinsert, SceneCollection *sc_into) +{ + UNUSED_VARS(sc_reinsert, sc_into); + TODO_LAYER_OPERATORS; +} + /* ---------------------------------------------------------------------- */ /* Iteractors */ /* scene collection iteractor */ |