Remove duplicated APIs

This commit is contained in:
daemyung jang
2022-01-19 09:55:59 -08:00
committed by Philip Rideout
parent 3e3fc76688
commit 4b572cf065
9 changed files with 6 additions and 46 deletions
+4 -2
View File
@@ -995,9 +995,11 @@ void SimpleViewer::updateUserInterface() {
std::string label = ss.str();
ImGui::SliderFloat(label.data(), &mMorphWeights[i], 0.0f, 1.0);
}
auto& rcm = mEngine->getRenderableManager();
auto entities = mAsset->getEntities();
for (size_t i = 0, c = mAsset->getEntityCount(); i != c; ++i) {
mAsset->setMorphWeights(mAsset->getEntities()[i],
mMorphWeights.data(), mMorphWeights.size());
auto ci = rcm.getInstance(entities[i]);
rcm.setMorphWeights(ci, mMorphWeights.data(), mMorphWeights.size());
}
}