Commit 5683f9f0 authored by Aleksandr Bakhshiev's avatar Aleksandr Bakhshiev
Browse files

Now added: call Init or Reset to component when component added to other component.

--HG--
branch : DataSrcs
parent 5276545ef752
......@@ -3224,7 +3224,10 @@ const char* UEngine::Model_AddComponent(const char* stringid, const char *classn
if(destcont->AddComponent(cont))
{
if(!cont->IsInit())
cont->Init(); // TODO: ?
else
cont->Reset();
TempString=cont->GetName();
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment