diff --git a/maya/scripts/maya2glTF_UI.mel b/maya/scripts/maya2glTF_UI.mel index ec34654..56f148a 100644 --- a/maya/scripts/maya2glTF_UI.mel +++ b/maya/scripts/maya2glTF_UI.mel @@ -1,4 +1,4 @@ -proc string _quoted(string $text) +proc string _quoted(string $text) { string $quote = "\""; return $quote+$text+$quote; @@ -251,7 +251,7 @@ global proc maya2glTF_UI() global string $gMainProgressBar; // This is auto-updated by msbuild - string $maya2glTF_version = "v0.9.4-beta b176ae5"; + string $maya2glTF_version = "v0.9.4-beta a332cd0"; if (`window -exists maya2glTF_exporter_window`) deleteUI maya2glTF_exporter_window; diff --git a/src/MeshRenderables.cpp b/src/MeshRenderables.cpp index 0be8028..74d3f2c 100644 --- a/src/MeshRenderables.cpp +++ b/src/MeshRenderables.cpp @@ -28,6 +28,7 @@ MeshRenderables::MeshRenderables( const auto primitiveCount = mainIndices.primitiveCount(); const auto maxVertexCount = mainIndices.maxVertexCount(); + const auto minVertexCount = mainShape->semantics().descriptions(Semantic::POSITION).at(0).elementCount; const auto perPrimitiveVertexCount = mainIndices.perPrimitiveVertexCount(); auto primitiveVertexIndex = 0; @@ -38,6 +39,7 @@ MeshRenderables::MeshRenderables( const auto semanticsMask = args.meshPrimitiveAttributes; auto totalWeldCount = 0; + auto totalVertexCount = 0; for (auto primitiveIndex = 0; primitiveIndex < primitiveCount; ++primitiveIndex) { @@ -132,7 +134,8 @@ MeshRenderables::MeshRenderables( } } - cout << prefix << mainShape->dagPath().partialPathName().asChar() << ": welded " << totalWeldCount << " out of " << maxVertexCount << " vertices" << endl; + cout << prefix << mainShape->dagPath().partialPathName().asChar() << " will have " << maxVertexCount-totalWeldCount + << " vertices. Welded#" << totalWeldCount << ", min#" << minVertexCount << ", max#" << maxVertexCount << endl; // Now compute the blend-shape vector-deltas by subtracting the blend-shape-base mesh from the blend-shape-targets if (meshShapes.size() > 1) diff --git a/src/version.cpp b/src/version.cpp index 698c6f5..dff664c 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -1,3 +1,3 @@ #include "externals.h" -const char* version = "v0.9.4-beta b176ae5"; +const char* version = "v0.9.4-beta a332cd0";