mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
use meters in wire-protocol for versions greater than VERSION_ENTITIES_USE_METERS_AND_RADIANS
This commit is contained in:
parent
ab8784f1b4
commit
c947f3b62c
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
|
|||
EntityPropertyFlags propertyFlags = encodedPropertyFlags;
|
||||
dataAt += propertyFlags.getEncodedLength();
|
||||
bytesRead += propertyFlags.getEncodedLength();
|
||||
bool useMeters = (args.bitstreamVersion == VERSION_ENTITIES_USE_METERS_AND_RADIANS);
|
||||
bool useMeters = (args.bitstreamVersion >= VERSION_ENTITIES_USE_METERS_AND_RADIANS);
|
||||
if (useMeters) {
|
||||
READ_ENTITY_PROPERTY_SETTER(PROP_POSITION, glm::vec3, updatePosition);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue