Fix T60795: Crash when joining objects with shape keys.
Stupid mistake really, cannot use NO_MAIN here, temp shapekey is in Main. Using/fully supporting out-of-main temp IDs is still a bit WIP...
This commit is contained in:
parent
f15a5440a1
commit
6ff4babfd4
Notes:
blender-bot
2023-02-14 04:39:18 +01:00
Referenced by issue #60795, Crash when joining objects with shape keys
|
@ -586,7 +586,7 @@ int join_mesh_exec(bContext *C, wmOperator *op)
|
|||
/* free temp copy of destination shapekeys (if applicable) */
|
||||
if (nkey) {
|
||||
/* We can assume nobody is using that ID currently. */
|
||||
BKE_id_free_ex(bmain, nkey, LIB_ID_FREE_NO_MAIN | LIB_ID_FREE_NO_UI_USER | LIB_ID_FREE_NO_USER_REFCOUNT, false);
|
||||
BKE_id_free_ex(bmain, nkey, LIB_ID_FREE_NO_UI_USER, false);
|
||||
}
|
||||
|
||||
/* ensure newly inserted keys are time sorted */
|
||||
|
|
Loading…
Reference in New Issue