mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 12:25:30 +00:00
Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.
This commit is contained in:
parent
d76c73c252
commit
8956559bfd
44 changed files with 124 additions and 258 deletions
|
|
@ -58,10 +58,10 @@ struct WaterFogData
|
|||
densityOffset = 0.0f;
|
||||
wetDepth = 0.0f;
|
||||
wetDarkening = 0.0f;
|
||||
color.set( 0.5f, 0.5f, 0.5f, 1.0f );
|
||||
color = ColorI(128, 128, 128, 128);
|
||||
plane.set( 0.0f, 0.0f, 1.0f, 1e10 ); // Default to global bounds distance
|
||||
depthGradMax = 0.0f;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _FOGSTRUCTS_H_
|
||||
#endif // _FOGSTRUCTS_H_
|
||||
|
|
|
|||
|
|
@ -1704,7 +1704,7 @@ void SceneObject::updateRenderChangesByParent(){
|
|||
// This is needed by objects that update their own render transform thru interpolate tick
|
||||
// Mostly for stationary objects.
|
||||
|
||||
if (getClassName() == "Player")
|
||||
if (getClassName() == StringTable->insert("Player"))
|
||||
mat.mul(offset,getRenderTransform());
|
||||
else
|
||||
mat.mul(offset,getTransform());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue