diff options
| author | Bryan Galdrikian <[email protected]> | 2019-05-03 00:25:46 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2019-05-03 00:25:46 -0700 |
| commit | 74b64a27f8e07b1b0b47b809b1a060518fa11a97 (patch) | |
| tree | 34cca01711be56892c149706f02ba7358d87ec54 /samples/SampleBase/blast/BlastModel.cpp | |
| parent | Fixing chunk reorder bug in BlastTool, when importing a prefractured mesh (diff) | |
| download | archived-blast-74b64a27f8e07b1b0b47b809b1a060518fa11a97.tar.xz archived-blast-74b64a27f8e07b1b0b47b809b1a060518fa11a97.zip | |
Blast SDK 1.1.5 prerelease #1v1.1.5_pre1
Diffstat (limited to 'samples/SampleBase/blast/BlastModel.cpp')
| -rwxr-xr-x | samples/SampleBase/blast/BlastModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/SampleBase/blast/BlastModel.cpp b/samples/SampleBase/blast/BlastModel.cpp index e23749c..ae9e0ca 100755 --- a/samples/SampleBase/blast/BlastModel.cpp +++ b/samples/SampleBase/blast/BlastModel.cpp @@ -74,9 +74,9 @@ BlastModelPtr BlastModel::loadFromFbxFile(const char* path) {
indRemap[j] = (int32_t)cmesh.vertices.size();
cmesh.vertices.push_back(SimpleMesh::Vertex());
- cmesh.vertices.back().normal = normalsArray[j];
- cmesh.vertices.back().position = positionArray[j];
- cmesh.vertices.back().uv = uvArray[j];
+ cmesh.vertices.back().normal = reinterpret_cast<physx::PxVec3&>(normalsArray[j]);
+ cmesh.vertices.back().position = reinterpret_cast<physx::PxVec3&>(positionArray[j]);
+ cmesh.vertices.back().uv = reinterpret_cast<physx::PxVec2&>(uvArray[j]);
}
}
const uint32_t indicesCount = rdr->getIndicesCount();
|