/** Loads a .blend file into the template array. * Use addModel() to add a clone into the render scene. */ public OpenGLModel LoadBlend(String fn) { OpenGLModel mod; mod = mtl.Get(fn); if (mod != null) { mod.refcnt++; return(mod); } OpenGL_BLEND loader = new OpenGL_BLEND(); mod = loader.Load(fn); if (mod == null) { return(null); } mtl.Set(fn, mod); mod.refcnt = 1; mod = (OpenGLModel)mod.Clone(); return(mod); }