-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
feature: default orbit in given time #2016
base: master
Are you sure you want to change the base?
Conversation
You are modifying libf3d public API! |
library/src/animationManager.cxx
Outdated
@@ -237,6 +237,24 @@ void animationManager::Tick() | |||
{ | |||
this->Window.render(); | |||
} | |||
|
|||
// Check if camera orbit option is enabled | |||
if (this->Options.scene.camera.orbitTime > 0) |
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.
I dont think camera orbit should be handled in animation, but it should be handled in the eventLoop directly.
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.
I even think the camera orbit should be handled in the application event loop, not in the lib
namespace options { | ||
namespace scene { | ||
struct camera { | ||
double orbit_time = 0.0; |
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.
that not how you add an option, look at options.json
:)
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.
Thanks
added
--camera-orbit
option and test the option