[Bf-blender-cvs] [a8da70f70a1] master: Geometry Nodes: Add boolean attribute in utility function

Hans Goudey noreply at git.blender.org
Wed Dec 16 19:50:52 CET 2020


Commit: a8da70f70a1f581412982d1f858b7b9a96ab8c37
Author: Hans Goudey
Date:   Wed Dec 16 12:50:45 2020 -0600
Branches: master
https://developer.blender.org/rBa8da70f70a1f581412982d1f858b7b9a96ab8c37

Geometry Nodes: Add boolean attribute in utility function

This follows up rBc484b54453e607, adding the boolean custom property
data type in one more place that was missed.

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

M	source/blender/nodes/intern/node_geometry_exec.cc

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

diff --git a/source/blender/nodes/intern/node_geometry_exec.cc b/source/blender/nodes/intern/node_geometry_exec.cc
index 6a22adb25a7..eef2c6c9125 100644
--- a/source/blender/nodes/intern/node_geometry_exec.cc
+++ b/source/blender/nodes/intern/node_geometry_exec.cc
@@ -96,6 +96,9 @@ CustomDataType GeoNodeExecParams::get_input_attribute_data_type(
   if (found_socket->type == SOCK_RGBA) {
     return CD_PROP_COLOR;
   }
+  if (found_socket->type == SOCK_BOOLEAN) {
+    return CD_PROP_BOOL;
+  }
 
   BLI_assert(false);
   return default_type;



More information about the Bf-blender-cvs mailing list