mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fixes property revert for inherited child nodes
This commit is contained in:
parent
0e3b011dee
commit
0dfe28d93d
@ -414,9 +414,9 @@ bool EditorPropertyRevert::get_instanced_node_original_property(Node *p_node, co
|
||||
node = node->get_owner();
|
||||
}
|
||||
|
||||
if (!found && node) {
|
||||
if (!found && p_node) {
|
||||
//if not found, try default class value
|
||||
Variant attempt = ClassDB::class_get_default_property_value(node->get_class_name(), p_prop);
|
||||
Variant attempt = ClassDB::class_get_default_property_value(p_node->get_class_name(), p_prop);
|
||||
if (attempt.get_type() != Variant::NIL) {
|
||||
found = true;
|
||||
value = attempt;
|
||||
|
Loading…
Reference in New Issue
Block a user