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 secondary handles in editor gizmos #56692

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

JFonS
Copy link
Contributor

@JFonS JFonS commented Jan 11, 2022

Primary and secondary handles are no longer differentiated by their IDs, so a bool was added to tell them apart in all the handle-related methods.

Fixes #52568.

@@ -12,8 +12,9 @@
<method name="_commit_handle" qualifiers="virtual">
<return type="void" />
<argument index="0" name="id" type="int" />
<argument index="1" name="restore" type="Variant" />
<argument index="2" name="cancel" type="bool" />
<argument index="1" name="secondary" type="bool" />
Copy link
Member

Choose a reason for hiding this comment

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

Some docs should be added to define what secondary means in these methods. Not sure if it should be repeated in all methods but it should at least be described once so that users know what to make of it.

@JFonS JFonS force-pushed the fix_gizmo_secondary_handles branch from ae02753 to db73791 Compare January 12, 2022 11:44
@JFonS
Copy link
Contributor Author

JFonS commented Jan 12, 2022

I force-pushed some documentation notes on secondary handles.

doc/classes/EditorNode3DGizmo.xml Outdated Show resolved Hide resolved
doc/classes/EditorNode3DGizmo.xml Outdated Show resolved Hide resolved
doc/classes/EditorNode3DGizmo.xml Outdated Show resolved Hide resolved
doc/classes/EditorNode3DGizmo.xml Outdated Show resolved Hide resolved
Primary and secondary handles are no longer differentiated by their ids, so a bool was added to tell them apart in all the handle-related methods.

Includes a minor fix in CollisionPolygon3DEditor, unrelated to editor gizmos.
@JFonS JFonS force-pushed the fix_gizmo_secondary_handles branch from db73791 to 5ebea2d Compare January 12, 2022 13:21
@JFonS
Copy link
Contributor Author

JFonS commented Jan 12, 2022

Docs should be fixed now :)

@akien-mga akien-mga merged commit 42d3993 into godotengine:master Jan 12, 2022
@akien-mga
Copy link
Member

Thanks!

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.

Path3D selection of curve point to set point_in/out is broken in 4.0 Same for polygon point.
2 participants