mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-13 15:16:28 +00:00
Made a bunch of changes to make the resource store system more friendly to multiple stores instead of just a single active one, and set up a resource database for editor assets
This commit is contained in:
@@ -258,7 +258,7 @@ void CSceneNode::DrawBoundingBox() const
|
||||
|
||||
void CSceneNode::DrawRotationArrow() const
|
||||
{
|
||||
static TResPtr<CModel> spArrowModel = gpResourceStore->LoadResource("../resources/RotationArrow.cmdl");
|
||||
static TResPtr<CModel> spArrowModel = gpEditorStore->LoadResource("RotationArrow.cmdl");
|
||||
spArrowModel->Draw(eNoRenderOptions, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -535,15 +535,15 @@ void CScriptNode::UpdatePreviewVolume()
|
||||
{
|
||||
case eAxisAlignedBoxShape:
|
||||
case eBoxShape:
|
||||
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeBox.cmdl");
|
||||
pVolumeModel = gpEditorStore->LoadResource("VolumeBox.cmdl");
|
||||
break;
|
||||
|
||||
case eEllipsoidShape:
|
||||
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeSphere.cmdl");
|
||||
pVolumeModel = gpEditorStore->LoadResource("VolumeSphere.cmdl");
|
||||
break;
|
||||
|
||||
case eCylinderShape:
|
||||
pVolumeModel = gpResourceStore->LoadResource("../resources/VolumeCylinder.cmdl");
|
||||
pVolumeModel = gpEditorStore->LoadResource("VolumeCylinder.cmdl");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user