[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [900] trunk/py/scripts/addons: update for changes in blender.
Campbell Barton
ideasman42 at gmail.com
Mon Aug 9 03:42:54 CEST 2010
Revision: 900
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=900
Author: campbellbarton
Date: 2010-08-09 03:42:53 +0200 (Mon, 09 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-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -1063,8 +1063,8 @@
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, 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-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -273,8 +273,8 @@
box.prop(props, 'geo_res')
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, 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-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -259,8 +259,8 @@
##### POLL #####
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.scene != None
##### EXECUTE #####
Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/curve_simplify.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -423,8 +423,8 @@
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 @@
## Check for curve
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, 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-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -1476,8 +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)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -1508,8 +1508,8 @@
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):
Modified: trunk/py/scripts/addons/mesh_relax.py
===================================================================
--- trunk/py/scripts/addons/mesh_relax.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/mesh_relax.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -98,8 +98,8 @@
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')
Modified: trunk/py/scripts/addons/mesh_surface_sketch.py
===================================================================
--- trunk/py/scripts/addons/mesh_surface_sketch.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/mesh_surface_sketch.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -42,8 +42,8 @@
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):
Modified: trunk/py/scripts/addons/object_cloud_gen.py
===================================================================
--- trunk/py/scripts/addons/object_cloud_gen.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/object_cloud_gen.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -318,8 +318,8 @@
bl_register = True
bl_undo = True
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, 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-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/render_povray/ui.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -159,8 +159,8 @@
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)
Modified: trunk/py/scripts/addons/render_renderfarmfi.py
===================================================================
--- trunk/py/scripts/addons/render_renderfarmfi.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/render_renderfarmfi.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -168,10 +168,10 @@
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 @@
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 @@
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 @@
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
Modified: trunk/py/scripts/addons/space_view3d_align_tools.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_align_tools.py 2010-08-08 19:36:45 UTC (rev 899)
+++ trunk/py/scripts/addons/space_view3d_align_tools.py 2010-08-09 01:42:53 UTC (rev 900)
@@ -155,8 +155,8 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
bl_idname = "object.AlignObjectsRotationZ"
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list