mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Fix string usage that was broken from enabling the Max plugin build
This commit is contained in:
@ -68,8 +68,7 @@ plLayerAnimationBase::plLayerAnimationBase()
|
||||
fOpacityCtl(nil),
|
||||
fTransformCtl(nil),
|
||||
fEvalTime(-1.0),
|
||||
fCurrentTime(-1.f),
|
||||
fSegmentID(nil)
|
||||
fCurrentTime(-1.f)
|
||||
{
|
||||
}
|
||||
|
||||
@ -81,7 +80,6 @@ plLayerAnimationBase::~plLayerAnimationBase()
|
||||
delete fSpecularColorCtl;
|
||||
delete fOpacityCtl;
|
||||
delete fTransformCtl;
|
||||
delete [] fSegmentID;
|
||||
}
|
||||
|
||||
void plLayerAnimationBase::Read(hsStream* s, hsResMgr* mgr)
|
||||
|
@ -60,10 +60,10 @@ class plSimpleStateVariable;
|
||||
class plLayerAnimationBase : public plLayerInterface
|
||||
{
|
||||
protected:
|
||||
char* fSegmentID;
|
||||
double fEvalTime;
|
||||
float fCurrentTime;
|
||||
float fLength;
|
||||
plString fSegmentID;
|
||||
double fEvalTime;
|
||||
float fCurrentTime;
|
||||
float fLength;
|
||||
|
||||
plController* fPreshadeColorCtl;
|
||||
plController* fRuntimeColorCtl;
|
||||
@ -92,8 +92,8 @@ public:
|
||||
|
||||
// Specialized
|
||||
float GetLength() const { return fLength; }
|
||||
char *GetSegmentID() const { return fSegmentID; }
|
||||
void SetSegmentID(char *ID) { delete fSegmentID; fSegmentID = hsStrcpy(ID); }
|
||||
plString GetSegmentID() const { return fSegmentID; }
|
||||
void SetSegmentID(const plString &ID) { fSegmentID = ID; }
|
||||
|
||||
// Export construction functions follow
|
||||
void SetPreshadeColorCtl(plController* colCtl);
|
||||
|
Reference in New Issue
Block a user