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.
This commit is contained in:
parent
29dff8f844
commit
3a454beae7
Notes:
blender-bot
2023-06-07 10:31:13 +02:00
Referenced by issue #91094, Geometry nodes crash
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue