[Bf-blender-cvs] [4a00faca1a5] master: Fix: Geometry Nodes Subdiv Surface Crash
Johnny Matthews
noreply at git.blender.org
Sat Oct 16 14:27:07 CEST 2021
Commit: 4a00faca1a5e86ee3fb2d55ec98bf5f9ef0ae66a
Author: Johnny Matthews
Date: Sat Oct 16 07:24:30 2021 -0500
Branches: master
https://developer.blender.org/rB4a00faca1a5e86ee3fb2d55ec98bf5f9ef0ae66a
Fix: Geometry Nodes Subdiv Surface Crash
If there are no edges in the mesh, the process would crash.
Returning in this case.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
index d37f968caa8..5b480f2dc22 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
@@ -97,6 +97,10 @@ static void geo_node_subdivision_surface_exec(GeoNodeExecParams params)
GeometryComponentFieldContext field_context{mesh_component, domain};
const int domain_size = mesh_component.attribute_domain_size(domain);
+ if (domain_size == 0) {
+ return;
+ }
+
FieldEvaluator evaluator(field_context, domain_size);
evaluator.add(crease_field);
evaluator.evaluate();
More information about the Bf-blender-cvs
mailing list