summaryrefslogtreecommitdiff
path: root/core/io/resource.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-04 14:18:27 +0100
committerGitHub <noreply@github.com>2021-11-04 14:18:27 +0100
commitc4f29b078ab18325dac3558bce9111f6a6870d90 (patch)
treed5df3380b1c5bf8180e6e620df7300135abb0214 /core/io/resource.h
parenta302006f86f855c7f2a5fec97f092f9d7f1e8c6c (diff)
parente393c2a7348d96587e15af17c72ebeff719d4be3 (diff)
Merge pull request #50352 from KoBeWi/internal_stuff
Diffstat (limited to 'core/io/resource.h')
-rw-r--r--core/io/resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/resource.h b/core/io/resource.h
index 9ccc247887..109c0f6611 100644
--- a/core/io/resource.h
+++ b/core/io/resource.h
@@ -103,6 +103,7 @@ public:
virtual void set_path(const String &p_path, bool p_take_over = false);
String get_path() const;
+ _FORCE_INLINE_ bool is_built_in() const { return path_cache.is_empty() || path_cache.find("::") != -1 || path_cache.begins_with("local://"); }
static String generate_scene_unique_id();
void set_scene_unique_id(const String &p_id);