- loading missing files didnt give any warning

- shape key transfer poll function
This commit is contained in:
2009-12-27 23:29:34 +00:00
parent 532b5e7bba
commit 351f5d1837
4 changed files with 8 additions and 4 deletions

View File

@@ -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