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

"Save branch as scene" with "Reset Scale" sets scale to 0 #101907

Closed
ovendelon opened this issue Jan 22, 2025 · 3 comments · Fixed by #101943
Closed

"Save branch as scene" with "Reset Scale" sets scale to 0 #101907

ovendelon opened this issue Jan 22, 2025 · 3 comments · Fixed by #101943

Comments

@ovendelon
Copy link

Tested versions

  • Tested in: Godot_v4.4-beta1_mono_win64

System information

Godot v4.4.beta1.mono - Windows 10 (build 19045) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 32.0.15.6636) - 13th Gen Intel(R) Core(TM) i9-13900KF (32 threads)

Issue description

When saving a branch as scene and reset scale option is enabled - the scaling is set to 0 instead of 1 which is bad.

Steps to reproduce

right click -> save branch as scene

Minimal reproduction project (MRP)

N/A

@AThousandShips
Copy link
Member

AThousandShips commented Jan 22, 2025

This is a simple typo in the code from:

Error is in this line:

copy_3d->set_scale(Vector3(0, 0, 0));

Should be:

copy_3d->set_scale(Vector3(1, 1, 1));

@ovendelon
Copy link
Author

I think it should be set to one instead of zero.

copy_3d->set_scale(Vector3(1, 1, 1));

@AThousandShips
Copy link
Member

Yes, my bad edited

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

Successfully merging a pull request may close this issue.

2 participants