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

Update gizmo crate to transform_gizmo_bevy to update egui version #106

Closed

Conversation

ActuallyHappening
Copy link
Contributor

@ActuallyHappening ActuallyHappening commented Jun 9, 2024

OK this looks completed and polished to me, can somebody review and merge this? Ideally then a publish to crates.io using the latest Cargo.toml / dependencies would be greatly appreciated (see issue #105)
Technically this is a breaking change, since one field of the GizmoState struct (used for the state of the EditorWindow trait implementation) changed types from egui-gizmo::GizmoMode to EnumSet<transform_gizmo_bevy::GizmoMode, although I doubt anybody was actually depending on this and hence I think a patch release to 0.8.2 is OK

So far this updates egui-gizmo with transform-gizmo-bevy, which is the new version of the old crate and which internally uses the newest version of egui (0.27). It implements the hotkeys mapping (although there is a builtin hotkey system in transform-gizmo-bevy anyway), and mimics the old behaviour of starting out with translate only gizmos.

but a bit buggy
accidentally committed changes
and added documentation here and there
@ActuallyHappening ActuallyHappening marked this pull request as ready for review June 10, 2024 10:43
pub camera_gizmo_active: bool,
pub gizmo_mode: GizmoMode,
/// Synced with the [transform_gizmo_bevy::GizmoOptions] resource
pub gizmo_modes: EnumSet<GizmoMode>,
Copy link
Contributor Author

@ActuallyHappening ActuallyHappening Jun 10, 2024

Choose a reason for hiding this comment

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

The only breaking change, at least that I can see

@ActuallyHappening
Copy link
Contributor Author

ActuallyHappening commented Jun 16, 2024

Could we get this merged @jakobhellermann

@jakobhellermann
Copy link
Owner

Hi, I kinda missed this PR, sorry. I'll merge it together with #110 when the required dependencies are updated

@jakobhellermann
Copy link
Owner

jakobhellermann commented Aug 11, 2024

merged in #110

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

Successfully merging this pull request may close these issues.

2 participants