From 8616b84887ddf387b9d3ff95589b6a441e9925c9 Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Wed, 19 May 2010 21:52:15 +0000 Subject: [PATCH] Properly clear some more variables when using the batch converter, specifically input and output units --- pandatool/src/mayaprogs/mayaToEgg_server.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandatool/src/mayaprogs/mayaToEgg_server.cxx b/pandatool/src/mayaprogs/mayaToEgg_server.cxx index 398048d937..fc1c6908c9 100755 --- a/pandatool/src/mayaprogs/mayaToEgg_server.cxx +++ b/pandatool/src/mayaprogs/mayaToEgg_server.cxx @@ -319,6 +319,8 @@ run() { _transform_type = MayaToEggConverter::TT_model; _subsets.clear(); _subroots.clear(); + _input_units = DU_invalid; + _output_units = DU_invalid; _excludes.clear(); _ignore_sliders.clear(); _force_joints.clear(); @@ -326,6 +328,14 @@ run() { _transform = LMatrix4d::ident_mat(); _normals_mode = NM_preserve; _normals_threshold = 0.0; + _got_start_frame = false; + _got_end_frame = false; + _got_frame_inc = false; + _got_neutral_frame = false; + _got_input_frame_rate = false; + _got_output_frame_rate = false; + _got_output_filename = false; + _merge_externals = false; _got_tbnall = false; _got_tbnauto = false; _got_transform = false;