Applied a bunch of fixes to get the current game exporter functionality working with the resource store system

This commit is contained in:
parax0
2016-07-04 20:28:17 -06:00
parent 2f2ec13ced
commit 24c5ad5cd7
28 changed files with 318 additions and 174 deletions

View File

@@ -258,7 +258,7 @@ void CSceneNode::DrawBoundingBox() const
void CSceneNode::DrawRotationArrow() const
{
static TResPtr<CModel> spArrowModel = gResourceStore.LoadResource("../resources/RotationArrow.cmdl");
static TResPtr<CModel> spArrowModel = gpResourceStore->LoadResource("../resources/RotationArrow.cmdl");
spArrowModel->Draw(eNoRenderOptions, 0);
}

View File

@@ -535,15 +535,15 @@ void CScriptNode::UpdatePreviewVolume()
{
case eAxisAlignedBoxShape:
case eBoxShape:
pVolumeModel = gResourceStore.LoadResource("../resources/VolumeBox.cmdl");
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeBox.cmdl");
break;
case eEllipsoidShape:
pVolumeModel = gResourceStore.LoadResource("../resources/VolumeSphere.cmdl");
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeSphere.cmdl");
break;
case eCylinderShape:
pVolumeModel = gResourceStore.LoadResource("../resources/VolumeCylinder.cmdl");
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeCylinder.cmdl");
break;
}