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:
authorHans Goudey <h.goudey@me.com>2021-04-13 01:43:36 +0300
committerHans Goudey <h.goudey@me.com>2021-04-13 01:43:36 +0300
commit8d9fd0427dd6cf9556f2bb4415ead82c73300d32 (patch)
treef0c7058fe4b05bced5a083d1ebc046beae1dae5d /source/blender/nodes/geometry/nodes/node_geo_boolean.cc
parent1e8a808910996af132629dce961aa9576dcba50f (diff)
Cleanup: Nodes: Use consistent errors for nodes built without features
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_boolean.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_boolean.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_boolean.cc b/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
index 34fff596902..d8029ea1eeb 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_boolean.cc
@@ -85,11 +85,10 @@ static void geo_node_boolean_exec(GeoNodeExecParams params)
const bool use_self = params.get_input<bool>("Self Intersection");
const bool hole_tolerant = params.get_input<bool>("Hole Tolerant");
- if (operation < 0 || operation > 2) {
- BLI_assert(false);
- params.set_output("Geometry", GeometrySet());
- return;
- }
+#ifndef WITH_GMP
+ params.error_message_add(NodeWarningType::Error,
+ TIP_("Disabled, Blender was compiled without GMP"));
+#endif
Vector<const Mesh *> meshes;
Vector<const float4x4 *> transforms;