# | Line 333 | Line 333 | int DataStorage::getBytesPerStuntDouble(int layout) { | |
---|---|---|
333 | int bytes = 0; | |
334 | if (layout & dslPosition) { | |
335 | bytes += sizeof(Vector3d); | |
336 | < | } else if (layout & dslVelocity) { |
336 | > | } |
337 | > | if (layout & dslVelocity) { |
338 | bytes += sizeof(Vector3d); | |
339 | < | } else if (layout & dslAmat) { |
339 | > | } |
340 | > | if (layout & dslAmat) { |
341 | bytes += sizeof(Mat3x3d); | |
342 | < | } else if (layout & dslAngularMomentum) { |
342 | > | } |
343 | > | if (layout & dslAngularMomentum) { |
344 | bytes += sizeof(Vector3d); | |
345 | < | } else if (layout & dslElectroFrame) { |
346 | < | bytes += sizeof(Mat3x3d); |
347 | < | } else if (layout & dslZAngle) { |
345 | > | } |
346 | > | if (layout & dslElectroFrame) { |
347 | > | bytes += sizeof(Mat3x3d); |
348 | > | } |
349 | > | if (layout & dslZAngle) { |
350 | bytes += sizeof(Vector3d); | |
351 | < | } else if (layout & dslForce) { |
351 | > | } |
352 | > | if (layout & dslForce) { |
353 | bytes += sizeof(Vector3d); | |
354 | < | } else if (layout & dslTorque) { |
354 | > | } |
355 | > | if (layout & dslTorque) { |
356 | bytes += sizeof(Vector3d); | |
357 | } | |
358 | return bytes; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |