diff --git a/gdextension/src/editor/masset_table.cpp b/gdextension/src/editor/masset_table.cpp index d4720e2..222ff7f 100644 --- a/gdextension/src/editor/masset_table.cpp +++ b/gdextension/src/editor/masset_table.cpp @@ -11,6 +11,7 @@ const char* MAssetTable::asset_table_path = "res://massets_editor/asset_table.re const char* MAssetTable::asset_editor_root_dir = "res://massets_editor/"; const char* MAssetTable::editor_baker_scenes_dir = "res://massets_editor/baker_scenes/"; const char* MAssetTable::asset_thumbnails_dir = "res://massets_editor/thumbnails/"; +const char* MAssetTable::hlod_res_dir = "res://massets/hlod/"; MAssetTable* MAssetTable::asset_table_singelton = nullptr; void MAssetTable::_bind_methods(){ @@ -22,6 +23,7 @@ void MAssetTable::_bind_methods(){ ClassDB::bind_static_method("MAssetTable",D_METHOD("get_asset_editor_root_dir"), &MAssetTable::get_asset_editor_root_dir); ClassDB::bind_static_method("MAssetTable",D_METHOD("get_editor_baker_scenes_dir"), &MAssetTable::get_editor_baker_scenes_dir); ClassDB::bind_static_method("MAssetTable",D_METHOD("get_asset_thumbnails_dir"), &MAssetTable::get_asset_thumbnails_dir); + ClassDB::bind_static_method("MAssetTable",D_METHOD("get_hlod_res_dir"), &MAssetTable::get_hlod_res_dir); ClassDB::bind_static_method("MAssetTable",D_METHOD("reset","hard"), &MAssetTable::reset); ClassDB::bind_method(D_METHOD("has_mesh_item","mesh_id"), &MAssetTable::has_mesh_item); @@ -174,6 +176,10 @@ String MAssetTable::get_asset_thumbnails_dir(){ return asset_thumbnails_dir; } +String MAssetTable::get_hlod_res_dir(){ + return hlod_res_dir; +} + MAssetTable::Tag::Tag(){ clear(); } diff --git a/gdextension/src/editor/masset_table.h b/gdextension/src/editor/masset_table.h index ceedb97..0595dc3 100644 --- a/gdextension/src/editor/masset_table.h +++ b/gdextension/src/editor/masset_table.h @@ -153,6 +153,7 @@ class MAssetTable : public Resource { static const char* asset_editor_root_dir; static const char* editor_baker_scenes_dir; static const char* asset_thumbnails_dir; + static const char* hlod_res_dir; static MAssetTable* asset_table_singelton; public: @@ -164,6 +165,7 @@ class MAssetTable : public Resource { static String get_asset_editor_root_dir(); static String get_editor_baker_scenes_dir(); static String get_asset_thumbnails_dir(); + static String get_hlod_res_dir(); bool has_mesh_item(int id) const; bool has_collection(int id) const; void remove_mesh_item(int id);