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:
Campbell Barton
2019-12-09 20:10:22 +11:00
parent 3d5775b69a
commit c9dc57be3a

View File

@@ -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) {