Merge pull request #1462 from marauder2k9-torque/development

BUGFIX: Reported by Steve at 16052025
This commit is contained in:
Brian Roberts 2025-05-16 11:37:02 -05:00 committed by GitHub
commit 5d4f8b37d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -573,7 +573,19 @@ ConsoleSetType( TypeTransformF )
char buffer[256] = { 0 };
dStrncpy(buffer, *argv, sizeof(buffer));
if (PropertyInfo::ParseProperty<F32, 7>(buffer, parsed))
if (!PropertyInfo::ParseProperty<F32, 7>(buffer, parsed))
{
TransformF* aa = (TransformF*)dptr;
aa->mPosition.x = parsed[0];
aa->mPosition.y = parsed[1];
aa->mPosition.z = parsed[2];
aa->mOrientation.axis.x = 1.000f;
aa->mOrientation.axis.y = 0.000f;
aa->mOrientation.axis.z = 0.000f;
aa->mOrientation.angle = 0.000f;
return;
}
else
{
TransformF* aa = (TransformF*)dptr;
aa->mPosition.x = parsed[0];