diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-09-11 16:05:09 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-09-11 16:05:09 +0400 |
commit | d5009eb1423c3c0359cbc85c7346412c597b8663 (patch) | |
tree | c56d97bdd477682c5dacbf42f500c4e3eec79fef /release/ui | |
parent | 40576677b1dff5373d5b673b599ea9beb094b1ea (diff) |
2.5 Rotations: As a experiment, enabling Axis-Angle for Bones
The support for this is really quite hacky, and I might disable this later if we cannot get some parts to work nicely.
Some notes:
* This is currently stored in the same variable that quaternions are stored in, since they both have 4 components. However, in RNA, I've added 2 properties specially for this.
* There are some shearing issues using certain axes - i.e. (1,1,0) - that will need to be checked on.
* Transform code is really quite temporary for this. Just a quick demo of what can be done...
Diffstat (limited to 'release/ui')
-rw-r--r-- | release/ui/buttons_data_bone.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/ui/buttons_data_bone.py b/release/ui/buttons_data_bone.py index 0d379a4788f..5aac44bbc94 100644 --- a/release/ui/buttons_data_bone.py +++ b/release/ui/buttons_data_bone.py @@ -58,6 +58,10 @@ class BONE_PT_transform(BoneButtonsPanel): col = row.column() if pchan.rotation_mode == 'QUATERNION': col.itemR(pchan, "rotation", text="Rotation") + elif pchan.rotation_mode == 'AXIS_ANGLE': + col.itemL(text="Rotation") + col.itemR(pchan, "rotation_angle", text="Angle") + col.itemR(pchan, "rotation_axis", text="Axis") else: col.itemR(pchan, "euler_rotation", text="Rotation") |