Merge branch 'blender-v4.5-release'

This commit is contained in:
Omar Emara
2025-06-10 09:48:10 +03:00
2 changed files with 6 additions and 14 deletions

View File

@@ -259,18 +259,14 @@ class BoxMaskOperation : public NodeOperation {
float2 get_location()
{
return math::clamp(
this->get_input("Position").get_single_value_default(float3(0.5f, 0.5f, 0.0f)).xy(),
float2(-0.5f),
float2(1.5f));
return this->get_input("Position").get_single_value_default(float3(0.5f, 0.5f, 0.0f)).xy();
}
float2 get_size()
{
return math::clamp(
this->get_input("Size").get_single_value_default(float3(0.2f, 0.1f, 0.0f)).xy(),
return math::max(
float2(0.0f),
float2(1.0f));
this->get_input("Size").get_single_value_default(float3(0.2f, 0.1f, 0.0f)).xy());
}
float get_angle()

View File

@@ -263,18 +263,14 @@ class EllipseMaskOperation : public NodeOperation {
float2 get_location()
{
return math::clamp(
this->get_input("Position").get_single_value_default(float3(0.5f, 0.5f, 0.0f)).xy(),
float2(-0.5f),
float2(1.5f));
return this->get_input("Position").get_single_value_default(float3(0.5f, 0.5f, 0.0f)).xy();
}
float2 get_size()
{
return math::clamp(
this->get_input("Size").get_single_value_default(float3(0.2f, 0.1f, 0.0f)).xy(),
return math::max(
float2(0.0f),
float2(1.0f));
this->get_input("Size").get_single_value_default(float3(0.2f, 0.1f, 0.0f)).xy());
}
float get_angle()