Commit 636ce9fe authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: clean flow widget

parent 67d8c05d
......@@ -1987,7 +1987,10 @@ show_dynamics_inputs(none& /*dyn*/)
static void
show_dynamics_values(const flow& dyn)
{
ImGui::Text("value %.3f", dyn.value);
if (dyn.i < dyn.default_size)
ImGui::Text("value %.3f", dyn.default_data[dyn.i]);
else
ImGui::Text("no data");
}
static void
......@@ -2273,10 +2276,8 @@ show_dynamics_inputs(accumulator_2& /*dyn*/)
{}
static void
show_dynamics_inputs(flow& dyn)
{
ImGui::InputDouble("value", &dyn.default_value);
}
show_dynamics_inputs(flow& /*dyn*/)
{}
static void
show_dynamics_inputs(time_func& dyn)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment