mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 03:24:32 -05:00
Fixed error in ParallaxLayer when set_mirroring is called before entering the tree
Fixes #31300
This commit is contained in:
parent
839cc98cb9
commit
927a7916f6
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ Size2 ParallaxLayer::get_motion_offset() const {
|
|||
|
||||
void ParallaxLayer::_update_mirroring() {
|
||||
|
||||
if (!is_inside_tree())
|
||||
return;
|
||||
|
||||
ParallaxBackground *pb = Object::cast_to<ParallaxBackground>(get_parent());
|
||||
if (pb) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue