From 64c5d141af53799cf17e015c906c71f07e90f2f3 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sun, 15 Oct 2023 03:02:10 +0500 Subject: [PATCH] utils: mdldec: qc.c: put controller name instead of index for mouth controller. --- utils/mdldec/qc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils/mdldec/qc.c b/utils/mdldec/qc.c index c64f7222..604e7fb2 100644 --- a/utils/mdldec/qc.c +++ b/utils/mdldec/qc.c @@ -390,8 +390,15 @@ static void WriteControllerInfo( FILE *fp ) GetMotionTypeString( bonecontroller->type & ~STUDIO_RLOOP, motion_types, sizeof( motion_types ), false ); - fprintf( fp, "$controller %i \"%s\" %s %f %f\n", - bonecontroller->index, bone->name, motion_types, + fputs( "$controller ", fp ); + + if( bonecontroller->index == 4 ) + fputs( "Mouth", fp ); + else + fprintf( fp, "%i", bonecontroller->index ); + + fprintf( fp, " \"%s\" %s %f %f\n", + bone->name, motion_types, bonecontroller->start, bonecontroller->end ); }