[Bf-blender-cvs] [2e9b86923c3] blender2.8: Fix T56920: Crash: Renaming bone through outliner
Antonioya
noreply at git.blender.org
Wed Sep 26 12:50:30 CEST 2018
Commit: 2e9b86923c30a5122bf1d6225578bbee35f85c0f
Author: Antonioya
Date: Wed Sep 26 12:50:09 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2e9b86923c30a5122bf1d6225578bbee35f85c0f
Fix T56920: Crash: Renaming bone through outliner
===================================================================
M source/blender/editors/armature/armature_naming.c
===================================================================
diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c
index 20fccfda6b9..1fe5556952c 100644
--- a/source/blender/editors/armature/armature_naming.c
+++ b/source/blender/editors/armature/armature_naming.c
@@ -178,6 +178,9 @@ void ED_armature_bone_rename(Main *bmain, bArmature *arm, const char *oldnamep,
}
}
+ /* force copy on write to update database */
+ DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
+
/* do entire dbase - objects */
for (ob = bmain->object.first; ob; ob = ob->id.next) {
ModifierData *md;
More information about the Bf-blender-cvs
mailing list