Skip to content

Commit

Permalink
https://github.com/KhronosGroup/glTF/issues/238
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrobinet committed Jun 27, 2014
1 parent 25db924 commit a1f63a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion converter/COLLADA2GLTF/GLTF/GLTFAsset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,10 +1068,12 @@ namespace GLTF
jointsWithOriginalSids->appendValue(static_pointer_cast <JSONValue> (node->getValue(kJoint)));
}
}
std::string inverseBindMatricesUID = "IBM_"+skin->getId();
skin->setJointsIds(jointsWithOriginalSids);
shared_ptr <JSONObject> inverseBindMatrices = static_pointer_cast<JSONObject>(skin->extras()->getValue(kInverseBindMatrices));
inverseBindMatrices->setString(kBufferView, genericBufferView->getID());
skin->setValue(kInverseBindMatrices, inverseBindMatrices);
skin->setString(kInverseBindMatrices, inverseBindMatricesUID);
accessors->setValue(inverseBindMatricesUID, inverseBindMatrices);
}

// ----
Expand Down

0 comments on commit a1f63a7

Please sign in to comment.