MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / IsCacheValid

Function IsCacheValid

Engine/lib/opcode/OPC_VolumeCollider.h:120–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 inline_ BOOL IsCacheValid(VolumeCache& cache)
121 {
122 // We're going to do a volume-vs-model query.
123 if(cache.Model!=mCurrentModel)
124 {
125 // Cached list was for another model so we can't keep it
126 // Keep track of new owner and reset cache
127 cache.Model = mCurrentModel;
128 return FALSE;
129 }
130 else
131 {
132 // Same models, no problem
133 return TRUE;
134 }
135 }
136 };
137
138#endif // __OPC_VOLUMECOLLIDER_H__

Callers 4

InitQueryMethod · 0.85
InitQueryMethod · 0.85
InitQueryMethod · 0.85
InitQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected