Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-09 12:10:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-09 12:15:16 +0300
commitc9dc57be3ae59fac84b243f8bfdaddaa9b5e2f20 (patch)
treeaa5d3a8c663fa9e71ac2b40470eb8b7f15383fc4 /source
parent3d5775b69adac8a52f3971baf988e6ead7ba4603 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c
index b7c9579e277..8012565ba2e 100644
--- a/source/blender/editors/object/object_edit.c
+++ b/source/blender/editors/object/object_edit.c
@@ -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) {