Fix Attempt to free NULL pointer
Assert when snapping `Selection to ...` but without objects. Missed in the last commit.
This commit is contained in:
@@ -554,7 +554,10 @@ static int snap_selected_to_location(bContext *C,
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM);
|
||||
}
|
||||
}
|
||||
MEM_freeN(objects);
|
||||
|
||||
if (objects) {
|
||||
MEM_freeN(objects);
|
||||
}
|
||||
|
||||
if (use_transform_skip_children) {
|
||||
ED_object_xform_skip_child_container_update_all(xcs, bmain, depsgraph);
|
||||
|
||||
Reference in New Issue
Block a user