Fix: Debug crash upon entering edit mode.
Any valid object gets added to `object_data` so we should check if it is not empty rather then is empty. Pull Request: https://projects.blender.org/blender/blender/pulls/119839
This commit is contained in:
committed by
Hans Goudey
parent
9123451427
commit
cb453a5846
@@ -917,7 +917,7 @@ Vector<Object *> ED_undo_editmode_objects_from_view_layer(const Scene *scene,
|
||||
}
|
||||
}
|
||||
}
|
||||
BLI_assert(object_data.is_empty());
|
||||
BLI_assert(!object_data.is_empty());
|
||||
BLI_assert(objects[0] == baseact->object);
|
||||
return objects;
|
||||
}
|
||||
@@ -947,7 +947,7 @@ Vector<Base *> ED_undo_editmode_bases_from_view_layer(const Scene *scene, ViewLa
|
||||
}
|
||||
}
|
||||
|
||||
BLI_assert(object_data.is_empty());
|
||||
BLI_assert(!object_data.is_empty());
|
||||
BLI_assert(bases[0] == baseact);
|
||||
return bases;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user