diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-15 12:36:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-15 12:36:39 +0300 |
commit | b3d4f99d487a0fc408593c6afdba7f04048110f0 (patch) | |
tree | ef60a8438053c27c0bccd0185739bb0f746d00d4 /source/blender/editors/transform/transform_conversions.c | |
parent | e0903e20a7010e70706a062655003aefcfc18687 (diff) |
Fix bone-size crash
Own regression from multi-object transform.
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index ddd8af99afc..49da143f2f3 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -8504,6 +8504,7 @@ void createTransData(bContext *C, TransInfo *t) if (t->mode == TFM_BONESIZE) { t->flag &= ~(T_EDIT | T_POINTS); t->flag |= T_POSE; + t->obedit_type = -1; FOREACH_TRANS_DATA_CONTAINER (t, tc) { tc->poseobj = tc->obedit; @@ -8582,4 +8583,6 @@ void createTransData(bContext *C, TransInfo *t) /* Check that 'countAndCleanTransDataContainer' ran. */ BLI_assert(t->data_len_all != -1); + + BLI_assert((!(t->flag & T_EDIT)) == (!(t->obedit_type != -1))); } |