Fix T90547: Add node errors when compiled without OpenVDB or Bullet

These were added in other places but were overlooked here.
This commit is contained in:
Hans Goudey 2021-08-09 13:42:19 -05:00
parent fddd5eb692
commit b04997cca4
Notes: blender-bot 2023-02-13 17:57:01 +01:00
Referenced by issue #90547, No Node Warning displayed for Volume and Convex Hull if they don't work
2 changed files with 5 additions and 0 deletions

View File

@ -304,6 +304,8 @@ static void geo_node_convex_hull_exec(GeoNodeExecParams params)
}
params.set_output("Convex Hull", GeometrySet::create_with_mesh(mesh));
#else
params.error_message_add(NodeWarningType::Error,
TIP_("Disabled, Blender was compiled without Bullet"));
params.set_output("Convex Hull", geometry_set);
#endif /* WITH_BULLET */
}

View File

@ -149,6 +149,9 @@ static void geo_node_volume_to_mesh_exec(GeoNodeExecParams params)
#ifdef WITH_OPENVDB
create_mesh_from_volume(geometry_set_in, geometry_set_out, params);
#else
params.error_message_add(NodeWarningType::Error,
TIP_("Disabled, Blender was compiled without OpenVDB"));
#endif
params.set_output("Geometry", geometry_set_out);