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

3D objects dropped into the viewport do not respect original positioning and reset it to cursor position. #84424

Closed
viksl opened this issue Nov 3, 2023 · 0 comments · Fixed by #87126

Comments

@viksl
Copy link
Contributor

viksl commented Nov 3, 2023

Godot version

4.2 dev 4

System information

Windows 11 - Vulkan - Nvidia RTX 4070 - intel i5 13600KF

Issue description

Just as in the video, if you drag and drop a 3D scene into the 3D viewport the object's position is reset to the cursor position and the original offset in the saved scene is ignored after drag&drop is released (it is kept in while placing the scene in the viewport though).

  • In 2D the offset is kept as you would expect so 2D and 3D are behaving here differently too.

Video: https://youtu.be/wNZeh-Km6QA

Steps to reproduce

Drag and drop "drop_mesh.tscn" 3D scenes files into the viewport, move it around to see that the offset is kept properly then release the mouse button and observe how the object is reset to the cursor position.

What I'd expect is the same behaviour as in 3D that the object's offset would be kept.

Minimal reproduction project

TestSceneDragAndDrop.zip

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