eggprogs: Fix compiler warnings

This commit is contained in:
rdb 2024-03-12 15:48:27 +01:00
parent af27a9523c
commit b50ad2efe9
2 changed files with 6 additions and 7 deletions

View File

@ -40,12 +40,11 @@ TypeHandle DaeCharacter::_type_handle;
DaeCharacter::
DaeCharacter(EggGroup *node_group, const FCDControllerInstance *instance) :
_node_group(node_group),
_name(node_group->get_name()),
_skin_mesh(nullptr),
_instance(instance),
_skin_controller(nullptr),
_skin_mesh(nullptr) {
_bind_shape_mat = LMatrix4d::ident_mat();
_bind_shape_mat(LMatrix4d::ident_mat()),
_name(node_group->get_name()),
_skin_controller(nullptr) {
// If it's a skin controller, add the controller joints.
const FCDController *controller = (const FCDController *)instance->GetEntity();

View File

@ -37,11 +37,11 @@ run() {
if (!_strip_prefix.empty()) {
nout << "Stripping prefix from nodes.\n";
int num_renamed = 0;
int num_egg_files = 0;
//int num_egg_files = 0;
Eggs::iterator ei;
for (ei = _eggs.begin(); ei != _eggs.end(); ++ei) {
num_renamed += (*ei)->rename_nodes(_strip_prefix, true);
++num_egg_files;
//++num_egg_files;
}
nout << " (" << num_renamed << " renamed.)\n";
}