[Bf-blender-cvs] [a8a4d12d9a9] temp-geometry-nodes-instances-api-v2: Support instances in the boolean node

Hans Goudey noreply at git.blender.org
Sat Feb 6 16:21:17 CET 2021


Commit: a8a4d12d9a9737336fbccec223db3f94d5843096
Author: Hans Goudey
Date:   Sat Feb 6 09:00:29 2021 -0600
Branches: temp-geometry-nodes-instances-api-v2
https://developer.blender.org/rBa8a4d12d9a9737336fbccec223db3f94d5843096

Support instances in the boolean node

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

M	source/blender/nodes/geometry/nodes/node_geo_boolean.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_boolean.cc b/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
index 19178546e40..b2987eb4cad 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
@@ -116,6 +116,13 @@ static void geo_node_boolean_exec(GeoNodeExecParams params)
     return;
   }
 
+  geometry_set_realize_instances_for_write(geometry_set_in_a);
+
+  /* Boolean does support taking an input of multiple meshes. Currently they must all be
+   * converted to BMesh before running the operation though. D9957 will make it possible to use
+   * the mesh structure directly. */
+  geometry_set_realize_instances_for_write(geometry_set_in_b);
+
   const Mesh *mesh_in_a = geometry_set_in_a.get_mesh_for_read();
   const Mesh *mesh_in_b = geometry_set_in_b.get_mesh_for_read();



More information about the Bf-blender-cvs mailing list