Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-22 16:39:01 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-22 16:42:18 +0300
commitbfb29776393325f2195177fe2edffdcd3668c143 (patch)
treede0e8e039eb7ebb039e8cc5a061289e444b65b3b /rigify/rot_mode.py
parent1c75533d9cc0693733bacbadecfaac5c504313fb (diff)
Rigify: Update for 2.8 API
The UI is still using the toolshelf. So I did not bump the version to 2.80. It seems to be working as far as the UI and the quat/euler operators is concerned.
Diffstat (limited to 'rigify/rot_mode.py')
-rw-r--r--rigify/rot_mode.py28
1 files changed, 2 insertions, 26 deletions
diff --git a/rigify/rot_mode.py b/rigify/rot_mode.py
index f486db6b..8129040b 100644
--- a/rigify/rot_mode.py
+++ b/rigify/rot_mode.py
@@ -43,8 +43,6 @@ from bpy.props import (
EnumProperty,
)
-order_list = ['QUATERNION', 'XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX']
-
class convert():
def get_or_create_fcurve(self, action, data_path, array_index=-1, group=None):
@@ -223,28 +221,6 @@ class convert():
convert = convert()
-# def initSceneProperties(scn):
-#
-# bpy.types.Scene.order_list = bpy.props.EnumProperty(
-# items = [('QUATERNION', 'QUATERNION', 'QUATERNION' ),
-# ('XYZ', 'XYZ', 'XYZ' ),
-# ('XZY', 'XZY', 'XZY' ),
-# ('YXZ', 'YXZ', 'YXZ' ),
-# ('YZX', 'YZX', 'YZX' ),
-# ('ZXY', 'ZXY', 'ZXY' ),
-# ('ZYX', 'ZYX', 'ZYX' ) ],
-# name = "Order",
-# description = "The target rotation mode")
-#
-# scn['order_list'] = 0
-#
-# return
-#
-# initSceneProperties(bpy.context.scene)
-
-
-# GUI (Panel)
-#
class ToolsPanel(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
@@ -294,7 +270,7 @@ class CONVERT_OT_quat2eu_current_action(bpy.types.Operator):
obj = bpy.context.active_object
pose_bones = bpy.context.selected_pose_bones
action = obj.animation_data.action
- order = order_list[bpy.context.scene['order_list']]
+ order = bpy.context.scene.order_list
id_store = context.window_manager
if id_store.rigify_convert_only_selected:
@@ -319,7 +295,7 @@ class CONVERT_OT_quat2eu_all_actions(bpy.types.Operator):
def execute(op, context):
obj = bpy.context.active_object
pose_bones = bpy.context.selected_pose_bones
- order = order_list[bpy.context.scene['order_list']]
+ order = bpy.context.scene.order_list
id_store = context.window_manager
if id_store.rigify_convert_only_selected: