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:
authorCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
commit2384910b60c161971ba37d7a14874580def12ea0 (patch)
tree33b8174bd04426c6a5b2bed7c2eed12aeb74924c
parent6367ee9946c8bc0ee9e91fc97d8303ce38991fc4 (diff)
update for changes in blender.
-rw-r--r--add_curve_aceous_galore.py4
-rw-r--r--add_curve_torus_knots.py4
-rw-r--r--add_mesh_BoltFactory/Boltfactory.py4
-rw-r--r--curve_simplify.py8
-rw-r--r--io_export_unreal_psk_psa.py8
-rw-r--r--mesh_relax.py4
-rw-r--r--mesh_surface_sketch.py4
-rw-r--r--object_cloud_gen.py4
-rw-r--r--render_povray/ui.py4
-rw-r--r--render_renderfarmfi.py24
-rw-r--r--space_view3d_align_tools.py52
-rw-r--r--space_view3d_materials_utils.py24
-rw-r--r--space_view3d_panel_measure.py4
-rw-r--r--space_view3d_property_chart.py4
-rw-r--r--space_view3d_spacebar_menu.py12
15 files changed, 82 insertions, 82 deletions
diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py
index 21dfbd28..b7283e26 100644
--- a/add_curve_aceous_galore.py
+++ b/add_curve_aceous_galore.py
@@ -1063,8 +1063,8 @@ class Curveaceous_galore(bpy.types.Operator):
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.scene != None
##### EXECUTE #####
diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py
index 99a832d6..fd90cd55 100644
--- a/add_curve_torus_knots.py
+++ b/add_curve_torus_knots.py
@@ -273,8 +273,8 @@ class torus_knot_plus(bpy.types.Operator):
box.prop(props, 'geo_res')
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.scene != None
##### EXECUTE #####
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py
index d4bc8bea..3bc20185 100644
--- a/add_mesh_BoltFactory/Boltfactory.py
+++ b/add_mesh_BoltFactory/Boltfactory.py
@@ -259,8 +259,8 @@ class add_mesh_bolt(bpy.types.Operator):
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.scene != None
##### EXECUTE #####
diff --git a/curve_simplify.py b/curve_simplify.py
index aa373a84..d644e0de 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -423,8 +423,8 @@ class GRAPH_OT_simplify(bpy.types.Operator):
col.prop(props, 'error', expand=True)
## Check for animdata
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
obj = context.active_object
fcurves = False
if obj:
@@ -549,8 +549,8 @@ class CURVE_OT_simplify(bpy.types.Operator):
## Check for curve
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
obj = context.active_object
return (obj and obj.type == 'CURVE')
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 8c208c5a..021fff0c 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1476,8 +1476,8 @@ class ExportUDKAnimData(bpy.types.Operator):
psaexportbool = BoolProperty(name="Export PSA", description="Export Action Set (Animation Data)", default= True)
actionexportall = BoolProperty(name="All Actions", description="This will export all the actions that matches the current armature.", default=False)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -1508,8 +1508,8 @@ class VIEW3D_PT_unrealtools_objectmode(bpy.types.Panel):
bl_region_type = "TOOLS"
bl_label = "Unreal Tools"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object
def draw(self, context):
diff --git a/mesh_relax.py b/mesh_relax.py
index 42419218..97743f2d 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -98,8 +98,8 @@ class Relax(bpy.types.Operator):
iterations = IntProperty(name="Relax iterations",
default=1, min=0, max=100, soft_min=0, soft_max=10)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
obj = context.active_object
return (obj and obj.type == 'MESH')
diff --git a/mesh_surface_sketch.py b/mesh_surface_sketch.py
index 2b0c7490..ea741424 100644
--- a/mesh_surface_sketch.py
+++ b/mesh_surface_sketch.py
@@ -42,8 +42,8 @@ class VIEW3D_PT_tools_SURF_SKETCH(bpy.types.Panel):
bl_context = "mesh_edit"
bl_label = "Surface Sketching"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object
def draw(self, context):
diff --git a/object_cloud_gen.py b/object_cloud_gen.py
index 3564d0b7..666ddb6b 100644
--- a/object_cloud_gen.py
+++ b/object_cloud_gen.py
@@ -318,8 +318,8 @@ class GenerateCloud(bpy.types.Operator):
bl_register = True
bl_undo = True
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
if not context.active_object:
return False
else:
diff --git a/render_povray/ui.py b/render_povray/ui.py
index ee3ce2c2..f8fc323e 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -159,8 +159,8 @@ class RenderButtonsPanel():
bl_context = "render"
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
return (rd.use_game_engine == False) and (rd.engine in self.COMPAT_ENGINES)
diff --git a/render_renderfarmfi.py b/render_renderfarmfi.py
index 59632a98..f333fe3c 100644
--- a/render_renderfarmfi.py
+++ b/render_renderfarmfi.py
@@ -168,10 +168,10 @@ class LOGIN_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Login to Renderfarm.fi'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -194,10 +194,10 @@ class CHECK_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Check for updates'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -214,10 +214,10 @@ class SESSIONS_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Sessions'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -240,10 +240,10 @@ class RENDER_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Scene Settings"
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
diff --git a/space_view3d_align_tools.py b/space_view3d_align_tools.py
index 2d577f4a..56543d94 100644
--- a/space_view3d_align_tools.py
+++ b/space_view3d_align_tools.py
@@ -155,8 +155,8 @@ class AlignOperator(bpy.types.Operator):
bl_idname = "object.AlignObjects"
bl_label = "Align Selected To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -170,8 +170,8 @@ class AlignLocationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationAll"
bl_label = "Align Selected Location To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -183,8 +183,8 @@ class AlignLocationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationX"
bl_label = "Align Selected Location X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -196,8 +196,8 @@ class AlignLocationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationY"
bl_label = "Align Selected Location Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -209,8 +209,8 @@ class AlignLocationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationZ"
bl_label = "Align Selected Location Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -224,8 +224,8 @@ class AlignRotationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationAll"
bl_label = "Align Selected Rotation To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -237,8 +237,8 @@ class AlignRotationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationX"
bl_label = "Align Selected Rotation X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -250,8 +250,8 @@ class AlignRotationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationY"
bl_label = "Align Selected Rotation Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -263,8 +263,8 @@ class AlignRotationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationZ"
bl_label = "Align Selected Rotation Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -277,8 +277,8 @@ class AlignScaleOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleAll"
bl_label = "Align Selected Scale To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -290,8 +290,8 @@ class AlignScaleXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleX"
bl_label = "Align Selected Scale X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -303,8 +303,8 @@ class AlignScaleYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleY"
bl_label = "Align Selected Scale Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -316,8 +316,8 @@ class AlignScaleZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleZ"
bl_label = "Align Selected Scale Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 909aa8ef..004d4834 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -487,8 +487,8 @@ class VIEW3D_OT_texface_to_material(bpy.types.Operator):
bl_label = "MW Texface Images to Material/Texture"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -509,8 +509,8 @@ class VIEW3D_OT_assign_material(bpy.types.Operator):
description = 'Name of Material to Assign',
default = "", maxlen = 21)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -528,8 +528,8 @@ class VIEW3D_OT_clean_material_slots(bpy.types.Operator):
bl_label = "MW Clean Material Slots"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -542,8 +542,8 @@ class VIEW3D_OT_material_to_texface(bpy.types.Operator):
bl_label = "MW Material Images to Texface"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -559,8 +559,8 @@ class VIEW3D_OT_select_material_by_name(bpy.types.Operator):
description = 'Name of Material to Select',
default = "", maxlen = 21)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -587,8 +587,8 @@ class VIEW3D_OT_replace_material(bpy.types.Operator):
description="replace for all objects in this blend file",
default = True)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
diff --git a/space_view3d_panel_measure.py b/space_view3d_panel_measure.py
index f48b4a35..6a5553e4 100644
--- a/space_view3d_panel_measure.py
+++ b/space_view3d_panel_measure.py
@@ -656,8 +656,8 @@ class VIEW3D_PT_measure(bpy.types.Panel):
bl_label = "Measure"
bl_default_closed = True
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
# Only display this panel in the object and edit mode 3D view.
if (context.area.type == 'VIEW_3D' and
(context.mode == 'EDIT_MESH'
diff --git a/space_view3d_property_chart.py b/space_view3d_property_chart.py
index eb4d57ae..c0396095 100644
--- a/space_view3d_property_chart.py
+++ b/space_view3d_property_chart.py
@@ -169,8 +169,8 @@ class SequencerEditProps(bpy.types.Panel):
draw = _property_chart_draw
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.scene.sequence_editor is not None
# Operator to copy properties
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index 72bdd890..a130f9a4 100644
--- a/space_view3d_spacebar_menu.py
+++ b/space_view3d_spacebar_menu.py
@@ -1238,8 +1238,8 @@ class VIEW3D_OT_pivot_cursor(bpy.types.Operator):
bl_idname = "view3d.pivot_cursor"
bl_label = "Cursor as Pivot Point"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return bpy.context.space_data.pivot_point != 'CURSOR'
def execute(self, context):
@@ -1251,8 +1251,8 @@ class VIEW3D_OT_revert_pivot(bpy.types.Operator):
bl_idname = "view3d.revert_pivot"
bl_label = "Reverts Pivot Point to median"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return bpy.context.space_data.pivot_point != 'MEDIAN_POINT'
def execute(self, context):
@@ -1403,8 +1403,8 @@ class VIEW3D_OT_CursorToEdgeIntersection(bpy.types.Operator):
bl_idname = "view3d.snap_cursor_to_edge_intersection"
bl_label = "Cursor to Edge Intersection"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
obj = context.active_object
return obj != None and obj.type == 'MESH'