From c6b9b536569d866765abcd6c7b25e25e7c6db5da Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Thu, 11 Feb 2010 00:18:33 +0000 Subject: [PATCH] make it so the client/server maya2egg adds the command-line comment to the top of each egg file --- pandatool/src/mayaprogs/mayaToEgg_server.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandatool/src/mayaprogs/mayaToEgg_server.cxx b/pandatool/src/mayaprogs/mayaToEgg_server.cxx index b70fd0e33d..3afc77242a 100755 --- a/pandatool/src/mayaprogs/mayaToEgg_server.cxx +++ b/pandatool/src/mayaprogs/mayaToEgg_server.cxx @@ -286,6 +286,10 @@ run() { if (_input_units == DU_invalid) { _input_units = converter.get_input_units(); } + + // Add the command line comment at the top of the egg file + append_command_comment(_data); + write_egg_file(); // Clean and out @@ -297,6 +301,7 @@ run() { _force_joints.clear(); _got_transform = false; _transform = LMatrix4d::ident_mat(); + _program_args.clear(); _data->clear(); _animation_convert = AC_none; _character_name = "";