We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As a test case, consider:
#VRML_SIM R2023b utf8 # template language: javascript PROTO ExampleProto [ field SFFloat field1 1 field SFFloat field2 5 ] { Solid { %< function sum(fieldsObj) { return fieldsObj.field1.value + fieldsObj.field2.value; } >% radarCrossSection %<= sum(fields) >% } }
When I insert that proto, I get:
ERROR: '.../ExampleProto.proto': error: Template engine error: failed to execute JavaScript template: Cannot read property 'value' of undefined.
I suspect I'm running up against this:
webots/src/webots/vrml/WbProtoModel.cpp
Lines 277 to 295 in 69681a9
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As a test case, consider:
When I insert that proto, I get:
I suspect I'm running up against this:
webots/src/webots/vrml/WbProtoModel.cpp
Lines 277 to 295 in 69681a9
The text was updated successfully, but these errors were encountered: