We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 631574c + 942a222 commit dc8b7c0Copy full SHA for dc8b7c0
addons/textalog/nodes/dialogue_base_node/portraits_node/portraits_node.gd
@@ -75,8 +75,8 @@ func add_portrait(
75
if ignore_ref_size:
76
var _rel_size:Vector2 = rect_data.get("size", Vector2(0.3, 0.7))
77
ref_size = _get_relative_position(_rel_size)
78
- ref_size.x = clamp(ref_size.x, 0, rect_size.x)
79
- ref_size.y = clamp(ref_size.y, 0, rect_size.y)
+ ref_size.x = max(ref_size.x, 0)
+ ref_size.y = max(ref_size.y, 0)
80
_texture_rect.rect_size = ref_size
81
82
# Position
0 commit comments