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

Camera Pan Restricted Coordinates after Background File Change #423

Open
SetsuneW opened this issue May 11, 2020 · 0 comments
Open

Camera Pan Restricted Coordinates after Background File Change #423

SetsuneW opened this issue May 11, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@SetsuneW
Copy link

Describe the bug
Camera cannot pan past smaller X,Y limits when scene background file is directly replaced with a larger one.

To Reproduce

  1. Create a scene with a smaller map.
  2. Copy-and-Paste a same-named file overwriting the existing background image file with a larger one.
  3. The preview will expand automatically in the Editor, and most things seem to work normally.
  4. However, trying to pan the camera using code commands to move it beyond the original bounds won't work. (I only tested X). It seems to stay restricted to the original X,Y dimensions of the initial image.

Saving, closing, and reloading doesn't seem to fix the problem. Swapping to a new background and then back perhaps fixed it, but that could be destructive to existing map elements.

My guess is the editor doesn't update the camera bounds stored somewhere when it realizes the dimensions of the background image have changed.

Expected behavior
Camera can pan to coordinates beyond the original background image's size if the updated background is larger.

Screenshots
Here is an attached example of the issue in action. I created the scene using the "Small" file, then copied over the "Big" one.
CameraPan2.zip

Platform (please complete the following information):

  • OS: Windows 10 Home Version 1909 (OS Build 18363.815)
  • App version 1.2.1, Develop Branch, Commit 226c4d

Additional context
This may be related to #386, but is not fixed by saving and reloading.

@SetsuneW SetsuneW added the bug Something isn't working label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant