Update MDLMaterialLoader.cpp
parent
a6b1a35748
commit
5bce9e8ce5
|
@ -448,6 +448,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||||
unsigned int iType,
|
unsigned int iType,
|
||||||
unsigned int iWidth,
|
unsigned int iWidth,
|
||||||
unsigned int iHeight) {
|
unsigned int iHeight) {
|
||||||
|
std::unique_ptr<aiTexture> pcNew;
|
||||||
if (szCurrent == nullptr) {
|
if (szCurrent == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -470,7 +471,6 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<aiTexture> pcNew;
|
|
||||||
pcNew.reset(new aiTexture);
|
pcNew.reset(new aiTexture);
|
||||||
pcNew->mHeight = 0;
|
pcNew->mHeight = 0;
|
||||||
pcNew->mWidth = iWidth;
|
pcNew->mWidth = iWidth;
|
||||||
|
|
Loading…
Reference in New Issue