mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 13:50:25 +01:00
Move memory referencing around
This commit is contained in:
parent
42b9658c8d
commit
5f607119fc
@ -181,13 +181,17 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkTEXS() {
|
|||||||
|
|
||||||
json textureArray = texs["textures"];
|
json textureArray = texs["textures"];
|
||||||
|
|
||||||
|
for (auto reference = textureArray.begin(); reference != textureArray.end(); ++reference) {
|
||||||
|
|
||||||
// t stands for texture. :D Come back next week for more knowledge.
|
// t stands for texture. :D Come back next week for more knowledge.
|
||||||
for (auto t = textureArray.begin(); t != textureArray.end(); ++t) {
|
json t = *reference;
|
||||||
|
|
||||||
// This is a very strange way to do this but I won't complain.
|
// This is a very strange way to do this but I won't complain.
|
||||||
Textures.push_back(SB3dTexture());
|
Textures.push_back(SB3dTexture());
|
||||||
SB3dTexture& B3DTexture = Textures.getLast();
|
SB3dTexture& B3DTexture = Textures.getLast();
|
||||||
|
|
||||||
|
// This should probably be it's own function.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user