| @@ -339,14 +339,16 @@ public: | |||||
| /* unused for now, but will be if new BuildType are added. */ | /* unused for now, but will be if new BuildType are added. */ | ||||
| TexCoordBuildType tcbt = GetTexCoordBuildType(mt); | TexCoordBuildType tcbt = GetTexCoordBuildType(mt); | ||||
| UNUSED(tcbt); | UNUSED(tcbt); | ||||
| if (mt == MeshType::Triangle) | |||||
| mt = mt; | |||||
| else if (mt == MeshType::Quad) | |||||
| if (mt == MeshType::Quad) | |||||
| { | { | ||||
| // There's nothin' else than QuadDefault | // There's nothin' else than QuadDefault | ||||
| BL = vec2(0.f); | BL = vec2(0.f); | ||||
| TR = vec2(1.f); | TR = vec2(1.f); | ||||
| } | } | ||||
| #if 0 | |||||
| else if (mt == MeshType::Triangle) | |||||
| mt = mt; | |||||
| #endif | |||||
| else if (mt == MeshType::Box) | else if (mt == MeshType::Box) | ||||
| { | { | ||||
| vec2 data[][2] = | vec2 data[][2] = | ||||
| @@ -361,6 +363,7 @@ public: | |||||
| BL = data[face.ToScalar()][0]; // [tcbt] | BL = data[face.ToScalar()][0]; // [tcbt] | ||||
| TR = data[face.ToScalar()][1]; // [tcbt] | TR = data[face.ToScalar()][1]; // [tcbt] | ||||
| } | } | ||||
| #if 0 | |||||
| else if (mt == MeshType::Sphere) | else if (mt == MeshType::Sphere) | ||||
| mt = mt; | mt = mt; | ||||
| else if (mt == MeshType::Capsule) | else if (mt == MeshType::Capsule) | ||||
| @@ -377,6 +380,7 @@ public: | |||||
| mt = mt; | mt = mt; | ||||
| else if (mt == MeshType::Cog) | else if (mt == MeshType::Cog) | ||||
| mt = mt; | mt = mt; | ||||
| #endif | |||||
| } | } | ||||
| vec2 res = vec2(.0f); | vec2 res = vec2(.0f); | ||||
| @@ -425,14 +429,16 @@ public: | |||||
| { | { | ||||
| TexCoordBuildType tcbt = GetTexCoordBuildType2(mt); | TexCoordBuildType tcbt = GetTexCoordBuildType2(mt); | ||||
| UNUSED(tcbt); | UNUSED(tcbt); | ||||
| if (mt == MeshType::Triangle) | |||||
| mt = mt; | |||||
| else if (mt == MeshType::Quad) | |||||
| if (mt == MeshType::Quad) | |||||
| { | { | ||||
| // There's nothin' else than QuadDefault | // There's nothin' else than QuadDefault | ||||
| BL = vec2(0.f); | BL = vec2(0.f); | ||||
| TR = vec2(1.f); | TR = vec2(1.f); | ||||
| } | } | ||||
| #if 0 | |||||
| else if (mt == MeshType::Triangle) | |||||
| mt = mt; | |||||
| #endif | |||||
| else if (mt == MeshType::Box) | else if (mt == MeshType::Box) | ||||
| { | { | ||||
| vec2 data[][2] = | vec2 data[][2] = | ||||
| @@ -447,6 +453,7 @@ public: | |||||
| BL = data[face.ToScalar()][0]; // [tcbt] | BL = data[face.ToScalar()][0]; // [tcbt] | ||||
| TR = data[face.ToScalar()][1]; // [tcbt] | TR = data[face.ToScalar()][1]; // [tcbt] | ||||
| } | } | ||||
| #if 0 | |||||
| else if (mt == MeshType::Sphere) | else if (mt == MeshType::Sphere) | ||||
| mt = mt; | mt = mt; | ||||
| else if (mt == MeshType::Capsule) | else if (mt == MeshType::Capsule) | ||||
| @@ -463,6 +470,7 @@ public: | |||||
| mt = mt; | mt = mt; | ||||
| else if (mt == MeshType::Cog) | else if (mt == MeshType::Cog) | ||||
| mt = mt; | mt = mt; | ||||
| #endif | |||||
| } | } | ||||
| vec2 res = vec2(.0f); | vec2 res = vec2(.0f); | ||||