Merge pull request #115037 from kleonc/sprite3d_fix_color_propagation_on_reparenting

Fix `Sprite3D` modulate propagation on reparenting
This commit is contained in:
Rémi Verschelde
2026-01-16 16:15:04 +01:00

View File

@@ -75,6 +75,8 @@ void SpriteBase3D::_notification(int p_what) {
parent_sprite = Object::cast_to<SpriteBase3D>(get_parent());
if (parent_sprite) {
pI = parent_sprite->children.push_back(this);
_propagate_color_changed();
}
} break;
@@ -83,6 +85,8 @@ void SpriteBase3D::_notification(int p_what) {
parent_sprite->children.erase(pI);
pI = nullptr;
parent_sprite = nullptr;
_propagate_color_changed();
}
} break;
}