mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 19:29:58 +01:00
Set Max Clone delay to 2.0s
This commit is contained in:
@@ -187,7 +187,7 @@ void CloneSource::update(float dt)
|
||||
|
||||
void CloneSource::setDelay(double second)
|
||||
{
|
||||
delay_ = CLAMP(second, 0.0, 1.0);
|
||||
delay_ = CLAMP(second, 0.0, 2.0);
|
||||
}
|
||||
|
||||
void CloneSource::play (bool on)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
#define DELAY_ARRAY_SIZE 70
|
||||
#define DELAY_ARRAY_SIZE 130
|
||||
|
||||
#include "Source.h"
|
||||
|
||||
|
||||
@@ -775,7 +775,7 @@ void ImGuiVisitor::visit (CloneSource& s)
|
||||
|
||||
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
|
||||
float d = s.delay();
|
||||
if (ImGui::SliderFloat("Delay", &d, 0.f, 1.f, d < 0.01f ? "None" : "%.2f s"))
|
||||
if (ImGui::SliderFloat("Delay", &d, 0.f, 2.f, d < 0.01f ? "None" : "%.2f s"))
|
||||
s.setDelay(d);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user