Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Don't notify about property list in ImageTexture

kobewi4cc2024d60c6
diff --git a/scene/resources/image_texture.cpp b/scene/resources/image_texture.cpp
index fed1bba06a1..a34ff210fde 100644
--- a/scene/resources/image_texture.cpp
+++ b/scene/resources/image_texture.cpp
@@ -50,7 +50,6 @@ void ImageTexture::reload_from_file() {
set_image(img);
} else {
Resource::reload_from_file();
- notify_property_list_changed();
emit_changed();
}
}
@@ -84,7 +83,6 @@ void ImageTexture::set_image(const Ref<Image> &p_image) {
RID new_texture = RenderingServer::get_singleton()->texture_2d_create(p_image);
RenderingServer::get_singleton()->texture_replace(texture, new_texture);
}
- notify_property_list_changed();
emit_changed();
image_stored = true;
@@ -106,7 +104,6 @@ void ImageTexture::update(const Ref<Image> &p_image) {
RS::get_singleton()->texture_2d_update(texture, p_image);
- notify_property_list_changed();
emit_changed();
alpha_cache.unref();