From 27ada5c11404531a2cc88a500e918254d63c384f 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 --- 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 8fcd5bacb6c..6adc640651f 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -501,18 +501,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