From 3d7f3482c7df0d35119b83dfca984bb6b8ddef0c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 29 Dec 2016 15:59:11 +0100 Subject: [PATCH] [IGfxImage] Fix for native non-streamed images --- src/Components/Modules/AssetInterfaces/IGfxImage.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp index e5f41ea6..a4f2739c 100644 --- a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp +++ b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp @@ -49,8 +49,10 @@ namespace Assets image->depth = image->loadDef->dimensions[2]; image->loaded = true; + + header->image = image; } - else + else if(name[0] != '*') { char nameBuffer[MAX_PATH] = { 0 }; Components::Materials::FormatImagePath(nameBuffer, sizeof(nameBuffer), 0, 0, name.data()); @@ -123,9 +125,9 @@ namespace Assets break; } } - } - header->image = image; + header->image = image; + } } void IGfxImage::save(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder)