Skip to content

Commit

Permalink
Merge pull request godotengine#87854 from jsjtxietian/Placeholder
Browse files Browse the repository at this point in the history
Update visuals immediately after resizing `Placeholder*` textures
  • Loading branch information
akien-mga committed Feb 2, 2024
2 parents 99db720 + e896fbb commit 0d1fa8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/resources/placeholder_textures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

void PlaceholderTexture2D::set_size(Size2 p_size) {
size = p_size;
emit_changed();
}

int PlaceholderTexture2D::get_width() const {
Expand Down Expand Up @@ -77,6 +78,7 @@ PlaceholderTexture2D::~PlaceholderTexture2D() {

void PlaceholderTexture3D::set_size(const Vector3i &p_size) {
size = p_size;
emit_changed();
}

Vector3i PlaceholderTexture3D::get_size() const {
Expand Down Expand Up @@ -133,6 +135,7 @@ PlaceholderTexture3D::~PlaceholderTexture3D() {

void PlaceholderTextureLayered::set_size(const Size2i &p_size) {
size = p_size;
emit_changed();
}

Size2i PlaceholderTextureLayered::get_size() const {
Expand Down

0 comments on commit 0d1fa8d

Please sign in to comment.