Blender Git Commit Log
Git Commits -> Revision 3b57f07
Revision 3b57f07 by Bastien Montagne (master) June 17, 2015, 10:30 (GMT) |
Fix (unreported) redo of 'bone envelope distance resize' transform op not working (it would behave like 'bone envelope resize' instead). Issue comes from the fact this transform op shares some common points with both BoneResize and BoneEnvelope operations. However, trying to re-use `TFM_BONE_ENVELOPE` itself in this case is bad idea, since this mode gets stored in transform op and is directly re-used for redo, by-passing the whole init phase that shall be done in `TFM_BONESIZE` mode... So now, we add a real new mode, `TFM_BONE_ENVELOPE_DIST`, while keeping most of existing code and all existing behavior. This is slightly hackish - but was already anyway, and avoids creating a full new set of function for pretty much the same thing. As a side note, also makes it possible to resize envelope distance outside of envelope viewing mode (from py or by adding a custom shortcut). |
Commit Details:
Full Hash: 3b57f075a8031d2fc0e58f4f28ed060832065b0b
Parent Commit: e0ae59f
Lines Changed: +19, -10
5 Modified Paths:
/source/blender/editors/include/ED_transform.h (+2, -1) (Diff)
/source/blender/editors/transform/transform.c (+9, -2) (Diff)
/source/blender/editors/transform/transform_conversions.c (+6, -6) (Diff)
/source/blender/editors/transform/transform_generics.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -0) (Diff)
/source/blender/editors/transform/transform.c (+9, -2) (Diff)
/source/blender/editors/transform/transform_conversions.c (+6, -6) (Diff)
/source/blender/editors/transform/transform_generics.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -0) (Diff)