Skip to content

Commit

Permalink
Merge pull request #82 from urholaukkarinen/71-fix-gizmo-clipping
Browse files Browse the repository at this point in the history
Fixed painter clipping in transform-gizmo-egui (#71)
  • Loading branch information
urholaukkarinen authored Oct 6, 2024
2 parents edce73e + 06b31ce commit 7556fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/transform-gizmo-egui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl GizmoExt for Gizmo {

let draw_data = self.draw();

ui.painter().with_clip_rect(egui_viewport).add(Mesh {
egui::Painter::new(ui.ctx().clone(), ui.layer_id(), egui_viewport).add(Mesh {
indices: draw_data.indices,
vertices: draw_data
.vertices
Expand Down

0 comments on commit 7556fb3

Please sign in to comment.