diff options
author | Hop311 <Hop3114@gmail.com> | 2024-04-22 01:25:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 01:25:58 +0200 |
commit | 61e1e14ab7d206422004b4b4c6ffbb5e5f7dec58 (patch) | |
tree | 68efc91c394ae9dc76d6e9e7cadee86e2e2a02d3 /extension/src/openvic-extension/singletons/GameSingleton.cpp | |
parent | 34f161570fd7ca9381675be8a9ec3b9b409929e1 (diff) | |
parent | c574d925c5251289d9f2fc32190b44cbe766f387 (diff) |
Merge pull request #219 from OpenVicProject/asset-manager-load-flags
Add AssetManager LoadFlags
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/GameSingleton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.cpp b/extension/src/openvic-extension/singletons/GameSingleton.cpp index df0e9a0..b8aef4f 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.cpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.cpp @@ -339,7 +339,7 @@ Error GameSingleton::_load_terrain_variants() { AssetManager* asset_manager = AssetManager::get_singleton(); ERR_FAIL_NULL_V(asset_manager, FAILED); // Load the terrain texture sheet and prepare to slice it up - Ref<Image> terrain_sheet = asset_manager->get_image(terrain_texturesheet_path); + Ref<Image> terrain_sheet = asset_manager->get_image(terrain_texturesheet_path, AssetManager::LOAD_FLAG_NONE); ERR_FAIL_NULL_V_MSG(terrain_sheet, FAILED, vformat("Failed to load terrain texture sheet: %s", terrain_texturesheet_path)); static constexpr int32_t SHEET_DIMS = 8, SHEET_SIZE = SHEET_DIMS * SHEET_DIMS; |