Fix T72145: Object.update_from_editmode crashes with empties
Also corrects the return value, where objects that don't have an edit-mode returned true, making it seem as if object data was flushed.
This commit is contained in:
@@ -513,6 +513,9 @@ static bool ED_object_editmode_load_ex(Main *bmain, Object *obedit, const bool f
|
||||
ED_mball_editmball_free(obedit);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
char *needs_flush_ptr = BKE_object_data_editmode_flush_ptr_get(obedit->data);
|
||||
if (needs_flush_ptr) {
|
||||
|
||||
Reference in New Issue
Block a user