mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Alright, this _TEMP_CONVERT_ stuff was a stupid idea
This commit is contained in:
@ -83,7 +83,7 @@ static void ISearchLayerRecur( plLayerInterface *layer, const plString &segName,
|
||||
|
||||
static int ISearchLayerRecur(hsGMaterial* mat, const plString &segName, hsTArray<plKey>& keys)
|
||||
{
|
||||
plString name = (segName.IsNull() || segName.Compare( ENTIRE_ANIMATION_NAME ) == 0 ) ? _TEMP_CONVERT_FROM_LITERAL( "" ) : segName;
|
||||
plString name = ( segName.Compare( ENTIRE_ANIMATION_NAME ) == 0 ) ? "" : segName;
|
||||
int i;
|
||||
for( i = 0; i < mat->GetNumLayers(); i++ )
|
||||
ISearchLayerRecur(mat->GetLayer(i), name, keys);
|
||||
|
@ -254,7 +254,7 @@ plString plAnimStealthNode::GetSegmentName( void ) const
|
||||
{
|
||||
const char *str = fParamBlock->GetStr( (ParamID)kPBName );
|
||||
if( str == nil || str[ 0 ] == 0 )
|
||||
return _TEMP_CONVERT_FROM_LITERAL( ENTIRE_ANIMATION_NAME );
|
||||
return ENTIRE_ANIMATION_NAME;
|
||||
return plString::FromUtf8(str);
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ plBumpMtl::plBumpMtl(BOOL loading) : plPassMtlBase( loading )
|
||||
// If we do this later (like, when the dialog loads) something blows up,
|
||||
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
|
||||
if (!loading)
|
||||
IVerifyStealthPresent(_TEMP_CONVERT_FROM_LITERAL(ENTIRE_ANIMATION_NAME));
|
||||
IVerifyStealthPresent(ENTIRE_ANIMATION_NAME);
|
||||
}
|
||||
|
||||
ParamDlg* plBumpMtl::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp)
|
||||
|
@ -93,7 +93,7 @@ plDecalMtl::plDecalMtl(BOOL loading) : plPassMtlBase( loading )
|
||||
// If we do this later (like, when the dialog loads) something blows up,
|
||||
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
|
||||
if (!loading)
|
||||
IVerifyStealthPresent(_TEMP_CONVERT_FROM_LITERAL(ENTIRE_ANIMATION_NAME));
|
||||
IVerifyStealthPresent(ENTIRE_ANIMATION_NAME);
|
||||
}
|
||||
|
||||
ParamDlg* plDecalMtl::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp)
|
||||
|
@ -96,7 +96,7 @@ plPassMtl::plPassMtl(BOOL loading) : plPassMtlBase( loading )
|
||||
// If we do this later (like, when the dialog loads) something blows up,
|
||||
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
|
||||
if (!loading)
|
||||
IVerifyStealthPresent(_TEMP_CONVERT_FROM_LITERAL(ENTIRE_ANIMATION_NAME));
|
||||
IVerifyStealthPresent(ENTIRE_ANIMATION_NAME);
|
||||
}
|
||||
|
||||
plPassMtl::~plPassMtl()
|
||||
|
@ -215,7 +215,7 @@ plAnimStealthNode *plPassMtlBase::IVerifyStealthPresent( const plString &animN
|
||||
// New segment, add a new stealth node
|
||||
stealth = (plAnimStealthNode *)GetCOREInterface()->CreateInstance( HELPER_CLASS_ID, ANIMSTEALTH_CLASSID );
|
||||
INode *node = GetCOREInterface()->CreateObjectNode( stealth );
|
||||
stealth->SetSegment( ( animName.Compare(ENTIRE_ANIMATION_NAME) != 0 ) ? _TEMP_CONVERT_TO_CONST_CHAR(animName) : nil );
|
||||
stealth->SetSegment( ( animName.Compare(ENTIRE_ANIMATION_NAME) != 0 ) ? animName.c_str() : nil );
|
||||
stealth->SetNodeName( GetName() );
|
||||
node->Freeze( true );
|
||||
|
||||
@ -277,7 +277,7 @@ void plPassMtlBase::IUpdateAnimNodes( void )
|
||||
fStealthsChanged = false;
|
||||
|
||||
// Verify one for "entire animation"
|
||||
plAnimStealthNode *stealth = IVerifyStealthPresent( _TEMP_CONVERT_FROM_LITERAL(ENTIRE_ANIMATION_NAME) );
|
||||
plAnimStealthNode *stealth = IVerifyStealthPresent( ENTIRE_ANIMATION_NAME );
|
||||
goodNodes.Append( stealth );
|
||||
|
||||
// Verify segment nodes
|
||||
@ -519,7 +519,7 @@ void plPassMtlBase::PostLoadAnimPBFixup( void )
|
||||
plAnimStealthNode *node = (plAnimStealthNode *)fAnimPB->GetReferenceTarget( (ParamID)kPBAnimStealthNodes, 0, i );
|
||||
plString name = node->GetSegmentName();
|
||||
node->SetAutoStart( false );
|
||||
node->SetLoop( true, _TEMP_CONVERT_FROM_LITERAL( ENTIRE_ANIMATION_NAME ) );
|
||||
node->SetLoop( true, ENTIRE_ANIMATION_NAME );
|
||||
node->SetEaseIn( plAnimEaseTypes::kNoEase, 1.f, 1.f, 1.f );
|
||||
node->SetEaseOut( plAnimEaseTypes::kNoEase, 1.f, 1.f, 1.f );
|
||||
}
|
||||
|
Reference in New Issue
Block a user