cleanup
This commit is contained in:
@@ -263,11 +263,7 @@ void Actor::LoadFromNode( const RString& sDir, const XNode* pNode )
|
|||||||
// Load Name, if any.
|
// Load Name, if any.
|
||||||
const RString &sKeyName = pAttr->first;
|
const RString &sKeyName = pAttr->first;
|
||||||
const RString &sValue = pAttr->second;
|
const RString &sValue = pAttr->second;
|
||||||
if( sKeyName == "Name" )
|
if( sKeyName == "Name" ) SetName( sValue );
|
||||||
{
|
|
||||||
m_sName = sValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
else if( sKeyName == "BaseRotationX" ) SetBaseRotationX( StringToFloat(sValue) );
|
else if( sKeyName == "BaseRotationX" ) SetBaseRotationX( StringToFloat(sValue) );
|
||||||
else if( sKeyName == "BaseRotationY" ) SetBaseRotationY( StringToFloat(sValue) );
|
else if( sKeyName == "BaseRotationY" ) SetBaseRotationY( StringToFloat(sValue) );
|
||||||
else if( sKeyName == "BaseRotationZ" ) SetBaseRotationZ( StringToFloat(sValue) );
|
else if( sKeyName == "BaseRotationZ" ) SetBaseRotationZ( StringToFloat(sValue) );
|
||||||
|
|||||||
Reference in New Issue
Block a user