diff options
Diffstat (limited to 'src/export_png.cc')
-rw-r--r-- | src/export_png.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/export_png.cc b/src/export_png.cc index 33fb85b..5c11b9f 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -59,7 +59,7 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output) { #ifdef ENABLE_OPENCSG CsgInfo csgInfo = CsgInfo(); - if ( !csgInfo.prep_chains( tree ) ) { + if ( !csgInfo.compile_chains( tree ) ) { fprintf(stderr,"Couldn't initialize OpenCSG chains\n"); return; } @@ -75,7 +75,6 @@ void export_png_with_opencsg(Tree &tree, Camera &cam, std::ostream &output) if (cam.type == Camera::NONE) { cam.type = Camera::VECTOR; - cam.center << 0,0,0; double radius = 1.0; if (csgInfo.root_chain) { BoundingBox bbox = csgInfo.root_chain->getBoundingBox(); |