-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Dragged resource file over scene should appear at it's drop position, not be centered at cursor #26549
Comments
Snapping to grid can be implemented, but the second part of your issue is a bad idea (and not possible). If your scene's origin is not in the middle of a given sprite, we shouldn't hack it. You probably did this on purpose, you typically have several sprites, etc. If you're dragging a scene, you place its origin, that's normal. Fix the scene's origin if you don't want that. |
But the problem with changed origin is this: https://gfycat.com/ChillyFreshIndigowingedparrot |
Oh ok, that's buggy then indeed. |
Fixes godotengine#26549. Supersedes godotengine#36309. (cherry picked from commit a403131)
Fixes godotengine#26549. Supersedes godotengine#36309. (cherry picked from commit a403131)
Godot version:
3.1 beta10
Issue description:
Dragging a scene/texture into scene view always shows it at cursor's position. When you drop said resource, it will then align properly to grid or whatever.
E.g. this:



After dropping you get this (snapping to grid enabled):
which is not exactly where you dropped. It's even worse with placing scenes, because if you happen to have a scene with non-centered root, it will be shifted from the cursor by the root offset:
IMO whatever appears when you drag a resource over scene, should appear at it's drop position, not some weird cursor offset. Which means that e.g. texture file dragged into scene should snap to grid from start, not after placing it and moving again.
The text was updated successfully, but these errors were encountered: