diff options
| author | Juan Linietsky | 2016-08-03 22:06:39 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-08-03 22:07:03 -0300 |
| commit | cd25624667fd2b37abfc605edc06b0345798f46e (patch) | |
| tree | 9e8bb75db5c94744f97b730a2d3318a9726ad595 /tools/editor/property_editor.cpp | |
| parent | 2f62a2542efbb40ddc999336b95399227737c893 (diff) | |
| download | godot-cd25624667fd2b37abfc605edc06b0345798f46e.tar.gz godot-cd25624667fd2b37abfc605edc06b0345798f46e.tar.zst godot-cd25624667fd2b37abfc605edc06b0345798f46e.zip | |
More work on visual scripting..
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/property_editor.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 135eca686..f66cdd7ca 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: { |
