From e5c2a66bd5be9739c21c63f39f0bd11b0b40407a Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 10 Aug 2017 14:47:28 +0200 Subject: [PATCH] fixed some syntax errors --- src/base.cpp | 6 +++--- src/geometry.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/base.cpp b/src/base.cpp index 98a1678..b4d71ce 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -477,9 +477,9 @@ Matrix::orthogonalError(void) float32 Matrix::identityError(void) { - V3d r { right.x-1.0f, right.y, right.z }; - V3d u { up.x, up.y-1.0f, up.z }; - V3d a { at.x, at.y, at.z-1.0f }; + V3d r = { right.x-1.0f, right.y, right.z }; + V3d u = { up.x, up.y-1.0f, up.z }; + V3d a = { at.x, at.y, at.z-1.0f }; return dot(r,r) + dot(u,u) + dot(a,a) + dot(pos,pos); } diff --git a/src/geometry.cpp b/src/geometry.cpp index 44dcfc4..b8f1791 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -291,8 +291,8 @@ Geometry::calculateBoundingSphere(void) { for(int32 i = 0; i < this->numMorphTargets; i++){ MorphTarget *m = &this->morphTargets[i]; - V3d min { 1000000.0f, 1000000.0f, 1000000.0f }; - V3d max { -1000000.0f, -1000000.0f, -1000000.0f }; + V3d min = { 1000000.0f, 1000000.0f, 1000000.0f }; + V3d max = { -1000000.0f, -1000000.0f, -1000000.0f }; V3d *v = m->vertices; for(int32 j = 0; j < this->numVertices; j++){ if(v->x > max.x) max.x = v->x;