summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/NodeModel.cpp2
-rw-r--r--src/libs/client/ObjectModel.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp
index b429d356..fff01aee 100644
--- a/src/libs/client/NodeModel.cpp
+++ b/src/libs/client/NodeModel.cpp
@@ -176,6 +176,8 @@ NodeModel::port_value_range(SharedPtr<PortModel> port, float& min, float& max)
min = min_atom.get_float();
if (max_atom.type() == Atom::FLOAT)
max = max_atom.get_float();
+
+ cerr << port->path() << " VALUE RANGE: " << min << ", " << max << endl;
}
diff --git a/src/libs/client/ObjectModel.hpp b/src/libs/client/ObjectModel.hpp
index 586ef8b3..55a5e6e1 100644
--- a/src/libs/client/ObjectModel.hpp
+++ b/src/libs/client/ObjectModel.hpp
@@ -61,7 +61,7 @@ public:
const Atom& get_variable(const string& key) const;
void set_variable(const string& key, const Atom& value)
- { _variables.insert(make_pair(key, value)); signal_variable.emit(key, value); }
+ { _variables[key] = value; signal_variable.emit(key, value); }
const Variables& variables() const { return _variables; }
const Path path() const { return _path; }