Skip to content

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 28, 2024
1 parent 975064a commit 81cc5fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,13 @@ def preRenderTargetUpdate(self, evt):
astate.setEnabled(True)
self.app.active_controllers[name] = controller_mgr.createFrameTimePassthroughController(
Ogre.AnimationStateControllerValue.create(astate, True))
changed = False

if astate.getLength() > 0:
ImGui.SameLine()
changed, value = ImGui.SliderFloat("", astate.getTimePosition(), 0, astate.getLength(), "%.3fs")
if changed:
astate.setEnabled(True)
astate.setTimePosition(value)
if changed:
astate.setEnabled(True)
astate.setTimePosition(value)
ImGui.PopID()
ImGui.TreePop()

Expand Down

0 comments on commit 81cc5fc

Please sign in to comment.