Skip to content

Commit 942a222

Browse files
Unlock the power of percent_ref_size on chars so you can scale them above 1.0
1 parent 631574c commit 942a222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/textalog/nodes/dialogue_base_node/portraits_node/portraits_node.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func add_portrait(
7575
if ignore_ref_size:
7676
var _rel_size:Vector2 = rect_data.get("size", Vector2(0.3, 0.7))
7777
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)
78+
ref_size.x = max(ref_size.x, 0)
79+
ref_size.y = max(ref_size.y, 0)
8080
_texture_rect.rect_size = ref_size
8181

8282
# Position

0 commit comments

Comments
 (0)