summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-09 00:52:09 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-09 00:52:09 +0100
commit1c8ef9e25208f95277a1d076fcba09ef77368cfd (patch)
treeec183929e8052a612e8bb08087ccbab79254fcdd /core
parentd78fafa4b049f4e2b792b90153a6c2ebafa75dd8 (diff)
parent7319b612f3512b5077279c51230b48b56622c564 (diff)
downloadredot-engine-1c8ef9e25208f95277a1d076fcba09ef77368cfd.tar.gz
Merge pull request #89251 from KoBeWi/fastpector
Speed up inspector updates for TileMap
Diffstat (limited to 'core')
-rw-r--r--core/io/resource.cpp4
-rw-r--r--core/io/resource.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/io/resource.cpp b/core/io/resource.cpp
index 6d32035d25..5edb045760 100644
--- a/core/io/resource.cpp
+++ b/core/io/resource.cpp
@@ -435,7 +435,7 @@ RID Resource::get_rid() const {
#ifdef TOOLS_ENABLED
-uint32_t Resource::hash_edited_version() const {
+uint32_t Resource::hash_edited_version_for_preview() const {
uint32_t hash = hash_murmur3_one_32(get_edited_version());
List<PropertyInfo> plist;
@@ -445,7 +445,7 @@ uint32_t Resource::hash_edited_version() const {
if (E.usage & PROPERTY_USAGE_STORAGE && E.type == Variant::OBJECT && E.hint == PROPERTY_HINT_RESOURCE_TYPE) {
Ref<Resource> res = get(E.name);
if (res.is_valid()) {
- hash = hash_murmur3_one_32(res->hash_edited_version(), hash);
+ hash = hash_murmur3_one_32(res->hash_edited_version_for_preview(), hash);
}
}
}
diff --git a/core/io/resource.h b/core/io/resource.h
index f0f686af57..cc8a0d4387 100644
--- a/core/io/resource.h
+++ b/core/io/resource.h
@@ -125,7 +125,7 @@ public:
#ifdef TOOLS_ENABLED
- uint32_t hash_edited_version() const;
+ virtual uint32_t hash_edited_version_for_preview() const;
virtual void set_last_modified_time(uint64_t p_time) { last_modified_time = p_time; }
uint64_t get_last_modified_time() const { return last_modified_time; }