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)
5
5
6
6
set (wgpu-shader-toy_RELEASE_YEAR "2025" )
7
7
set (wgpu-shader-toy_RELEASE_MONTH "02" )
8
- set (wgpu-shader-toy_RELEASE_DAY "26 " )
8
+ set (wgpu-shader-toy_RELEASE_DAY "27 " )
9
9
10
10
set (wgpu-shader-toy_VERSION "${wgpu-shader-toy_RELEASE_YEAR}.${wgpu-shader-toy_RELEASE_MONTH}.${wgpu-shader-toy_RELEASE_DAY}" )
11
11
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ struct ShaderToyInputs {
102
102
void resetTime ();
103
103
void startManualClock () { fClock .setManual (true ); }
104
104
void endManualClock () { fClock .setManual (false ); }
105
+ constexpr bool isManualClock () const { return fClock .isManual (); }
105
106
106
107
constexpr bool isEnabled () const { return fEnabled ; }
107
108
constexpr void toggleEnabled () { fEnabled = !fEnabled ; }
Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ void MainWindow::renderTimeControls()
452
452
auto const frameCount = isKeyAlt ? 1 : 12 ;
453
453
454
454
// Previous frame
455
- ImGui::BeginDisabled (fCurrentFragmentShader ->getInputs ().frame == 0 );
455
+ ImGui::BeginDisabled (fCurrentFragmentShader ->getInputs ().frame == 0 && ! fCurrentFragmentShader -> isManualClock () );
456
456
{
457
457
static bool kClockState {};
458
458
ImGui::PushItemFlag (ImGuiItemFlags_ButtonRepeat, true );
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class Clock
49
49
void resume () { fPaused = false ; }
50
50
51
51
void setManual (bool iManual) { fManual = iManual; }
52
+ constexpr bool isManual () const { return fManual ; }
52
53
53
54
void reset ()
54
55
{
You can’t perform that action at this time.
0 commit comments