File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.28)
55
66set (wgpu-shader-toy_RELEASE_YEAR "2025" )
77set (wgpu-shader-toy_RELEASE_MONTH "02" )
8- set (wgpu-shader-toy_RELEASE_DAY "26 " )
8+ set (wgpu-shader-toy_RELEASE_DAY "27 " )
99
1010set (wgpu-shader-toy_VERSION "${wgpu-shader-toy_RELEASE_YEAR}.${wgpu-shader-toy_RELEASE_MONTH}.${wgpu-shader-toy_RELEASE_DAY}" )
1111
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ struct ShaderToyInputs {
102102 void resetTime ();
103103 void startManualClock () { fClock .setManual (true ); }
104104 void endManualClock () { fClock .setManual (false ); }
105+ constexpr bool isManualClock () const { return fClock .isManual (); }
105106
106107 constexpr bool isEnabled () const { return fEnabled ; }
107108 constexpr void toggleEnabled () { fEnabled = !fEnabled ; }
Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ void MainWindow::renderTimeControls()
452452 auto const frameCount = isKeyAlt ? 1 : 12 ;
453453
454454 // Previous frame
455- ImGui::BeginDisabled (fCurrentFragmentShader ->getInputs ().frame == 0 );
455+ ImGui::BeginDisabled (fCurrentFragmentShader ->getInputs ().frame == 0 && ! fCurrentFragmentShader -> isManualClock () );
456456 {
457457 static bool kClockState {};
458458 ImGui::PushItemFlag (ImGuiItemFlags_ButtonRepeat, true );
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class Clock
4949 void resume () { fPaused = false ; }
5050
5151 void setManual (bool iManual) { fManual = iManual; }
52+ constexpr bool isManual () const { return fManual ; }
5253
5354 void reset ()
5455 {
You can’t perform that action at this time.
0 commit comments