-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add warningsAreFatal parameter #59
Conversation
This flag can toggle the warnings into fatal errors and viceversa
443dc34
to
5584f63
Compare
I suggest adding a |
@@ -143,7 +150,10 @@ void Creo2Urdf::OnCommand() { | |||
populateExportedFrameInfoMap(component_handle); | |||
|
|||
idyn_model.addLink(urdf_link_name, link); | |||
addMeshAndExport(component_handle, link_frame_name); | |||
if (!addMeshAndExport(component_handle, link_frame_name) && warningsAreFatal) { | |||
printToMessageWindow("Failed to export mesh for " + link_name, c2uLogLevel::WARN); |
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.
Shouldn't we also print even if warningsAreFatal
is false?
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.
You are right, I will make it print anyway
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.
Minor comments.
5584f63
to
12986c6
Compare
This flag can toggle the warnings into fatal errors and viceversa