From 563f8bec7da17df97b56d50dfa75dda2413e7f04 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 1 Oct 2012 02:46:53 +0000 Subject: [PATCH] new build error --- pandatool/src/pfmprogs/pfmTrans.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandatool/src/pfmprogs/pfmTrans.cxx b/pandatool/src/pfmprogs/pfmTrans.cxx index 0d6115ad88..d69fa84255 100755 --- a/pandatool/src/pfmprogs/pfmTrans.cxx +++ b/pandatool/src/pfmprogs/pfmTrans.cxx @@ -15,6 +15,7 @@ #include "pfmTrans.h" #include "config_pfm.h" #include "pfmFile.h" +#include "pfmVizzer.h" #include "pystub.h" #include "texture.h" #include "texturePool.h" @@ -160,9 +161,10 @@ run() { //////////////////////////////////////////////////////////////////// bool PfmTrans:: process_pfm(const Filename &input_filename, PfmFile &file) { + PfmVizzer vizzer(file); file.set_zero_special(_got_zero_special); - file.set_vis_inverse(_got_vis_inverse); - file.set_vis_2d(_got_vis_2d); + vizzer.set_vis_inverse(_got_vis_inverse); + vizzer.set_vis_2d(_got_vis_2d); if (_got_autocrop) { _got_crop = file.calc_autocrop(_crop[0], _crop[1], _crop[2], _crop[3]); @@ -219,7 +221,7 @@ process_pfm(const Filename &input_filename, PfmFile &file) { } if (_got_vis_filename) { - NodePath mesh = file.generate_vis_mesh(PfmFile::MF_both); + NodePath mesh = vizzer.generate_vis_mesh(PfmVizzer::MF_both); if (_got_vistex_filename) { PT(Texture) tex = TexturePool::load_texture(_vistex_filename); if (tex == NULL) {