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
diff options
context:
space:
mode:
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index b5f515277ca..f5c83df0f45 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -706,7 +706,13 @@ void rna_Object_me_eval_info(
static bool rna_Object_update_from_editmode(Object *ob, Main *bmain)
{
/* fail gracefully if we aren't in edit-mode. */
- return ED_object_editmode_load(bmain, ob);
+ const bool result = ED_object_editmode_load(bmain, ob);
+ if (result) {
+ /* Loading edit mesh to mesh changes geometry, and scripts might expect it to be properly
+ * informed about changes. */
+ DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
+ }
+ return result;
}
#else /* RNA_RUNTIME */