diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-04-25 19:43:53 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-04-25 19:44:17 +0300 |
commit | 00f5c621a65b6bc9847776b2542588835fb4054c (patch) | |
tree | 1b8c66395b8d8a94e85e2263a0e7a772ad03ee30 /source/blender/editors/space_outliner/outliner_intern.h | |
parent | 973f4944e08c449d68b43edf39d9cb2d209f4b7a (diff) |
Outliner: Re-build depsgraph when reordering collections
Otherwise if we create a new collection, and drag a collection into it we either
get a crash, or at the very least we dont get the visibility flags correct.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_intern.h')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index 2256e55a315..06b37377535 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -39,6 +39,7 @@ struct wmOperatorType; struct TreeElement; struct TreeStoreElem; +struct Main; struct bContext; struct Scene; struct SceneLayer; @@ -68,7 +69,8 @@ typedef enum TreeTraversalAction { * Callback type for reinserting elements at a different position, used to allow user customizable element order. * Passing scene right now, may be better to allow some custom data. */ -typedef void (*TreeElementReinsertFunc)(const struct Scene *scene, struct TreeElement *insert_element, +typedef void (*TreeElementReinsertFunc)(struct Main *bmain, const struct Scene *scene, + struct TreeElement *insert_element, struct TreeElement *insert_handle, TreeElementInsertType action); /** * Executed on (almost) each mouse move while dragging. It's supposed to give info |