[Bf-blender-cvs] [35133f9a067] sculpt-dev: Sculpt-dev: fix compile error

Joseph Eagar noreply at git.blender.org
Tue Nov 9 19:17:36 CET 2021


Commit: 35133f9a067c068f5249696411058a6cf1aa76a3
Author: Joseph Eagar
Date:   Tue Nov 9 10:16:45 2021 -0800
Branches: sculpt-dev
https://developer.blender.org/rB35133f9a067c068f5249696411058a6cf1aa76a3

Sculpt-dev: fix compile error

Why can't we have -werror settings
the same on all compilers and platforms?

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

M	source/blender/makesrna/intern/rna_attribute.c

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

diff --git a/source/blender/makesrna/intern/rna_attribute.c b/source/blender/makesrna/intern/rna_attribute.c
index 55ad9680451..c8112ae499f 100644
--- a/source/blender/makesrna/intern/rna_attribute.c
+++ b/source/blender/makesrna/intern/rna_attribute.c
@@ -201,12 +201,12 @@ static void rna_Attribute_active_render_set(PointerRNA *ptr, bool value)
   }
 
   if (!BKE_id_attributes_supported(id)) {
-    return false;
+    return;
   }
 
   if (GS(id->name) != ID_ME) {
     /* only meshes for now */
-    return false;
+    return;
   }
 
   Mesh *me = (Mesh *)id;
@@ -229,7 +229,7 @@ static void rna_Attribute_active_render_set(PointerRNA *ptr, bool value)
   }
 
   if (!cdata) {
-    return false;
+    return;
   }
 
   if (ELEM(layer->type, CD_PROP_COLOR, CD_MLOOPCOL)) {



More information about the Bf-blender-cvs mailing list