py error fix and minor changes to rna info class

This commit is contained in:
2009-12-21 23:14:16 +00:00
parent 8f3a529585
commit 5bdcb2dff2
2 changed files with 26 additions and 9 deletions

View File

@@ -87,8 +87,8 @@ class SubdivisionSet(bpy.types.Operator):
default=1, min=0, max=100, soft_min=0, soft_max=6)
def poll(self, context):
ob = context.active_object
return (ob and ob.type == 'MESH')
obs = context.selected_editable_objects
return (obs is not None)
def execute(self, context):
level = self.properties.level