Universalize UID support in all resource types
Ensures all resource types support UIDs in a project. This is required to fix: * Scripts and many other resource types can't be referenced by UID and when refactored the references are lost. * Path export properties can't use UID for unsupported types. * Refactoring problems when files are moved outside the editor (this PR effectively fixes it). * Editor properly refreshing paths if they changed externally while opened (as example, git update). This needs to be addressed in a subsequent PR, but this one effectively sets the prerequisites. Resource types that do not support UID will get a .uid file appended to them (this includes .gd, .gdshader, .gdextension, etc. files).
This commit is contained in:
parent
0f5f3bc954
commit
d57846087b
11 changed files with 61 additions and 1 deletions
|
|
@ -118,6 +118,7 @@ public:
|
|||
virtual String get_resource_script_class(const String &p_path) const override;
|
||||
virtual void get_classes_used(const String &p_path, HashSet<StringName> *r_classes) override;
|
||||
virtual ResourceUID::ID get_resource_uid(const String &p_path) const override;
|
||||
virtual bool has_custom_uid_support() const override;
|
||||
virtual void get_dependencies(const String &p_path, List<String> *p_dependencies, bool p_add_types = false) override;
|
||||
virtual Error rename_dependencies(const String &p_path, const HashMap<String, String> &p_map) override;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue