LuaHelpers::PrepareExpression is used for metric compatibility; don't use
when loading from XML.
This commit is contained in:
@@ -79,15 +79,9 @@ void ActorFrame::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
|
|
||||||
CString s;
|
CString s;
|
||||||
if( pNode->GetAttrValue( "VanishX", s ) )
|
if( pNode->GetAttrValue( "VanishX", s ) )
|
||||||
{
|
|
||||||
LuaHelpers::PrepareExpression( s );
|
|
||||||
m_fVanishX = LuaHelpers::RunExpressionF( s );
|
m_fVanishX = LuaHelpers::RunExpressionF( s );
|
||||||
}
|
|
||||||
if( pNode->GetAttrValue( "VanishY", s ) )
|
if( pNode->GetAttrValue( "VanishY", s ) )
|
||||||
{
|
|
||||||
LuaHelpers::PrepareExpression( s );
|
|
||||||
m_fVanishY = LuaHelpers::RunExpressionF( s );
|
m_fVanishY = LuaHelpers::RunExpressionF( s );
|
||||||
}
|
|
||||||
m_bOverrideLighting = pNode->GetAttrValue( "Lighting", m_bLighting );
|
m_bOverrideLighting = pNode->GetAttrValue( "Lighting", m_bLighting );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user