bugfix [#26094] Going to Bone Roll menu brings up python error
also correct for pep8 warnings.
This commit is contained in:
parent
78c135d93e
commit
fee5363912
@ -62,11 +62,6 @@ def source_list(path, filename_check=None):
|
||||
|
||||
|
||||
# extension checking
|
||||
def is_c_header(filename):
|
||||
ext = splitext(filename)[1]
|
||||
return (ext in (".h", ".hpp", ".hxx"))
|
||||
|
||||
|
||||
def is_cmake(filename):
|
||||
ext = splitext(filename)[1]
|
||||
return (ext == ".cmake") or (filename == "CMakeLists.txt")
|
||||
|
@ -25,5 +25,3 @@ for image in bpy.data.images:
|
||||
file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1]))
|
||||
|
||||
file.close()
|
||||
|
||||
|
||||
|
@ -78,6 +78,7 @@ class DiscontFilterOp(bpy.types.Operator):
|
||||
main(context)
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
def register():
|
||||
bpy.utils.register_module(__name__)
|
||||
|
||||
|
@ -387,6 +387,7 @@ class WM_OT_context_cycle_array(bpy.types.Operator):
|
||||
class WM_MT_context_menu_enum(bpy.types.Menu):
|
||||
bl_label = ""
|
||||
data_path = "" # BAD DESIGN, set from operator below.
|
||||
|
||||
def draw(self, context):
|
||||
data_path = self.data_path
|
||||
value = context_path_validate(bpy.context, data_path)
|
||||
|
@ -98,7 +98,6 @@ class NLA_MT_select(bpy.types.Menu):
|
||||
layout.operator("nla.select_leftright", text="After Current Frame").mode = 'RIGHT'
|
||||
|
||||
|
||||
|
||||
class NLA_MT_marker(bpy.types.Menu):
|
||||
bl_label = "Marker"
|
||||
|
||||
|
@ -1935,8 +1935,7 @@ class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("armature.calculate_roll", text="Recalculate with Z-Axis Up").type = 'GLOBALUP'
|
||||
layout.operator("armature.calculate_roll", text="Recalculate with Z-Axis to Cursor").type = 'CURSOR'
|
||||
layout.operator_menu_enum("armature.calculate_roll", "type")
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
@ -39,6 +39,7 @@ Example Usage:
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def clear_scene():
|
||||
import bpy
|
||||
unique_obs = set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user