diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-28 02:29:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-28 02:29:34 +0300 |
commit | 351f5d1837d3660d1f9fb8921b60513787737442 (patch) | |
tree | 37ccd0296a7147778f514c328c1462b1709f35be /release/scripts/op | |
parent | 532b5e7bba1d229600eb0aa48684692cd630cfa6 (diff) |
- loading missing files didnt give any warning
- shape key transfer poll function
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/object.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py index c510981ebc2..e093460ab31 100644 --- a/release/scripts/op/object.py +++ b/release/scripts/op/object.py @@ -305,6 +305,10 @@ class ShapeTransfer(bpy.types.Operator): return {'FINISHED'} + def poll(self, context): + obj = context.active_object + return (obj and obj.mode != 'EDIT') + def execute(self, context): C = bpy.context ob_act = C.active_object |