From: Mikko Rasa Date: Mon, 3 Aug 2009 12:25:44 +0000 (+0000) Subject: Properly handle the case where an object doesn't have a main texture but its techniqu... X-Git-Tag: 1.1~2 X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=5658c6ea1a5caf1b408366cebf785f79d650ff53 Properly handle the case where an object doesn't have a main texture but its technique does --- diff --git a/source/object.cpp b/source/object.cpp index b53a3f08..2026e3d5 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -132,6 +132,8 @@ Object::Loader::Loader(Object &o, Collection &c): void Object::Loader::finish() { + if(obj.technique && !obj.main_texture) + obj.main_texture=obj.technique->get_main_texture(); for(unsigned i=0; i