[Bf-blender-cvs] [592c3881bae] master: Silence compilation error around possible fall-through

Sergey Sharybin noreply at git.blender.org
Mon May 7 14:20:35 CEST 2018


Commit: 592c3881bae4b063e88444d8341aa5b488b5abb5
Author: Sergey Sharybin
Date:   Mon May 7 14:19:12 2018 +0200
Branches: master
https://developer.blender.org/rB592c3881bae4b063e88444d8341aa5b488b5abb5

Silence compilation error around possible fall-through

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

M	source/blender/editors/sculpt_paint/sculpt.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 34e60187a73..cc462631647 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1129,6 +1129,8 @@ static float brush_strength(
 				case BRUSH_MASK_SMOOTH:
 					return alpha * pressure * feather;
 			}
+			BLI_assert(!"Not supposed to happen");
+			break;
 
 		case SCULPT_TOOL_CREASE:
 		case SCULPT_TOOL_BLOB:



More information about the Bf-blender-cvs mailing list