Utility/Mesh: Replace scale by transform matrix
Former-commit-id: 28cf57d1fe300b78e60c5f9301678a25533df29f [formerly d7b8edd11e99de396d40cf09c58cb94c5e03015c] Former-commit-id: e5915c2a5795900077bdb5229638962fade7f352
This commit is contained in:
@@ -39,9 +39,9 @@ namespace Nz
|
||||
return false;
|
||||
}
|
||||
|
||||
if (scale == Vector3f::Zero())
|
||||
if (matrix == Matrix4f::Zero())
|
||||
{
|
||||
NazaraError("Invalid scale");
|
||||
NazaraError("Invalid matrix");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace Nz
|
||||
VertexBufferRef vertexBuffer;
|
||||
|
||||
Matrix4f matrix(primitive.matrix);
|
||||
matrix.ApplyScale(params.scale);
|
||||
matrix *= params.matrix;
|
||||
|
||||
VertexDeclaration* declaration = VertexDeclaration::Get(VertexLayout_XYZ_Normal_UV_Tangent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user