convex shape error

reading an int in scanf into a bool causes issues, could be the compile options being more strict about inlining and the precompiled headers

Also precompiled header for sceneObject since build insights saw it as the most expensive header.
This commit is contained in:
marauder2k7 2026-06-08 10:09:40 +01:00
parent 6c7a92a5b8
commit 11a5354e67
2 changed files with 2 additions and 1 deletions

View file

@ -782,6 +782,7 @@ target_precompile_headers(${TORQUE_APP_NAME} PRIVATE
<cstdint>
<cmath>
"console/engineObject.h"
"scene/sceneObject.h"
)
if(TORQUE_TESTING)

View file

@ -211,7 +211,7 @@ bool ConvexShape::protectedSetSurface( void *object, const char *index, const ch
Point2F offset;
Point2F scale;
F32 rot = 0;
bool horz = true, vert = true;
S32 horz = 0, vert = 0;
/*
dSscanf( data, "%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g",