Fix: Assert in Set Tool Selection node with floats

This commit is contained in:
Hans Goudey
2025-05-19 10:18:43 -04:00
parent 62ccba022c
commit ed422eadce

View File

@@ -62,7 +62,7 @@ static GField clamp_selection(const GField &selection)
}
static auto clamp = mf::build::SI1_SO<float, float>(
"Clamp", [](const float value) { return std::clamp(value, 0.0f, 1.0f); });
return Field<bool>(FieldOperation::Create(clamp, {selection}));
return Field<float>(FieldOperation::Create(clamp, {selection}));
}
static GField invert_selection(const GField &selection)