diff --git a/interface/src/ModelPackager.cpp b/interface/src/ModelPackager.cpp index 21d3477d7e..a7fc0b9e20 100644 --- a/interface/src/ModelPackager.cpp +++ b/interface/src/ModelPackager.cpp @@ -235,7 +235,7 @@ bool ModelPackager::zipModel() { return true; } -void ModelPackager::populateBasicMapping(QVariantHash& mapping, QString filename, const HFMModel& hfmModel) { +void ModelPackager::populateBasicMapping(QVariantHash& mapping, QString filename, const hfm::Model& hfmModel) { bool isBodyType = _modelType == FSTReader::BODY_ONLY_MODEL || _modelType == FSTReader::HEAD_AND_BODY_MODEL; diff --git a/interface/src/ModelPackager.h b/interface/src/ModelPackager.h index bc42bc1fda..849f6ac3da 100644 --- a/interface/src/ModelPackager.h +++ b/interface/src/ModelPackager.h @@ -17,10 +17,12 @@ #include #include -#include - #include "ui/ModelsBrowser.h" +namespace hfm { + class Model; +}; + class ModelPackager : public QObject { public: static bool package(); @@ -32,7 +34,7 @@ private: bool editProperties(); bool zipModel(); - void populateBasicMapping(QVariantHash& mapping, QString filename, const HFMModel& hfmModel); + void populateBasicMapping(QVariantHash& mapping, QString filename, const hfm::Model& hfmModel); void listTextures(); bool copyTextures(const QString& oldDir, const QDir& newDir); @@ -44,7 +46,7 @@ private: QString _scriptDir; QVariantHash _mapping; - std::unique_ptr _hfmModel; + std::unique_ptr _hfmModel; QStringList _textures; QStringList _scripts; }; diff --git a/libraries/hfm/src/hfm/HFM.h b/libraries/hfm/src/hfm/HFM.h index daa94f7e87..7d4479e681 100644 --- a/libraries/hfm/src/hfm/HFM.h +++ b/libraries/hfm/src/hfm/HFM.h @@ -25,35 +25,9 @@ #include #include -// High Fidelity Model namespace -namespace hfm { - class Blendshape; - struct JointShapeInfo; - class Joint; - class Cluster; - class Texture; - class MeshPart; - class Material; - class Mesh; - class AnimationFrame; - class Light; - class Model; -}; - -typedef hfm::Blendshape HFMBlendshape; -typedef hfm::JointShapeInfo HFMJointShapeInfo; -typedef hfm::Joint HFMJoint; -typedef hfm::Cluster HFMCluster; -typedef hfm::Texture HFMTexture; -typedef hfm::MeshPart HFMMeshPart; -typedef hfm::Material HFMMaterial; -typedef hfm::Mesh HFMMesh; -typedef hfm::AnimationFrame HFMAnimationFrame; -typedef hfm::Light HFMLight; -typedef hfm::Model HFMModel; - const int MAX_NUM_PIXELS_FOR_FBX_TEXTURE = 2048 * 2048; +// High Fidelity Model namespace namespace hfm { /// A single blendshape. @@ -350,6 +324,18 @@ public: QHash texcoordSetMap; }; +typedef hfm::Blendshape HFMBlendshape; +typedef hfm::JointShapeInfo HFMJointShapeInfo; +typedef hfm::Joint HFMJoint; +typedef hfm::Cluster HFMCluster; +typedef hfm::Texture HFMTexture; +typedef hfm::MeshPart HFMMeshPart; +typedef hfm::Material HFMMaterial; +typedef hfm::Mesh HFMMesh; +typedef hfm::AnimationFrame HFMAnimationFrame; +typedef hfm::Light HFMLight; +typedef hfm::Model HFMModel; + Q_DECLARE_METATYPE(HFMAnimationFrame) Q_DECLARE_METATYPE(QVector) Q_DECLARE_METATYPE(HFMModel)