mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 04:42:20 +02:00
Fix linker error and build warnings
This commit is contained in:
parent
64ef8b6919
commit
5993aab174
4 changed files with 5 additions and 8 deletions
|
@ -1,6 +1,4 @@
|
|||
set(TARGET_NAME model-baker)
|
||||
setup_hifi_library()
|
||||
|
||||
link_hifi_libraries(shared task gpu graphics)
|
||||
|
||||
include_hifi_library_headers(hfm)
|
||||
link_hifi_libraries(shared task gpu graphics hfm)
|
||||
|
|
|
@ -56,11 +56,11 @@ namespace baker {
|
|||
|
||||
blendshapesPerMeshOut = blendshapesPerMeshIn;
|
||||
|
||||
for (int i = 0; i < blendshapesPerMeshOut.size(); i++) {
|
||||
for (int i = 0; i < (int)blendshapesPerMeshOut.size(); i++) {
|
||||
const auto& normalsPerBlendshape = normalsPerBlendshapePerMesh[i];
|
||||
const auto& tangentsPerBlendshape = tangentsPerBlendshapePerMesh[i];
|
||||
auto& blendshapesOut = blendshapesPerMeshOut[i];
|
||||
for (int j = 0; j < blendshapesOut.size(); j++) {
|
||||
for (int j = 0; j < (int)blendshapesOut.size(); j++) {
|
||||
const auto& normals = normalsPerBlendshape[j];
|
||||
const auto& tangents = tangentsPerBlendshape[j];
|
||||
auto& blendshape = blendshapesOut[j];
|
||||
|
|
|
@ -18,7 +18,7 @@ void CalculateMeshNormalsTask::run(const baker::BakeContextPointer& context, con
|
|||
auto& normalsPerMeshOut = output;
|
||||
|
||||
normalsPerMeshOut.reserve(meshes.size());
|
||||
for (int i = 0; i < meshes.size(); i++) {
|
||||
for (int i = 0; i < (int)meshes.size(); i++) {
|
||||
const auto& mesh = meshes[i];
|
||||
normalsPerMeshOut.emplace_back();
|
||||
auto& normalsOut = normalsPerMeshOut[normalsPerMeshOut.size()-1];
|
||||
|
|
|
@ -20,11 +20,10 @@ void CalculateMeshTangentsTask::run(const baker::BakeContextPointer& context, co
|
|||
auto& tangentsPerMeshOut = output;
|
||||
|
||||
tangentsPerMeshOut.reserve(meshes.size());
|
||||
for (int i = 0; i < meshes.size(); i++) {
|
||||
for (int i = 0; i < (int)meshes.size(); i++) {
|
||||
const auto& mesh = meshes[i];
|
||||
const auto& tangentsIn = mesh.tangents;
|
||||
const auto& normals = normalsPerMesh[i];
|
||||
const auto& vertices = mesh.vertices;
|
||||
tangentsPerMeshOut.emplace_back();
|
||||
auto& tangentsOut = tangentsPerMeshOut[tangentsPerMeshOut.size()-1];
|
||||
|
||||
|
|
Loading…
Reference in a new issue