Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Matthews (guitargeek) <johnny.matthews@gmail.com>2021-10-03 21:43:51 +0300
committerJohnny Matthews (guitargeek) <johnny.matthews@gmail.com>2021-10-03 21:43:51 +0300
commitae865844040c084ca650376bbfdda3cc9998f2d2 (patch)
tree3224c63efeee0bae06b97878a9c8077aa6af91c3 /source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc
parent98fe05fb5b9e1e2ee184444ff56806fa66de2615 (diff)
Geometry Nodes: Points to Volume Fields fixes
A few items when OpenVDB is not enabled. - Cleanup a compiler warning - Add a node warning message - Return an empty geometry set
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc b/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc
index 4a51d485b85..719523f64f0 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc
@@ -241,13 +241,16 @@ static void geo_node_points_to_volume_exec(GeoNodeExecParams params)
{
GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry");
- geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
#ifdef WITH_OPENVDB
+ geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
initialize_volume_component_from_points(params, geometry_set);
-#endif
});
-
params.set_output("Geometry", std::move(geometry_set));
+#else
+ params.error_message_add(NodeWarningType::Error,
+ TIP_("Disabled, Blender was compiled without OpenVDB"));
+ params.set_output("Geometry", GeometrySet());
+#endif
}
} // namespace blender::nodes