summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-07-30 22:08:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-07-30 22:08:26 +0200
commit55494073081bd111dc6af8502f77cf344c64b56c (patch)
treecc76cc2a882f21708bfdba3b6dcef09f468e3eb5
parent389bed6fa95a412e86338c4650f17f9b7828b01e (diff)
Revert "PropertyEditor: display "Off" if property is false"
This reverts commit 5adb94e72694fd4c4b80be85b3adf9a4a7d6c45b. It was actually not a bug, see discussion on #9898.
-rw-r--r--editor/property_editor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index febaa0e040..49d161429e 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -2199,7 +2199,6 @@ void PropertyEditor::set_item_text(TreeItem *p_item, int p_type, const String &p
case Variant::BOOL: {
p_item->set_checked(1, obj->get(p_name));
- p_item->set_text(1, obj->get(p_name) ? TTR("On") : TTR("Off"));
} break;
case Variant::REAL:
case Variant::INT: {
@@ -3142,7 +3141,7 @@ void PropertyEditor::update_tree() {
case Variant::BOOL: {
item->set_cell_mode(1, TreeItem::CELL_MODE_CHECK);
- item->set_text(1, obj->get(p.name) ? TTR("On") : TTR("Off"));
+ item->set_text(1, TTR("On"));
item->set_tooltip(1, obj->get(p.name) ? "True" : "False");
item->set_checked(1, obj->get(p.name));
if (show_type_icons)