mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
Update convexShape.cpp
Convex shape values were changing on save, few quick tests point to this being the fix, need more extensive testing.
This commit is contained in:
parent
a919d53eee
commit
1f99d8f14d
1 changed files with 2 additions and 4 deletions
|
|
@ -221,10 +221,8 @@ bool ConvexShape::protectedSetSurface( void *object, const char *index, const ch
|
|||
&mat[12], &mat[13], &mat[14], &mat[15] );
|
||||
*/
|
||||
|
||||
String t = data;
|
||||
|
||||
dSscanf( data, "%g %g %g %g %g %g %g %i %g %g %g %g %f", &quat.x, &quat.y, &quat.z, &quat.w, &pos.x, &pos.y, &pos.z,
|
||||
&matID, &offset.x, &offset.y, &scale.x, &scale.y, &rot);
|
||||
dSscanf( data, "%g %g %g %g %g %g %g %i %g %g %g %g %g %i %i", &quat.x, &quat.y, &quat.z, &quat.w, &pos.x, &pos.y, &pos.z,
|
||||
&matID, &offset.x, &offset.y, &scale.x, &scale.y, &rot, &horz, &vert);
|
||||
|
||||
MatrixF surface;
|
||||
quat.setMatrix( &surface );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue