Game Development Community

Error in latest HEAD for fxShapeReplicator.cc w/easy fix.

by David Dougher · in Torque Game Engine · 06/08/2004 (12:12 pm) · 2 replies

Checking out the latest HEAD version I saw a change in fxShapeReplicator - around line 156 I see...

addGroup( "Object Transforms" ); // MM: Added Group Header.
addField( "FixShapeAspect", TypeBool, Offset( mFieldData.mFixShapeAspect, fxShapeReplicator ) );
addField( "ShapeScaleMin", TypePoint3F, Offset( mFieldData.mShapeScaleMin, fxShapeReplicator ) );
addField( "ShapeScaleMin", TypePoint3F, Offset( mFieldData.mShapeScaleMin, fxShapeReplicator ) );
addField( "ShapeScaleMax", TypePoint3F, Offset( mFieldData.mShapeScaleMax, fxShapeReplicator ) );
addField( "ShapeRotateMin", TypePoint3F, Offset( mFieldData.mShapeRotateMin, fxShapeReplicator ) );
addField( "ShapeRotateMax", TypePoint3F, Offset( mFieldData.mShapeRotateMax, fxShapeReplicator ) );
addField( "OffsetZ", TypeS32, Offset( mFieldData.mOffsetZ, fxShapeReplicator ) );
endGroup( "Object Transforms" ); // MM: Added Group Footer.


The second and third "addFields" are identical. That is, ShapeScaleMin is listed twice. You should delete one of them.

About the author

Owner - Pariah Games, Adjunct Professor - Bristol Community College, Mentor - Game Design - Met School Newport, Mentor - Game Design - Met School Providence


#1
06/08/2004 (9:48 pm)
Good eye. Removed and commited.
#2
06/09/2004 (9:11 am)
That may have been me recently, sorry guys.

I added 'FixShapeAspect' upon request and obviously go a little manic with the clipboard. ;)

- Melv.