add modeltree:set_texture

This commit is contained in:
MihailRis
2024-07-03 03:33:39 +03:00
parent 8add39e506
commit 39d850a48c
7 changed files with 68 additions and 14 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void RigConfig::render(
continue;
}
batch.pushMatrix(rig.calculated.matrices[i]);
batch.draw(model);
batch.draw(model, &rig.textures);
batch.popMatrix();
}
}
+1 -1
View File
@@ -64,7 +64,7 @@ namespace rigging {
RigConfig* config;
Pose pose;
Pose calculated;
std::vector<std::string> textures;
std::unordered_map<std::string, std::string> textures;
};
class RigConfig {