Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-22 15:53:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-22 15:53:36 +0300
commita79820d2849a6366353c7045e4fd5f161f6a70fa (patch)
treee5e721c5df13e898b10ec72668d2706eadbf5ed7 /release
parent4c3899ca09fd6b8d8acb70aa28148cf348794003 (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')
-rw-r--r--release/scripts/startup/bl_operators/vertexpaint_dirt.py4
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