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:
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
|
@ -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 */
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue