mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
I's not working because onNavMeshUpdate string comparation will never succeed.
DefineEngineMethod(NavPath, onNavMeshUpdate, void, (const char *data),,
"@brief Callback when this path's NavMesh is loaded or rebuilt.")
{
if(object->mMesh && !dStrcmp(data, object->mMesh->getIdString()))
object->plan();
}
This commit is contained in:
parent
6097c48c5d
commit
87fb2d827b
1 changed files with 1 additions and 1 deletions
|
|
@ -838,7 +838,7 @@ void NavMesh::buildNextTile()
|
||||||
ctx->stopTimer(RC_TIMER_TOTAL);
|
ctx->stopTimer(RC_TIMER_TOTAL);
|
||||||
if(getEventManager())
|
if(getEventManager())
|
||||||
{
|
{
|
||||||
String str = String::ToString("%d %.3f", getId(), ctx->getAccumulatedTime(RC_TIMER_TOTAL) / 1000.0f);
|
String str = String::ToString("%d", getId());
|
||||||
getEventManager()->postEvent("NavMeshUpdate", str.c_str());
|
getEventManager()->postEvent("NavMeshUpdate", str.c_str());
|
||||||
setMaskBits(LoadFlag);
|
setMaskBits(LoadFlag);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue