diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-10-17 15:51:38 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-10-17 16:09:01 +0300 |
commit | e6adf9ac9a32f0c9b9690fef1b9066e030683a45 (patch) | |
tree | 33727211ba79c5101b78c2d6932f6a9044685b78 /source/blender/editors/transform | |
parent | 21744217cea9bb8f767f47cb6c41446563e645ac (diff) |
Fix T57096: Crash when scaling bones
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3777
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 8 |
1 files changed, 8 insertions, 0 deletions
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"); |