properties were being used with wrong type functions, this resulted in bad memory access when getting int from an enum.

This commit is contained in:
Campbell Barton
2011-03-22 12:53:36 +00:00
parent 4c3899ca09
commit a79820d284
13 changed files with 28 additions and 28 deletions

View File

@@ -162,8 +162,8 @@ class VertexPaintDirt(bpy.types.Operator):
obj = context.object
if not obj or obj.type != 'MESH':
print('Error, no active mesh object, aborting')
return('CANCELLED',)
self.report({'ERROR'}, "Error, no active mesh object, aborting")
return {'CANCELLED'}
mesh = obj.data