diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 15:53:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 15:53:36 +0300 |
commit | a79820d2849a6366353c7045e4fd5f161f6a70fa (patch) | |
tree | e5e721c5df13e898b10ec72668d2706eadbf5ed7 /release/scripts | |
parent | 4c3899ca09fd6b8d8acb70aa28148cf348794003 (diff) |
properties were being used with wrong type functions, this resulted in bad memory access when getting int from an enum.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/vertexpaint_dirt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/vertexpaint_dirt.py b/release/scripts/startup/bl_operators/vertexpaint_dirt.py index ca8a3dedd0d..672db71e361 100644 --- a/release/scripts/startup/bl_operators/vertexpaint_dirt.py +++ b/release/scripts/startup/bl_operators/vertexpaint_dirt.py @@ -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 |