mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Convert plUoid's object name to a plString
This commit is contained in:
@ -53,7 +53,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plResMgr/plKeyFinder.h"
|
||||
#include "plPipeline/plDebugText.h"
|
||||
|
||||
void plAnimDebugList::AddObjects(char *subString)
|
||||
void plAnimDebugList::AddObjects(const plString &subString)
|
||||
{
|
||||
std::vector<plKey> keys;
|
||||
std::vector<plKey>::iterator i;
|
||||
@ -79,18 +79,18 @@ void plAnimDebugList::AddObjects(char *subString)
|
||||
}
|
||||
}
|
||||
|
||||
void plAnimDebugList::RemoveObjects(char *subString)
|
||||
void plAnimDebugList::RemoveObjects(const plString &subString)
|
||||
{
|
||||
int i;
|
||||
for (i = fMaterialKeys.GetCount() - 1; i >= 0; i--)
|
||||
{
|
||||
if (strstr(fMaterialKeys[i]->GetName(), subString))
|
||||
if (fMaterialKeys[i]->GetName().Find(subString) >= 0)
|
||||
fMaterialKeys.Remove(i);
|
||||
}
|
||||
|
||||
for (i = fSOKeys.GetCount() - 1; i >= 0; i--)
|
||||
{
|
||||
if (strstr(fSOKeys[i]->GetName(), subString))
|
||||
if (fSOKeys[i]->GetName().Find(subString) >= 0)
|
||||
fSOKeys.Remove(i);
|
||||
}
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ public:
|
||||
plAnimDebugList() : fEnabled(false) {}
|
||||
~plAnimDebugList() {}
|
||||
|
||||
void AddObjects(char *subString);
|
||||
void RemoveObjects(char *subString);
|
||||
void AddObjects(const plString &subString);
|
||||
void RemoveObjects(const plString &subString);
|
||||
void ShowReport();
|
||||
};
|
||||
|
||||
|
@ -69,11 +69,11 @@ hsBool plFollowMod::MsgReceive(plMessage* msg)
|
||||
plRenderMsg* rend = plRenderMsg::ConvertNoRef(msg);
|
||||
if( rend )
|
||||
{
|
||||
plProfile_BeginLap(FollowMod, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_BeginLap(FollowMod, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
fLeaderL2W = rend->Pipeline()->GetCameraToWorld();
|
||||
fLeaderW2L = rend->Pipeline()->GetWorldToCamera();
|
||||
fLeaderSet = true;
|
||||
plProfile_EndLap(FollowMod, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_EndLap(FollowMod, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
return true;
|
||||
}
|
||||
plListenerMsg* list = plListenerMsg::ConvertNoRef(msg);
|
||||
|
@ -257,11 +257,11 @@ hsBool plLineFollowMod::MsgReceive(plMessage* msg)
|
||||
plRenderMsg* rend = plRenderMsg::ConvertNoRef(msg);
|
||||
if( rend )
|
||||
{
|
||||
plProfile_BeginLap(LineFollow, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_BeginLap(LineFollow, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
hsPoint3 oldPos = fSearchPos;
|
||||
fSearchPos = rend->Pipeline()->GetViewPositionWorld();
|
||||
ICheckForPop(oldPos, fSearchPos);
|
||||
plProfile_EndLap(LineFollow, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_EndLap(LineFollow, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
return true;
|
||||
}
|
||||
plListenerMsg* list = plListenerMsg::ConvertNoRef(msg);
|
||||
|
@ -278,7 +278,7 @@ hsBool plViewFaceModifier::MsgReceive(plMessage* msg)
|
||||
|
||||
if( rend )
|
||||
{
|
||||
plProfile_BeginLap(ViewFace, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_BeginLap(ViewFace, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
|
||||
if( HasFlag(kFaceCam) )
|
||||
{
|
||||
@ -314,7 +314,7 @@ hsBool plViewFaceModifier::MsgReceive(plMessage* msg)
|
||||
|
||||
IFacePoint(rend->Pipeline(), fFacePoint);
|
||||
|
||||
plProfile_EndLap(ViewFace, this->GetKey()->GetUoid().GetObjectName());
|
||||
plProfile_EndLap(ViewFace, this->GetKey()->GetUoid().GetObjectName().c_str());
|
||||
return true;
|
||||
}
|
||||
plArmatureUpdateMsg* armMsg = plArmatureUpdateMsg::ConvertNoRef(msg);
|
||||
|
Reference in New Issue
Block a user