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

C# -- Setting any value to Node3D.GlobalRotation also resets Scale to (1,1,1) #83668

Closed
architeer opened this issue Oct 20, 2023 · 1 comment
Closed
Labels

Comments

@architeer
Copy link

Godot version

v4.2.beta1.mono.official [b137180]

System information

Godot v4.2.beta1.mono - Windows 10.0.19045 - GLES3 (Compatibility) - Quadro 2000M () - Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz (8 Threads)

Issue description

In C#, for Node3D, setting any new value to a node3D.GlobalRotation or node3D.GlobalRotationDegrees will also reset the node's scale to (1,1,1)

Both the node3D.Rotation and node3D.RotationDegrees works fine

Steps to reproduce

  1. Add a new Node3D to scene
  2. Give the new Node3D a scale of (3,3,3)
  3. Create C# script
  4. In the C# script, in _Ready(), for the newly added node, assign any value to node3D.GlobalRotation
  5. Run the project
  6. After assigning the new value to the 'GlobalRotation', it automatically resets the node's scale to (1,1,1)
  7. Assigning any new value to node3D.GlobalRotationDegrees also resets the scale to (1,1,1)

Minimal reproduction project

N/A

@AThousandShips
Copy link
Member

AThousandShips commented Oct 20, 2023

Thank you for reporting, closing as a duplicate of:

@AThousandShips AThousandShips marked this as a duplicate of #74162 Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants