Merge remote-tracking branch 'origin/master' into 1.12
This commit is contained in:
@@ -454,6 +454,7 @@ void Camera::Serialize(SerializeStream& stream, const void* otherObj)
|
|||||||
SERIALIZE_MEMBER(CustomAspectRatio, _customAspectRatio);
|
SERIALIZE_MEMBER(CustomAspectRatio, _customAspectRatio);
|
||||||
SERIALIZE_MEMBER(Near, _near);
|
SERIALIZE_MEMBER(Near, _near);
|
||||||
SERIALIZE_MEMBER(Far, _far);
|
SERIALIZE_MEMBER(Far, _far);
|
||||||
|
SERIALIZE_MEMBER(OrthoSize, _orthoSize);
|
||||||
SERIALIZE_MEMBER(OrthoScale, _orthoScale);
|
SERIALIZE_MEMBER(OrthoScale, _orthoScale);
|
||||||
SERIALIZE(RenderLayersMask);
|
SERIALIZE(RenderLayersMask);
|
||||||
SERIALIZE(RenderFlags);
|
SERIALIZE(RenderFlags);
|
||||||
@@ -470,6 +471,7 @@ void Camera::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier
|
|||||||
DESERIALIZE_MEMBER(CustomAspectRatio, _customAspectRatio);
|
DESERIALIZE_MEMBER(CustomAspectRatio, _customAspectRatio);
|
||||||
DESERIALIZE_MEMBER(Near, _near);
|
DESERIALIZE_MEMBER(Near, _near);
|
||||||
DESERIALIZE_MEMBER(Far, _far);
|
DESERIALIZE_MEMBER(Far, _far);
|
||||||
|
DESERIALIZE_MEMBER(OrthoSize, _orthoSize);
|
||||||
DESERIALIZE_MEMBER(OrthoScale, _orthoScale);
|
DESERIALIZE_MEMBER(OrthoScale, _orthoScale);
|
||||||
DESERIALIZE(RenderLayersMask);
|
DESERIALIZE(RenderLayersMask);
|
||||||
DESERIALIZE(RenderFlags);
|
DESERIALIZE(RenderFlags);
|
||||||
|
|||||||
@@ -2591,11 +2591,11 @@ void TerrainPatch::ExtractCollisionGeometry(Array<Float3>& vertexBuffer, Array<i
|
|||||||
const int32 indexCount = (rows - 1) * (cols - 1) * 6;
|
const int32 indexCount = (rows - 1) * (cols - 1) * 6;
|
||||||
indexBuffer.Resize(indexCount);
|
indexBuffer.Resize(indexCount);
|
||||||
int32* ib = indexBuffer.Get();
|
int32* ib = indexBuffer.Get();
|
||||||
for (int32 col = 0; col < cols - 1; col++)
|
for (int32 row = 0; row < rows - 1; row++)
|
||||||
{
|
{
|
||||||
for (int32 row = 0; row < rows - 1; row++)
|
for (int32 col = 0; col < cols - 1; col++)
|
||||||
{
|
{
|
||||||
#define GET_INDEX(x, y) *ib++ = (col + (y)) + (row + (x)) * cols
|
#define GET_INDEX(x, y) *ib++ = (col + (y)) * cols + (row + (x))
|
||||||
|
|
||||||
GET_INDEX(0, 0);
|
GET_INDEX(0, 0);
|
||||||
GET_INDEX(1, 1);
|
GET_INDEX(1, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user