@@ -5652,11 +5652,10 @@ make_from_bam(const FactoryParams ¶ms) {
me = TexturePool::load_cube_map(filename, false, options);
break;
}
-
- me->fillin_from(dummy);
if (me != (Texture *)NULL) {
+ me->fillin_from(dummy);
me->set_name(name);