Skip to content

Commit 741fb8a

Browse files
committed
Merge pull request godotengine#115037 from kleonc/sprite3d_fix_color_propagation_on_reparenting
Fix `Sprite3D` modulate propagation on reparenting
2 parents 4742147 + 0c993df commit 741fb8a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scene/3d/sprite_3d.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ void SpriteBase3D::_notification(int p_what) {
7575
parent_sprite = Object::cast_to<SpriteBase3D>(get_parent());
7676
if (parent_sprite) {
7777
pI = parent_sprite->children.push_back(this);
78+
79+
_propagate_color_changed();
7880
}
7981
} break;
8082

@@ -83,6 +85,8 @@ void SpriteBase3D::_notification(int p_what) {
8385
parent_sprite->children.erase(pI);
8486
pI = nullptr;
8587
parent_sprite = nullptr;
88+
89+
_propagate_color_changed();
8690
}
8791
} break;
8892
}

0 commit comments

Comments
 (0)