summaryrefslogtreecommitdiff
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-08-03 22:06:39 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-08-03 22:07:03 -0300
commitcd25624667fd2b37abfc605edc06b0345798f46e (patch)
tree9e8bb75db5c94744f97b730a2d3318a9726ad595 /tools/editor/property_editor.cpp
parent2f62a2542efbb40ddc999336b95399227737c893 (diff)
More work on visual scripting..
Diffstat (limited to 'tools/editor/property_editor.cpp')
-rw-r--r--tools/editor/property_editor.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 135eca6860..f66cdd7cae 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -1362,11 +1362,21 @@ void CustomPropertyEditor::_modified(String p_string) {
return;
updating=true;
switch(type) {
+ case Variant::INT: {
+
+ if (evaluator)
+ v=evaluator->eval(value_editor[0]->get_text());
+ else
+ v=value_editor[0]->get_text().to_int();
+ emit_signal("variant_changed");
+
+
+ } break;
case Variant::REAL: {
if (hint!=PROPERTY_HINT_EXP_EASING) {
if (evaluator)
- evaluator->eval(value_editor[0]->get_text());
+ v=evaluator->eval(value_editor[0]->get_text());
else
v=value_editor[0]->get_text().to_double();
emit_signal("variant_changed");
@@ -1570,7 +1580,8 @@ void CustomPropertyEditor::_modified(String p_string) {
} break;
case Variant::NODE_PATH: {
-
+ v=NodePath(value_editor[0]->get_text());
+ emit_signal("variant_changed");
} break;
case Variant::INPUT_EVENT: {