From d744f4a678bc7e197b6d7af89a440939f1f9a562 Mon Sep 17 00:00:00 2001 From: Eric M Date: Sun, 3 May 2020 16:54:34 +1000 Subject: [PATCH] Stopped trying to revert to default values when script implementation of property_can_revert exists (cherry picked from commit 27ada5c11404531a2cc88a500e918254d63c384f) --- editor/editor_inspector.cpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 27d0d61836f..39d67df01ff 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -464,18 +464,20 @@ bool EditorPropertyRevert::can_property_revert(Object *p_object, const StringNam } } - if (p_object->call("property_can_revert", p_property).operator bool()) { - - has_revert = true; - } - - if (!has_revert && !p_object->get_script().is_null()) { - Ref