File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,12 @@ void ezc3d::Modules::ForcePlatform::extractType(
157
157
158
158
}
159
159
else if (_type == 3 ){
160
- const auto & copPoly = c3d.parameters ().group (" FORCE_PLATFORM" ).parameter (" FPCOPPOLY" ).valuesAsDouble ();
161
- if (copPoly.size () != 0 ){
162
- _type3copPoly = std::vector<double >(copPoly.begin () + idx * 12 , copPoly.begin () + (idx + 1 ) * 12 );
163
- } else {
164
- _type3copPoly = std::vector<double >(12 );
160
+ _type3copPoly = std::vector<double >(12 );
161
+ if (c3d.parameters ().group (" FORCE_PLATFORM" ).isParameter (" FPCOPPOLY" )){
162
+ const auto & copPoly = c3d.parameters ().group (" FORCE_PLATFORM" ).parameter (" FPCOPPOLY" ).valuesAsDouble ();
163
+ if (copPoly.size () != 0 ){
164
+ _type3copPoly = std::vector<double >(copPoly.begin () + idx * 12 , copPoly.begin () + (idx + 1 ) * 12 );
165
+ }
165
166
}
166
167
}
167
168
else if (_type == 5 ){
You can’t perform that action at this time.
0 commit comments