mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T98192: Crash when apply transforms after deleting an object
This commit is contained in:
parent
d7053ba030
commit
77f2cb1686
1 changed files with 1 additions and 1 deletions
|
|
@ -1125,7 +1125,7 @@ static int object_transform_apply_invoke(bContext *C, wmOperator *op, const wmEv
|
|||
bool can_handle_multiuser = apply_objects_internal_can_multiuser(C);
|
||||
bool need_single_user = can_handle_multiuser && apply_objects_internal_need_single_user(C);
|
||||
|
||||
if ((ob->data != nullptr) && need_single_user) {
|
||||
if ((ob != nullptr) && (ob->data != nullptr) && need_single_user) {
|
||||
PropertyRNA *prop = RNA_struct_find_property(op->ptr, "isolate_users");
|
||||
if (!RNA_property_is_set(op->ptr, prop)) {
|
||||
RNA_property_boolean_set(op->ptr, prop, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue