void ShapesIcons::draw(FSNode *node) const
{
int s = fstype_shape(node->type);
- priv->shape[s]->draw();
+ priv->shape[s]->draw_wire();
}
Mesh m;
gen_plane(&m, 1, 1, usub, vsub);
+ xform.translate(Vec3(0, 0, 0.5));
xform.rotate(Vec3(face_angles[i][1], face_angles[i][0], 0));
dir_xform = xform;
- xform.translate(Vec3(0, 0, 0.5));
m.apply_xform(xform, dir_xform);
mesh->append(m);
optcfg *oc = optcfg_init(options);
optcfg_set_opt_callback(oc, opt_handler, 0);
- if(cfgfile && optcfg_parse_config_file(oc, cfgfile) == -1) {
- optcfg_destroy(oc);
- return false;
+ if(cfgfile) {
+ optcfg_parse_config_file(oc, cfgfile);
}
if(argv && optcfg_parse_args(oc, argc, argv) == -1) {