fixes for warnings in FBXReader/FBXWriter

This commit is contained in:
Stephen Birarda 2017-09-13 08:37:36 -07:00
parent 8a9e4029ae
commit dc86c6fe73
4 changed files with 11 additions and 11 deletions

View file

@ -6,5 +6,5 @@ include_hifi_library_headers(gpu)
add_dependency_external_projects(draco)
find_package(Draco REQUIRED)
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${DRACO_INCLUDE_DIRS})
include_directories(SYSTEM ${DRACO_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} ${DRACO_LIBRARY} ${DRACO_ENCODER_LIBRARY})

View file

@ -6,5 +6,5 @@ include_hifi_library_headers(gpu image)
add_dependency_external_projects(draco)
find_package(Draco REQUIRED)
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${DRACO_INCLUDE_DIRS})
include_directories(SYSTEM ${DRACO_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} ${DRACO_LIBRARY} ${DRACO_ENCODER_LIBRARY})

View file

@ -169,7 +169,7 @@ QString getID(const QVariantList& properties, int index = 0) {
}
/// The names of the joints in the Maya HumanIK rig
static const std::array<char*, 16> HUMANIK_JOINTS = {
static const std::array<const char*, 16> HUMANIK_JOINTS = {{
"RightHand",
"RightForeArm",
"RightArm",
@ -186,7 +186,7 @@ static const std::array<char*, 16> HUMANIK_JOINTS = {
"LeftLeg",
"RightFoot",
"LeftFoot"
};
}};
class FBXModel {
public:
@ -512,7 +512,7 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
QVector<QString> humanIKJointNames;
for (int i = 0; i < HUMANIK_JOINTS.size(); i++) {
for (int i = 0; i < (int) HUMANIK_JOINTS.size(); i++) {
QByteArray jointName = HUMANIK_JOINTS[i];
humanIKJointNames.append(processID(getString(joints.value(jointName, jointName))));
}

View file

@ -143,7 +143,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
break;
}
// TODO Delete? Do we ever use QList instead of QVector?
// TODO Delete? Do we ever use QList instead of QVector?
case QVariant::Type::List:
{
auto list = prop.toList();
@ -156,7 +156,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << (int32_t)0;
out << (int32_t)0;
for (auto& innerProp : list) {
out << prop.toFloat();
out << innerProp.toFloat();
}
break;
@ -166,7 +166,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << (int32_t)0;
out << (int32_t)0;
for (auto& innerProp : list) {
out << prop.toDouble();
out << innerProp.toDouble();
}
break;
@ -176,7 +176,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << (int32_t)0;
out << (int32_t)0;
for (auto& innerProp : list) {
out << prop.toLongLong();
out << innerProp.toLongLong();
}
break;
@ -186,7 +186,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << (int32_t)0;
out << (int32_t)0;
for (auto& innerProp : list) {
out << prop.toInt();
out << innerProp.toInt();
}
break;
@ -196,7 +196,7 @@ void FBXWriter::encodeFBXProperty(QDataStream& out, const QVariant& prop) {
out << (int32_t)0;
out << (int32_t)0;
for (auto& innerProp : list) {
out << prop.toBool();
out << innerProp.toBool();
}
break;
}