Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control nodes get resized randomly when using AnimationPlayer and instancing #55863

Open
milanvarady opened this issue Dec 12, 2021 · 4 comments

Comments

@milanvarady
Copy link

Godot version

3.4.stable

System information

MacOS Intel

Issue description

When a AnimationPlayer is used to animate Control based nodes in a scene that is instanced, and the instanced scene is run, the Control node gets resized and moved, both in the instanced and in the original scene. The rect_size property gets doubled, and if I don't fix it and open it a few more times, it gets tripled, quadrupled etc., and sometimes this happens with rect_position too. The animation player does not have to contain the property which gets changed, I had the rect_position animated, and the rect_size was changed. It seems to only happen when using instancing, as I already mentioned.

Steps to reproduce

  • Open included project
  • Open BaseScene.tscn, there is a Panel at the bottom exactly as wide as the window
  • Open InstancedScene.tscn, play scene, Panel should be missing
  • Close game
  • Click on the BaseScene tab, Panel gets moved and resized
  • If the InstancedScene is run more times the Panel gets bigger and bigger

Minimal reproduction project

Control resize bug.zip

@djrain
Copy link

djrain commented Jul 2, 2022

Also having this issue in 3.4.3 stable, quite problematic. Anybody have a good workaround?

EDIT : worked around by constantly setting rect_size of node being animated to the rect_size of a parent control that is not being animated.

@milanvarady
Copy link
Author

That's what I did too, setting the size and position back in code. Still pretty annoying.

@azagaya
Copy link
Contributor

azagaya commented Jul 7, 2023

I'm having this same issue in Godot 3.5.2

@YuriSizov YuriSizov added this to the 3.x milestone Jul 7, 2023
@djrain
Copy link

djrain commented Dec 16, 2023

Still happening in 4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants