diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-22 02:14:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-22 02:14:16 +0300 |
commit | 5bdcb2dff27e5c52c33728d09152178120009e0c (patch) | |
tree | a0b2b42082fb29f04d610b5952850f3a481aa449 /release/scripts/op | |
parent | 8f3a529585186a8b0a3315d037ac374351c63221 (diff) |
py error fix and minor changes to rna info class
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/object.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py index 6a7b735e04b..2ecd7b31b34 100644 --- a/release/scripts/op/object.py +++ b/release/scripts/op/object.py @@ -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 |