-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make spindleController a local variable.
Using 'this.' was incorrect in this location, the correct notation would be 'widget.', but the widget doesn't know or need to know about the particular controller being used here. So, it's local now.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0e92db8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this fix is totally legit, I wanted to add that we need to address the issue of Cesium pulling the rug out from under the user because it destroys camera objects whenever a scene transition occurs. Ideally, cameras would not be destroyed, they would either just no longer work, or ideally, continue to work but in the new scene mode. Right now, in order to be correct all user code which uses an existing camera needs to check if it's destroyed and recreate it if so, which is tedious and not very API friendly.
0e92db8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bagnell has plans to re-architect the camera that should include addressing your issue. There is no reason transitions should stay the way they are; they are like that because I coded them in a hurry for a demo, and they were grandfathered into master along with some of my other code that should - and will - not stay there.