diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-02 20:12:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-02 20:13:01 +0300 |
commit | 3a454beae73cdfe9c07e7308f78b00c79b502e19 (patch) | |
tree | 40bd681d866883b7aeffd14f53ab1497a48b72b4 /source/blender/editors/space_outliner/outliner_dragdrop.c | |
parent | 29dff8f84423852f01570334abf08fb922ffb51e (diff) |
Fix T91094: missing update after collection changed
Since rBb67fe05d4bea2d3c9efbd127e9d9dc3a897e89e6 collections
have a geometry component that depends on all the geometries
inside the collection. Contrary to what I originally thought
`ID_RECALC_COPY_ON_WRITE` does not trigger a collection geometry
update. This makes sense because a collection may change in ways
that do not require a geometry update.
Instead, we have to trigger the geometry update manually now by
passing `ID_RECALC_GEOMETRY` when appropriate.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_dragdrop.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_dragdrop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_dragdrop.c b/source/blender/editors/space_outliner/outliner_dragdrop.c index a391d032d7e..ed52eeab98c 100644 --- a/source/blender/editors/space_outliner/outliner_dragdrop.c +++ b/source/blender/editors/space_outliner/outliner_dragdrop.c @@ -1311,7 +1311,7 @@ static int collection_drop_invoke(bContext *C, wmOperator *UNUSED(op), const wmE } if (from) { - DEG_id_tag_update(&from->id, ID_RECALC_COPY_ON_WRITE); + DEG_id_tag_update(&from->id, ID_RECALC_COPY_ON_WRITE | ID_RECALC_GEOMETRY); } } |