=Texture Plugins=
[blender.git] / source / blender / blenloader / intern / readfile.c
index 807af79f76bcdb611c84edea36ced4c5238fdf15..1a00ff1490c7cd8c4b181c8b7cc7d7b2229ad240 100644 (file)
@@ -2255,6 +2255,11 @@ static void direct_link_texture(FileData *fd, Tex *tex)
        if(tex->plugin) {
                tex->plugin->handle= 0;
                open_plugin_tex(tex->plugin);
+               /* initialize data for this instance, if an initialization
+                * function exists.
+                */
+               if (tex->plugin->instance_init)
+                       tex->plugin->instance_init((void *) tex->plugin->data);
        }
        tex->coba= newdataadr(fd, tex->coba);
        tex->env= newdataadr(fd, tex->env);