[Bf-blender-cvs] [bb39925] master: Fix T41454: Command "Dirty Vertex Colors" prompts Python error.

Bastien Montagne noreply at git.blender.org
Fri Aug 15 19:51:25 CEST 2014


Commit: bb39925ec5f46f4c2fde7267a429b7cdc5f025b6
Author: Bastien Montagne
Date:   Fri Aug 15 19:50:16 2014 +0200
Branches: master
https://developer.blender.org/rBbb39925ec5f46f4c2fde7267a429b7cdc5f025b6

Fix T41454: Command "Dirty Vertex Colors" prompts Python error.

===================================================================

M	release/scripts/startup/bl_operators/vertexpaint_dirt.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/vertexpaint_dirt.py b/release/scripts/startup/bl_operators/vertexpaint_dirt.py
index 68c9bc1..ecb1ecf 100644
--- a/release/scripts/startup/bl_operators/vertexpaint_dirt.py
+++ b/release/scripts/startup/bl_operators/vertexpaint_dirt.py
@@ -109,7 +109,7 @@ def applyVertexDirt(me, blur_iterations, blur_strength, clamp_dirt, clamp_clean,
         active_col_layer = me.vertex_colors[0].data
 
     if not active_col_layer:
-        return
+        return {'CANCELLED'}
 
     use_paint_mask = me.use_paint_mask




More information about the Bf-blender-cvs mailing list