diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 05:22:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 05:22:49 +0300 |
commit | e059588947d55de88c4472abd65b187da621cdfa (patch) | |
tree | 0469a059ec177a137c77a891e1ba64687481f200 /render_povray | |
parent | 352254d5c84eec8b2ef1922e9ccec25516f6d8c2 (diff) |
Fix T63955: label text not used as a keyword arg
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/nodes.py | 24 | ||||
-rw-r--r-- | render_povray/ui.py | 21 |
2 files changed, 22 insertions, 23 deletions
diff --git a/render_povray/nodes.py b/render_povray/nodes.py index a3267565..afacfc82 100644 --- a/render_povray/nodes.py +++ b/render_povray/nodes.py @@ -364,7 +364,7 @@ class PovrayMultiplyNode(Node, ObjectNodeTree): def draw_buttons(self, context, layout): column=layout.column() - column.label("Amount") + column.label(text="Amount") row=column.row(align=True) row.prop(self,"amount_x") row.prop(self,"amount_y") @@ -373,7 +373,7 @@ class PovrayMultiplyNode(Node, ObjectNodeTree): def draw_buttons_ext(self, context, layout): column=layout.column() - column.label("Amount") + column.label(text="Amount") row=column.row(align=True) row.prop(self,"amount_x") row.prop(self,"amount_y") @@ -773,7 +773,7 @@ class ShaderPatternNode(Node, ObjectNodeTree): if self.pattern=='crackle': layout.prop(self, "crackle_metric") layout.prop(self, "crackle_solid") - layout.label("Form:") + layout.label(text="Form:") layout.prop(self, "crackle_form_x") layout.prop(self, "crackle_form_y") layout.prop(self, "crackle_form_z") @@ -890,7 +890,7 @@ class ShaderNormalMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -899,7 +899,7 @@ class ShaderNormalMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -984,17 +984,17 @@ class PovraySlopeNode(Node, TextureNodeTree): layout.operator("pov.nodeinputadd") row = layout.row() - row.label('Value') - row.label('Height') - row.label('Slope') + row.label(text='Value') + row.label(text='Height') + row.label(text='Slope') def draw_buttons_ext(self, context, layout): layout.operator("pov.nodeinputadd") row = layout.row() - row.label('Value') - row.label('Height') - row.label('Slope') + row.label(text='Value') + row.label(text='Height') + row.label(text='Slope') def draw_label(self): return "Slope Map" @@ -1359,4 +1359,4 @@ def unregister(): from bpy.utils import unregister_class for cls in classes: - unregister_class(cls)
\ No newline at end of file + unregister_class(cls) diff --git a/render_povray/ui.py b/render_povray/ui.py index f033da53..c67606fc 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -253,7 +253,7 @@ del properties_particle def check_material(mat): if mat is not None: if mat.use_nodes: - if not mat.node_tree: #FORMERLY : #mat.active_node_material is not None: + if not mat.node_tree: #FORMERLY : #mat.active_node_material is not None: return True return False return True @@ -573,7 +573,7 @@ class LIGHT_PT_POV_sunsky(PovLampButtonsPanel, bpy.types.Panel): draw = properties_data_light.DATA_PT_sunsky.draw - + class LIGHT_PT_POV_shadow(PovLampButtonsPanel, bpy.types.Panel): bl_label = properties_data_light.DATA_PT_shadow.bl_label @@ -669,8 +669,8 @@ class WORLD_PT_POV_world(WorldButtonsPanel, bpy.types.Panel): row.menu(POV_WORLD_MT_presets.__name__, text=POV_WORLD_MT_presets.bl_label) row.operator(AddPresetWorld.bl_idname, text="", icon='ADD') row.operator(AddPresetWorld.bl_idname, text="", icon='REMOVE').remove_active = True - - row = layout.row() + + row = layout.row() row.prop(world, "use_sky_paper") row.prop(world, "use_sky_blend") row.prop(world, "use_sky_real") @@ -1093,7 +1093,7 @@ class AddPresetSSS(AddPresetBase, bpy.types.Operator): # where to store the preset preset_subdir = "pov/material/sss" - + class MATERIAL_PT_POV_sss(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Subsurface Scattering" bl_options = {'DEFAULT_CLOSED'} @@ -1144,7 +1144,7 @@ class MATERIAL_PT_POV_sss(MaterialButtonsPanel, bpy.types.Panel): sub.prop(sss, "back") col.separator() col.prop(sss, "error_threshold", text="Error") - + class MATERIAL_PT_povray_activate_node(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Activate Node Settings" bl_context = "material" @@ -1216,7 +1216,7 @@ class MATERIAL_PT_povray_active_node(MaterialButtonsPanel, bpy.types.Panel): socket.draw(context, row, node, socket.name) else: layout.label(text="No active nodes!") - + class MATERIAL_PT_POV_mirror(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Mirror" bl_options = {'DEFAULT_CLOSED'} @@ -2300,7 +2300,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel): if text: box = layout.box() - box.label('Source to render:', icon='RENDER_STILL') + box.label(text='Source to render:', icon='RENDER_STILL') row = box.row() row.prop(text.pov, "custom_code",expand = True) if text.pov.custom_code in {'3dview'}: @@ -2417,7 +2417,7 @@ def register(): for cls in classes: register_class(cls) - + bpy.types.VIEW3D_MT_add.prepend(menu_func_add) bpy.types.TOPBAR_MT_file_import.append(menu_func_import) bpy.types.TEXT_MT_templates.append(menu_func_templates) @@ -2441,7 +2441,6 @@ def unregister(): bpy.types.TEXT_MT_templates.remove(menu_func_templates) bpy.types.TOPBAR_MT_file_import.remove(menu_func_import) bpy.types.VIEW3D_MT_add.remove(menu_func_add) - + for cls in reversed(classes): unregister_class(cls) -
\ No newline at end of file |