[Durian-svn] [1149] update for api changes
campbell
durian-svn at blender.org
Mon Mar 1 09:38:23 CET 2010
Revision: 1149
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=1149
Author: campbell
Date: 2010-03-01 09:38:23 +0100 (Mon, 01 Mar 2010)
Log Message:
-----------
update for api changes
Modified Paths:
--------------
pro/scripts/ui/add_mesh_random_block.py
pro/scripts/ui/copy_active_action.py
pro/scripts/ui/find_no_materials.py
pro/scripts/ui/grease_scatter.py
pro/scripts/ui/lamp_autobuffer.py
pro/scripts/ui/marker_render.py
pro/scripts/ui/mesh_skin.py
pro/scripts/ui/weight_grad.py
Modified: pro/scripts/ui/add_mesh_random_block.py
===================================================================
--- pro/scripts/ui/add_mesh_random_block.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/add_mesh_random_block.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -70,8 +70,7 @@
'''Add a block of random dimensions.'''
bl_idname = "mesh.primitive_random_block_add"
bl_label = "Random Block"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
presets = EnumProperty(items = [("wall","Walls","good for walls"), ("plank", "Planks", "good for planks"), ("shingle", "shingle", "good for shingles"), ("custom", "custom", "good for custom stuff")],
name="presets",
Modified: pro/scripts/ui/copy_active_action.py
===================================================================
--- pro/scripts/ui/copy_active_action.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/copy_active_action.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -4,7 +4,7 @@
''''''
bl_idname = "object.copy_active_action"
bl_label = "Copy Action"
- bl_register = True
+ bl_options = {'REGISTER'}
def poll(self, context):
""" Check if the object has an action to duplicate.
Modified: pro/scripts/ui/find_no_materials.py
===================================================================
--- pro/scripts/ui/find_no_materials.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/find_no_materials.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -17,8 +17,8 @@
''''''
bl_idname = "object.select_materials_none"
bl_label = "Find no Materials"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
+
def execute(self, context):
for obj in bpy.context.scene.objects:
if obj.type=='MESH' and has_mat(obj)==0:
@@ -29,8 +29,8 @@
''''''
bl_idname = "object.select_uvs_none"
bl_label = "Find no UVs"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
+
def execute(self, context):
for obj in bpy.context.scene.objects:
if obj.type=='MESH' and has_uv(obj)==0:
Modified: pro/scripts/ui/grease_scatter.py
===================================================================
--- pro/scripts/ui/grease_scatter.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/grease_scatter.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -315,7 +315,7 @@
''''''
bl_idname = "object.scatter"
bl_label = "Scatter"
- bl_register = True
+ bl_options = {'REGISTER'}
density = FloatProperty(name="Density",
description="Multiplier for the density of items",
Modified: pro/scripts/ui/lamp_autobuffer.py
===================================================================
--- pro/scripts/ui/lamp_autobuffer.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/lamp_autobuffer.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -65,8 +65,7 @@
''''''
bl_idname = "object.lamp_res_calc"
bl_label = "Auto Lamp Res"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
screen_res = bpy.props.IntProperty(min=64, max=10240, default=1024)
Modified: pro/scripts/ui/marker_render.py
===================================================================
--- pro/scripts/ui/marker_render.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/marker_render.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -58,7 +58,6 @@
''''''
bl_idname = "screen.opengl_render_multi"
bl_label = "Render OpenGL Multi"
- bl_register = True
pad = IntProperty(name="Padding",
description="Padding frames",
@@ -91,7 +90,7 @@
''''''
bl_idname = "sequencer.frame_padding"
bl_label = "Padd Frames"
- bl_register = True
+ bl_options = {'REGISTER', 'UNDO'}
pad = IntProperty(name="Padding",
description="Padding frames",
Modified: pro/scripts/ui/mesh_skin.py
===================================================================
--- pro/scripts/ui/mesh_skin.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/mesh_skin.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -632,8 +632,7 @@
bl_idname = "mesh.skin"
bl_label = "Add Torus"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
'''
loft_method = EnumProperty(attr="loft_method", items=[(), ()], description="", default= True)
Modified: pro/scripts/ui/weight_grad.py
===================================================================
--- pro/scripts/ui/weight_grad.py 2010-02-27 23:32:35 UTC (rev 1148)
+++ pro/scripts/ui/weight_grad.py 2010-03-01 08:38:23 UTC (rev 1149)
@@ -15,8 +15,7 @@
''''''
bl_idname = "weight.gradient"
bl_label = "Weight Gradient"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
width = bpy.props.FloatProperty(name="Width",
description="Padding frames",
More information about the Durian-svn
mailing list