diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-02-02 14:56:05 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-02-02 14:56:05 +0800 |
commit | e896fbb638674972ce98d6475398bb3765b65b71 (patch) | |
tree | 1dd7d95d7f48c93b915ed1930226223b0be95f8b /scene/resources/placeholder_textures.cpp | |
parent | 6fea273ed3df7d4be9674d35aae698731fa823ea (diff) | |
download | redot-engine-e896fbb638674972ce98d6475398bb3765b65b71.tar.gz |
Support immediately update ui after resizing placeholder* texture
Diffstat (limited to 'scene/resources/placeholder_textures.cpp')
-rw-r--r-- | scene/resources/placeholder_textures.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/placeholder_textures.cpp b/scene/resources/placeholder_textures.cpp index c395195c47..c32ead07fd 100644 --- a/scene/resources/placeholder_textures.cpp +++ b/scene/resources/placeholder_textures.cpp @@ -32,6 +32,7 @@ void PlaceholderTexture2D::set_size(Size2 p_size) { size = p_size; + emit_changed(); } int PlaceholderTexture2D::get_width() const { @@ -77,6 +78,7 @@ PlaceholderTexture2D::~PlaceholderTexture2D() { void PlaceholderTexture3D::set_size(const Vector3i &p_size) { size = p_size; + emit_changed(); } Vector3i PlaceholderTexture3D::get_size() const { @@ -133,6 +135,7 @@ PlaceholderTexture3D::~PlaceholderTexture3D() { void PlaceholderTextureLayered::set_size(const Size2i &p_size) { size = p_size; + emit_changed(); } Size2i PlaceholderTextureLayered::get_size() const { |