[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [893] trunk/py/scripts/addons: update for changes in blender.
Campbell Barton
ideasman42 at gmail.com
Thu Aug 5 17:58:52 CEST 2010
Revision: 893
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=893
Author: campbellbarton
Date: 2010-08-05 17:58:52 +0200 (Thu, 05 Aug 2010)
Log Message:
-----------
update for changes in blender.
Modified Paths:
--------------
trunk/py/scripts/addons/add_curve_aceous_galore.py
trunk/py/scripts/addons/add_curve_torus_knots.py
trunk/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py
trunk/py/scripts/addons/curve_simplify.py
trunk/py/scripts/addons/io_export_unreal_psk_psa.py
trunk/py/scripts/addons/mesh_relax.py
trunk/py/scripts/addons/mesh_surface_sketch.py
trunk/py/scripts/addons/object_cloud_gen.py
trunk/py/scripts/addons/render_povray/ui.py
trunk/py/scripts/addons/render_renderfarmfi.py
trunk/py/scripts/addons/space_view3d_align_tools.py
trunk/py/scripts/addons/space_view3d_materials_utils.py
trunk/py/scripts/addons/space_view3d_panel_measure.py
trunk/py/scripts/addons/space_view3d_property_chart.py
trunk/py/scripts/addons/space_view3d_spacebar_menu.py
Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -1063,7 +1063,8 @@
##### POLL #####
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.scene != None
##### EXECUTE #####
Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -274,7 +274,8 @@
box.prop(props, 'geo_res')
##### POLL #####
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.scene != None
##### EXECUTE #####
Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -259,7 +259,8 @@
##### POLL #####
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.scene != None
##### EXECUTE #####
Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/curve_simplify.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -423,7 +423,8 @@
col.prop(props, 'error', expand=True)
## Check for animdata
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
fcurves = False
if obj:
@@ -548,7 +549,8 @@
## Check for curve
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
return (obj and obj.type == 'CURVE')
Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -1476,7 +1476,8 @@
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)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -1507,7 +1508,8 @@
bl_region_type = "TOOLS"
bl_label = "Unreal Tools"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object
def draw(self, context):
Modified: trunk/py/scripts/addons/mesh_relax.py
===================================================================
--- trunk/py/scripts/addons/mesh_relax.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/mesh_relax.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -98,7 +98,8 @@
iterations = IntProperty(name="Relax iterations",
default=1, min=0, max=100, soft_min=0, soft_max=10)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
return (obj and obj.type == 'MESH')
Modified: trunk/py/scripts/addons/mesh_surface_sketch.py
===================================================================
--- trunk/py/scripts/addons/mesh_surface_sketch.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/mesh_surface_sketch.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -42,7 +42,8 @@
bl_context = "mesh_edit"
bl_label = "Surface Sketching"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object
def draw(self, context):
Modified: trunk/py/scripts/addons/object_cloud_gen.py
===================================================================
--- trunk/py/scripts/addons/object_cloud_gen.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/object_cloud_gen.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -318,7 +318,8 @@
bl_register = True
bl_undo = True
- def poll(self, context):
+ @staticmethod
+ def poll(context):
if not context.active_object:
return False
else:
Modified: trunk/py/scripts/addons/render_povray/ui.py
===================================================================
--- trunk/py/scripts/addons/render_povray/ui.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/render_povray/ui.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -159,7 +159,8 @@
bl_context = "render"
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
- def poll(self, context):
+ @staticmethod
+ def poll(context):
rd = context.scene.render
return (rd.use_game_engine == False) and (rd.engine in self.COMPAT_ENGINES)
Modified: trunk/py/scripts/addons/render_renderfarmfi.py
===================================================================
--- trunk/py/scripts/addons/render_renderfarmfi.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/render_renderfarmfi.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -151,7 +151,8 @@
bl_context = "render"
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
- def poll(self, context):
+ @staticmethod
+ def poll(context):
rd = context.scene.render
return (rd.use_game_engine==False) and (rd.engine in self.COMPAT_ENGINES)
Modified: trunk/py/scripts/addons/space_view3d_align_tools.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_align_tools.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/space_view3d_align_tools.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -155,7 +155,8 @@
bl_idname = "object.AlignObjects"
bl_label = "Align Selected To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -169,7 +170,8 @@
bl_idname = "object.AlignObjectsLocationAll"
bl_label = "Align Selected Location To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -181,7 +183,8 @@
bl_idname = "object.AlignObjectsLocationX"
bl_label = "Align Selected Location X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -193,7 +196,8 @@
bl_idname = "object.AlignObjectsLocationY"
bl_label = "Align Selected Location Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -205,7 +209,8 @@
bl_idname = "object.AlignObjectsLocationZ"
bl_label = "Align Selected Location Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -219,7 +224,8 @@
bl_idname = "object.AlignObjectsRotationAll"
bl_label = "Align Selected Rotation To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -231,7 +237,8 @@
bl_idname = "object.AlignObjectsRotationX"
bl_label = "Align Selected Rotation X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -243,7 +250,8 @@
bl_idname = "object.AlignObjectsRotationY"
bl_label = "Align Selected Rotation Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -255,7 +263,8 @@
bl_idname = "object.AlignObjectsRotationZ"
bl_label = "Align Selected Rotation Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -268,7 +277,8 @@
bl_idname = "object.AlignObjectsScaleAll"
bl_label = "Align Selected Scale To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -280,7 +290,8 @@
bl_idname = "object.AlignObjectsScaleX"
bl_label = "Align Selected Scale X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -292,7 +303,8 @@
bl_idname = "object.AlignObjectsScaleY"
bl_label = "Align Selected Scale Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -304,7 +316,8 @@
bl_idname = "object.AlignObjectsScaleZ"
bl_label = "Align Selected Scale Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
Modified: trunk/py/scripts/addons/space_view3d_materials_utils.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_materials_utils.py 2010-08-04 22:53:12 UTC (rev 892)
+++ trunk/py/scripts/addons/space_view3d_materials_utils.py 2010-08-05 15:58:52 UTC (rev 893)
@@ -486,7 +486,8 @@
bl_label = "MW Texface Images to Material/Texture"
bl_options = {'REGISTER', 'UNDO'}
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list