diff options
Diffstat (limited to 'source/blender/nodes/intern/node_geometry_exec.cc')
-rw-r--r-- | source/blender/nodes/intern/node_geometry_exec.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/nodes/intern/node_geometry_exec.cc b/source/blender/nodes/intern/node_geometry_exec.cc index a4fb99a988e..ea973e7bdd6 100644 --- a/source/blender/nodes/intern/node_geometry_exec.cc +++ b/source/blender/nodes/intern/node_geometry_exec.cc @@ -97,8 +97,7 @@ ReadAttributePtr GeoNodeExecParams::get_input_attribute(const StringRef name, return component.attribute_get_constant_for_read_converted( domain, CD_PROP_COLOR, type, &value); } - BLI_assert(false); - return component.attribute_get_constant_for_read(domain, type, default_value); + BLI_UNREACHABLE_ABORT; } CustomDataType GeoNodeExecParams::get_input_attribute_data_type( @@ -133,8 +132,7 @@ CustomDataType GeoNodeExecParams::get_input_attribute_data_type( return CD_PROP_BOOL; } - BLI_assert(false); - return default_type; + BLI_UNREACHABLE_ABORT; } /** |