Skip to content

Commit

Permalink
changed GridEditor cursor z position so it works better at bigger sca…
Browse files Browse the repository at this point in the history
…les when in 3d.
  • Loading branch information
pokepetter committed Dec 10, 2024
1 parent e0ebd9f commit 5386c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ursina/prefabs/grid_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, size=(32,32), palette=(' ', '#', '|', 'o'), canvas_color=colo

self.gizmo_parent = Entity(parent=self.canvas, scale=(1/self.w, 1/self.h))
self.cursor = Entity(parent=self.gizmo_parent)
self.cursor_graphics = Entity(parent=self.cursor, model=Quad(segments=0, mode='line', thickness=2), origin=(-.5,-.5), color=hsv(120,1,1,.5), z=0, shader=unlit_shader)
self.cursor_graphics = Entity(parent=self.cursor, model=Quad(segments=0, mode='line', thickness=2), origin=(-.5,-.5), color=hsv(120,1,1,.5), z=-.02, shader=unlit_shader)

self.selected_char = palette[1]
self.palette = palette
Expand Down

0 comments on commit 5386c5e

Please sign in to comment.