From 6e5872b70978b4ded3ade769ff46a44de6a6eb02 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 9 Nov 2018 08:16:01 -0300 Subject: [PATCH] Use a more compatible (and certain to work) mechanism to check default value on scene packing. --- scene/resources/packed_scene.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 2514cf98765..87483a7da4f 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -490,9 +490,15 @@ Error SceneState::_parse_node(Node *p_owner, Node *p_node, int p_parent_idx, Map isdefault = bool(Variant::evaluate(Variant::OP_EQUAL, value, default_value)); } - if (E->get().usage & PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE) { - isdefault = true; //is script default value + Ref