loadmodel fix

This commit is contained in:
turanszkij
2016-06-12 13:41:26 +02:00
parent 7cefafe586
commit 324b6ae5ef
+2 -1
View File
@@ -3239,6 +3239,8 @@ Model* wiRenderer::LoadModel(const string& dir, const string& name, const XMMATR
model->transform(transform);
GetDevice()->LOCK();
GetScene().AddModel(model);
for (Object* o : model->objects)
@@ -3248,7 +3250,6 @@ Model* wiRenderer::LoadModel(const string& dir, const string& name, const XMMATR
}
}
GetDevice()->LOCK();
Update();