Page MenuHome

bpy.ops.armature.calculate_roll wrong type enum
Closed, ResolvedPublic

Description

System Information
windows 7 64bit gtx580

Blender Version
Broken: 8a42100
Worked: (optional)

Short description of error

when calling from python api,bpy.ops.armature.calculate with X,Z take no effect because it default to local tangent not global.

Exact steps for others to reproduce the error
try to call in console:
bpy.ops.armature.calculate_roll(type='GLOBAL_X', axis_flip=False, axis_only=False)

it will show:

Traceback (most recent call last):

File "<blender_console>", line 1, in <module>
File "D:\_Blender\_MyW64\2.70\scripts\modules\bpy\ops.py", line 188, in __call__
  ret = op_call(self.idname_py(), None, kw)

TypeError: Converting py args to operator properties: enum "GLOBAL_X" not found in ('X', 'Z', 'X', 'Y', 'Z', 'ACTIVE', 'VIEW', 'CURSOR')

which is obviously wrong in enum list.

Event Timeline

Harrison Yu (harrisyu) updated the task description. (Show Details)
Harrison Yu (harrisyu) raised the priority of this task from to Needs Triage by Developer.
Harrison Yu (harrisyu) set Type to Bug.