-
Notifications
You must be signed in to change notification settings - Fork 44
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
Set View Camera controller from plugin configuration #506
Set View Camera controller from plugin configuration #506
Conversation
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gui6 #506 +/- ##
============================================
+ Coverage 66.85% 68.10% +1.25%
============================================
Files 39 39
Lines 5310 5327 +17
============================================
+ Hits 3550 3628 +78
+ Misses 1760 1699 -61
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
looks good to me, just one minor suggestion
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
if (!_result) | ||
ignerr << "Error setting view controller. Check if view angle GUI " | ||
"plugin is already loaded" << std::endl; |
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.
nit (curly braces and remove already
):
if (!_result) | |
ignerr << "Error setting view controller. Check if view angle GUI " | |
"plugin is already loaded" << std::endl; | |
if (!_result) | |
{ | |
ignerr << "Error setting view controller. Check if the View Angle GUI " | |
<< "plugin is loaded." << std::endl; | |
} |
"plugin is already loaded" << std::endl; | ||
else | ||
{ | ||
this->cameraViewController = ""; |
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.
Don't we always want to set this back to an empty string regardless if _result
is true or false? If _result == false
, then the request will be sent at each Render()
call
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
559c9e1
to
4ef3676
Compare
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 for the updates. I added a test to help with code coverage 4ef3676
Feel free to merge if you're ok with the changes
Signed-off-by: Alejandro Hernández Cordero [email protected]
🎉 New feature
Summary
Set View Camera controller from plugin configuration
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.