[Bf-blender-cvs] [abd240332d4] master: Compositor: fix linear feather falloff in dilate/erode node

Jacques Lucke noreply at git.blender.org
Wed Jun 12 15:53:44 CEST 2019


Commit: abd240332d4601b80e0cb03739f03f2fad3e8a1c
Author: Jacques Lucke
Date:   Wed Jun 12 15:52:09 2019 +0200
Branches: master
https://developer.blender.org/rBabd240332d4601b80e0cb03739f03f2fad3e8a1c

Compositor: fix linear feather falloff in dilate/erode node

The bug only affected debug builds.

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

M	source/blender/compositor/operations/COM_BlurBaseOperation.cpp

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

diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp
index f3b090287ad..84c41134b89 100644
--- a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp
+++ b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp
@@ -134,7 +134,8 @@ float *BlurBaseOperation::make_dist_fac_inverse(float rad, int size, int falloff
         val = val * (2.0f - val);
         break;
       case PROP_LIN:
-        /* fall-through */
+        /* nothing to do */
+        break;
 #ifndef NDEBUG
       case -1:
         /* uninitialized! */



More information about the Bf-blender-cvs mailing list