mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Store truncated representation of doubles when used as variables
This commit is contained in:
committed by
WarmUpTill
parent
c3f207f93c
commit
b2fc560701
@@ -1,6 +1,7 @@
|
||||
#include "variable.hpp"
|
||||
#include "math-helpers.hpp"
|
||||
#include "obs-module-helper.hpp"
|
||||
#include "utility.hpp"
|
||||
|
||||
#include <QGridLayout>
|
||||
|
||||
@@ -78,7 +79,7 @@ void Variable::SetValue(const std::string &val)
|
||||
|
||||
void Variable::SetValue(double value)
|
||||
{
|
||||
_value = std::to_string(value);
|
||||
_value = ToString(value);
|
||||
_lastUsed = std::chrono::high_resolution_clock::now();
|
||||
lastVariableChange = std::chrono::high_resolution_clock::now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user