mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
Inspector ⚠️ when C# props might be out of date
This commit is contained in:
parent
2d0ee20ff3
commit
0818d015db
5 changed files with 136 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue