Skip to content

Commit 21c456f

Browse files
committed
2 parents 366a832 + feef0a6 commit 21c456f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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

docs/changelog/1.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Changed:
1111
* **`DialogManager.text_autoscroll` will be false by default.**
1212
* **`DialogManager.text_fit_content_height` will be false by default.**
13+
* **Remove limits on PortraitManager.add_portrait() method for relative size.** Make your portrait bigger than the 100% of the portrait manager rect! [#66](https://github.com/AnidemDex/Godot-DialogPlugin/pull/66)
1314

1415
### Fixed:
1516
* **Fix an issue related to showing DialogNode on show_text() call**. Because somebody forgots to shows the node in a `show` function. [#53](https://github.com/AnidemDex/Godot-DialogPlugin/pull/53)

0 commit comments

Comments
 (0)