From a4109200aae678263e9a5e6d578b38dddcd09630 Mon Sep 17 00:00:00 2001 From: Dmitry Koteroff Date: Fri, 24 Nov 2017 13:44:36 +0300 Subject: [PATCH] Makes possible to interpret comma as decimal point in editor --- editor/property_editor.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index bc7d8f4b140..425a2cb173c 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -4596,21 +4596,24 @@ SectionedPropertyEditor::~SectionedPropertyEditor() { double PropertyValueEvaluator::eval(const String &p_text) { + // If range value contains a comma replace it with dot (issue #6028) + const String &p_new_text = p_text.replace(",", "."); + if (!obj || !script_language) - return _default_eval(p_text); + return _default_eval(p_new_text); Ref