Merge pull request #115037 from kleonc/sprite3d_fix_color_propagation_on_reparenting
Fix `Sprite3D` modulate propagation on reparenting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user