I am so stupid, how did i not check that the extern was correct............. Please end my life
This commit is contained in:
parent
8ffb93b944
commit
1a9f9eda39
14
imgui.ini
14
imgui.ini
@ -9,8 +9,8 @@ Size=400,400
|
||||
Collapsed=0
|
||||
|
||||
[Window][Inspector]
|
||||
Pos=1566,27
|
||||
Size=346,1142
|
||||
Pos=1543,27
|
||||
Size=369,1142
|
||||
Collapsed=0
|
||||
DockId=0x00000002,0
|
||||
|
||||
@ -28,7 +28,7 @@ DockId=0x00000006,0
|
||||
|
||||
[Window][Logger]
|
||||
Pos=374,799
|
||||
Size=1190,370
|
||||
Size=1167,370
|
||||
Collapsed=0
|
||||
DockId=0x00000004,0
|
||||
|
||||
@ -46,7 +46,7 @@ DockId=0x00000005,0
|
||||
|
||||
[Window][Editor]
|
||||
Pos=374,27
|
||||
Size=1190,770
|
||||
Size=1167,770
|
||||
Collapsed=0
|
||||
DockId=0x00000003,0
|
||||
|
||||
@ -54,12 +54,12 @@ DockId=0x00000003,0
|
||||
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,27 Size=1904,1142 Split=X Selected=0xF7365A5A
|
||||
DockNode ID=0x00000009 Parent=0x14621557 SizeRef=364,1142 Split=Y Selected=0x3DC5AC3F
|
||||
DockNode ID=0x00000005 Parent=0x00000009 SizeRef=364,748 HiddenTabBar=1 Selected=0x3DC5AC3F
|
||||
DockNode ID=0x00000006 Parent=0x00000009 SizeRef=364,392 Selected=0x726D8899
|
||||
DockNode ID=0x00000006 Parent=0x00000009 SizeRef=364,392 HiddenTabBar=1 Selected=0x726D8899
|
||||
DockNode ID=0x0000000A Parent=0x14621557 SizeRef=1538,1142 Split=X
|
||||
DockNode ID=0x00000007 Parent=0x0000000A SizeRef=357,1142 Selected=0x7737E8B2
|
||||
DockNode ID=0x00000008 Parent=0x0000000A SizeRef=1545,1142 Split=X
|
||||
DockNode ID=0x00000001 Parent=0x00000008 SizeRef=1190,1142 Split=Y Selected=0xF7365A5A
|
||||
DockNode ID=0x00000001 Parent=0x00000008 SizeRef=1167,1142 Split=Y Selected=0xF7365A5A
|
||||
DockNode ID=0x00000003 Parent=0x00000001 SizeRef=1578,770 CentralNode=1 HiddenTabBar=1 Selected=0xDF0EC458
|
||||
DockNode ID=0x00000004 Parent=0x00000001 SizeRef=1578,370 HiddenTabBar=1 Selected=0x9DD4E196
|
||||
DockNode ID=0x00000002 Parent=0x00000008 SizeRef=346,1142 HiddenTabBar=1 Selected=0x36DC96AB
|
||||
DockNode ID=0x00000002 Parent=0x00000008 SizeRef=369,1142 HiddenTabBar=1 Selected=0x36DC96AB
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "../Engine/AssetManager.h"
|
||||
|
||||
|
||||
extern AssetManager *g_AssetManager;
|
||||
extern AssetManager g_AssetManager;
|
||||
|
||||
//TODO: Make this have a OBJ path, make indexCount derive from AssetManager
|
||||
//TODO: and make texture id also get from AssetManager
|
||||
@ -67,13 +67,13 @@ void MeshComponent::Deserialize(const YAML::Node& node)
|
||||
if (node["MeshPath"])
|
||||
{
|
||||
MeshPath = static_cast<std::string>(node["MeshPath"].as<std::string>());
|
||||
g_AssetManager->DebugAssetMap();
|
||||
g_AssetManager.DebugAssetMap();
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
|
||||
DEBUG_PRINT("Loading Mesh: >%s<", MeshPath.c_str());
|
||||
|
||||
Model* model = g_AssetManager->loadAsset<Model*>(AssetType::MODEL, MeshPath.c_str());
|
||||
Model* model = g_AssetManager.loadAsset<Model*>(AssetType::MODEL, MeshPath.c_str());
|
||||
DEBUG_PRINT("Model loaded successfully with %lld vertices and %lld indices.", model->vertices.size(), model->indices.size());
|
||||
|
||||
#else
|
||||
|
@ -52,6 +52,7 @@ void AssetManager::DebugAssetMap()
|
||||
// Implementation of AssetManager::loadAssetFromDisk
|
||||
AssetManager::AssetVariant AssetManager::loadAssetFromDisk(AssetType type, const std::string &path)
|
||||
{
|
||||
DebugAssetMap();
|
||||
switch (type)
|
||||
{
|
||||
case AssetType::TEXTURE:
|
||||
|
Loading…
Reference in New Issue
Block a user