forked from mirror/openmw-tes3mp
Fix tabulation/formatting
This commit is contained in:
parent
6d33ad248d
commit
e6c55c144c
1 changed files with 18 additions and 18 deletions
|
@ -55,26 +55,26 @@ struct Matrix
|
||||||
|
|
||||||
struct Transformation
|
struct Transformation
|
||||||
{
|
{
|
||||||
Vector pos;
|
Vector pos;
|
||||||
Matrix rotation;
|
Matrix rotation;
|
||||||
float scale;
|
float scale;
|
||||||
Vector velocity;
|
Vector velocity;
|
||||||
|
|
||||||
static const Transformation* getIdentity()
|
static const Transformation* getIdentity()
|
||||||
{
|
{
|
||||||
static Transformation identity;
|
static Transformation identity;
|
||||||
static bool iset = false;
|
static bool iset = false;
|
||||||
if (!iset)
|
if (!iset)
|
||||||
{
|
{
|
||||||
identity.scale = 1.0f;
|
identity.scale = 1.0f;
|
||||||
identity.rotation.v[0].array[0] = 1.0f;
|
identity.rotation.v[0].array[0] = 1.0f;
|
||||||
identity.rotation.v[1].array[1] = 1.0f;
|
identity.rotation.v[1].array[1] = 1.0f;
|
||||||
identity.rotation.v[2].array[2] = 1.0f;
|
identity.rotation.v[2].array[2] = 1.0f;
|
||||||
iset = true;
|
iset = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return &identity;
|
return &identity;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue