[Bf-blender-cvs] [e6adf9ac9a3] blender2.8: Fix T57096: Crash when scaling bones
Philipp Oeser
noreply at git.blender.org
Wed Oct 17 15:10:29 CEST 2018
Commit: e6adf9ac9a32f0c9b9690fef1b9066e030683a45
Author: Philipp Oeser
Date: Wed Oct 17 14:51:38 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe6adf9ac9a32f0c9b9690fef1b9066e030683a45
Fix T57096: Crash when scaling bones
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3777
===================================================================
M source/blender/editors/transform/transform_conversions.c
===================================================================
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 571608ac21d..d9857b50ec0 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -6690,6 +6690,14 @@ void special_aftertrans_update(bContext *C, TransInfo *t)
}
}
}
+ else if (t->flag & T_POSE && (t->mode == TFM_BONESIZE)) {
+ /* Handle the exception where for TFM_BONESIZE in edit mode we pretend to be
+ * in pose mode (to use bone orientation matrix), in that case we don't do operations like autokeyframing. */
+ FOREACH_TRANS_DATA_CONTAINER (t, tc) {
+ ob = tc->poseobj;
+ DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
+ }
+ }
else if (t->flag & T_POSE) {
GSet *motionpath_updates = BLI_gset_ptr_new("motionpath updates");
More information about the Bf-blender-cvs
mailing list