Cleanup: use dedicated math function for comparison with zero

Pull Request: https://projects.blender.org/blender/blender/pulls/137221
This commit is contained in:
Habib Gahbiche
2025-04-09 17:20:18 +02:00
parent 115d809358
commit 93f0867ba6

View File

@@ -127,7 +127,7 @@ class EllipseMaskOperation : public NodeOperation {
const Result &input_mask = get_input("Mask");
Result &output_mask = get_result("Mask");
const float2 size = this->get_size();
if (size.x == 0 || size.y == 0) {
if (math::is_any_zero(size)) {
output_mask.share_data(input_mask);
return;
}