All pastes #414944 Raw Edit

Untitled

public text v1 · immutable
#414944 ·published 2007-03-29 12:39 UTC
rendered paste body
void OBJECTCONFIG::setDirectory_Name(string text)
{

	// cas où aucun TEXTELEMENT n'est associé à la commande
	if(this->Element != NULL)
	{
		this->Element->setModified(true);
		this->Element->setDirectory_Name(text);

		this->Element->set3DObject( GSEOBJECT3D::Create((char*)text.c_str()) );

		if(this->Element->get3DObject() == NULL)
		{
			this->Element->setValid(false);
		}
		else
		{
			this->Element->setValid(true);
			this->Element->get3DObject()->EnableAnimation(true);
		}
			
	}
	else
	{
		this->Element->setValid(false);
		this->Error();
	}
}