You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Inspector ⚠️ when C# props might be out of date
This commit is contained in:
@@ -2246,6 +2246,17 @@ bool CSharpScript::_update_exports(PlaceHolderScriptInstance *p_instance_to_upda
|
||||
} else {
|
||||
p_instance_to_update->update(propnames, values);
|
||||
}
|
||||
} else if (placeholders.size()) {
|
||||
uint64_t script_modified_time = FileAccess::get_modified_time(get_path());
|
||||
uint64_t last_valid_build_time = GDMono::get_singleton()->get_project_assembly_modified_time();
|
||||
if (script_modified_time > last_valid_build_time) {
|
||||
for (PlaceHolderScriptInstance *instance : placeholders) {
|
||||
Object *owner = instance->get_owner();
|
||||
if (owner->get_script_instance() == instance) {
|
||||
owner->notify_property_list_changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user