[Bf-blender-cvs] [f3a2434bb60] master: Cleanup: Use bool instead of int

Julian Eisel noreply at git.blender.org
Tue Feb 2 13:54:36 CET 2021


Commit: f3a2434bb60ca4a06bcfcc6264b34c980c5c2348
Author: Julian Eisel
Date:   Tue Feb 2 12:47:25 2021 +0100
Branches: master
https://developer.blender.org/rBf3a2434bb60ca4a06bcfcc6264b34c980c5c2348

Cleanup: Use bool instead of int

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

M	source/blender/editors/physics/dynamicpaint_ops.c

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

diff --git a/source/blender/editors/physics/dynamicpaint_ops.c b/source/blender/editors/physics/dynamicpaint_ops.c
index 381bf317bee..a761701f60b 100644
--- a/source/blender/editors/physics/dynamicpaint_ops.c
+++ b/source/blender/editors/physics/dynamicpaint_ops.c
@@ -233,7 +233,7 @@ static int output_toggle_exec(bContext *C, wmOperator *op)
 
   /* if type is already enabled, toggle it off */
   if (surface->format == MOD_DPAINT_SURFACE_F_VERTEX) {
-    int exists = dynamicPaint_outputLayerExists(surface, ob, output);
+    bool exists = dynamicPaint_outputLayerExists(surface, ob, output);
     const char *name;
 
     if (output == 0) {



More information about the Bf-blender-cvs mailing list