mirror of
https://github.com/okalachev/flix.git
synced 2026-02-16 23:21:31 +00:00
Make setting parameter in console printing actual parameter value.
In some cases, it would not be equal to the requested value.
This commit is contained in:
@@ -94,7 +94,7 @@ void doCommand(String str, bool echo = false) {
|
|||||||
} else if (command == "p") {
|
} else if (command == "p") {
|
||||||
bool success = setParameter(arg0.c_str(), arg1.toFloat());
|
bool success = setParameter(arg0.c_str(), arg1.toFloat());
|
||||||
if (success) {
|
if (success) {
|
||||||
print("%s = %g\n", arg0.c_str(), arg1.toFloat());
|
print("%s = %g\n", arg0.c_str(), getParameter(arg0.c_str()));
|
||||||
} else {
|
} else {
|
||||||
print("Parameter not found: %s\n", arg0.c_str());
|
print("Parameter not found: %s\n", arg0.c_str());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user