Skip to content
Snippets Groups Projects
Commit cf25d23d authored by Amorilia's avatar Amorilia
Browse files

Compile fix for NiImage.

parent da1d87ff
No related branches found
No related tags found
No related merge requests found
......@@ -149,17 +149,17 @@ std::list<NiObject *> NiImage::GetPtrs() const {
//--BEGIN MISC CUSTOM CODE--//
bool NiImage::IsTextureExternal() const {
return (external != 0);
return (useExternal != 0);
}
void NiImage::SetExternalTexture( string file_name ) {
imageData = NULL;
external = 1;
useExternal = 1;
fileName = file_name;
}
void NiImage::SetInternalTexture( NiRawImageData * raw_image_data ) {
external = 0;
useExternal = 0;
fileName.clear();
imageData = raw_image_data;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment