fixed uninitialized variable in load_mtllib
/** recursively destroy all the nodes of the tree */
void ts_free_tree(struct ts_node *tree);
+int ts_set_node_name(struct ts_node *node, const char *name);
+
void ts_add_attr(struct ts_node *node, struct ts_attr *attr);
struct ts_attr *ts_get_attr(struct ts_node *node, const char *name);
FILE *fp;
char buf[256], *line;
struct objmtl om;
- struct material *mtl;
+ struct material *mtl = 0;
if(path_prefix && *path_prefix) {
sprintf(buf, "%s/%s", path_prefix, mtlfname);