Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GraphEdit::frame_rect_changed signal parameter type #102796

Conversation

caimantilla
Copy link
Contributor

@caimantilla caimantilla commented Feb 13, 2025

Changes the binding's parameter type from Vector2 to Rect2, which is what is actually emitted.

@caimantilla caimantilla requested a review from a team as a code owner February 13, 2025 02:35
@akien-mga akien-mga changed the title Fix GraphEdit::frame_rect_changed signal parameter type Fix GraphEdit::frame_rect_changed signal parameter type Feb 13, 2025
@Chaosus Chaosus added this to the 4.4 milestone Feb 13, 2025
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to run doctool.

@akien-mga
Copy link
Member

You need to run doctool.

This is done with bin/godot.blabla --doctool, but in this case you could also just apply this diff manually:

diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml
index 7013798..1d7ba4c 100644
--- a/doc/classes/GraphEdit.xml
+++ b/doc/classes/GraphEdit.xml
@@ -469,7 +469,7 @@
 		</signal>
 		<signal name="frame_rect_changed">
 			<param index="0" name="frame" type="GraphFrame" />
-			<param index="1" name="new_rect" type="Vector2" />
+			<param index="1" name="new_rect" type="Rect2" />
 			<description>
 				Emitted when the [GraphFrame] [param frame] is resized to [param new_rect].
 			</description>

Note: Please make modifications by amending the commit, and force pushing the changes, so that it stays as a single commit (see PR workflow).

@akien-mga akien-mga force-pushed the fix-graph-edit-frame-rect-changed-signal-parameter-type branch from ef0778c to 773c894 Compare February 14, 2025 21:24
@akien-mga akien-mga requested a review from a team as a code owner February 14, 2025 21:24
@akien-mga
Copy link
Member

I went ahead and amended the commit myself, so this should be ready to merge.

Changes the parameter type from Vector2 to Rect2, which is what is actually emitted.
@akien-mga akien-mga force-pushed the fix-graph-edit-frame-rect-changed-signal-parameter-type branch from 773c894 to bcd99bd Compare February 14, 2025 21:39
@akien-mga akien-mga requested review from a team as code owners February 14, 2025 21:39
@akien-mga
Copy link
Member

Technically breaks compat, but since it's fixing a bug the previous type was likely not usable/working at all.

@akien-mga akien-mga merged commit 9d2b6d2 into godotengine:master Feb 14, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants