Skip to content

Commit

Permalink
Use separate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Dec 9, 2024
1 parent 47e6e47 commit 000bfc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions yt_idv/simple_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ def render_camera(self, scene):
if not imgui.tree_node("Camera"):
return
changed = False
_, scroll_delta = imgui.slider_float(
"Log Scroll Delta", math.log10(scene.camera.scroll_delta), -3.0, 0.0
)
with imgui.begin_group():
imgui.text("Log of Scroll Delta")
_, scroll_delta = imgui.slider_float(
"value", math.log10(scene.camera.scroll_delta), -3.0, 0.0
)
if _:
scene.camera.scroll_delta = 10**scroll_delta
changed = True
Expand Down

0 comments on commit 000bfc9

Please sign in to comment.