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:
authorCampbell Barton <ideasman42@gmail.com>2019-09-12 00:28:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-12 00:28:49 +0300
commit32b49f9e9f2f93124c0c041104d7e7c558d8d3ad (patch)
tree59519bf03e5c4f95124eb2c376bfe0815deb262b
parent62ffc0c2c94ca17ab1985d8ddd0ad06674b6f838 (diff)
Fix transforming armature origins
Using geometry update doesn't work on armatures.
-rw-r--r--source/blender/editors/transform/transform_convert_object.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert_object.c b/source/blender/editors/transform/transform_convert_object.c
index e61a00a0d31..6142e9628a4 100644
--- a/source/blender/editors/transform/transform_convert_object.c
+++ b/source/blender/editors/transform/transform_convert_object.c
@@ -148,7 +148,13 @@ void trans_obdata_in_obmode_update_all(TransInfo *t)
invert_m4(dmat);
ED_object_data_xform_by_mat4(xf->xod, dmat);
- DEG_id_tag_update(id, ID_RECALC_GEOMETRY);
+ if (xf->ob->type == OB_ARMATURE) {
+ /* TODO: none of the current flags properly update armatures, needs investigation. */
+ DEG_id_tag_update(id, 0);
+ }
+ else {
+ DEG_id_tag_update(id, ID_RECALC_GEOMETRY);
+ }
}
}