X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fobject.cpp;h=2026e3d58f3d0b658ed4b3bdba7fe9d211d6ffd1;hp=b53a3f0802767e9e6e80b7a6e1d0434aa4d0c474;hb=5658c6ea1a5caf1b408366cebf785f79d650ff53;hpb=ac7c744dfb6e87481eea7081b84c5ae2f585ee7b 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