Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
OpenSpace
Commits
c0187962
Commit
c0187962
authored
3 years ago
by
Alexander Bock
Browse files
Options
Download
Email Patches
Plain Diff
Catch exception thrown when trying to add an asset that does not exist (closes #1984)
parent
68780a66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scene/assetmanager.cpp
+4
-0
src/scene/assetmanager.cpp
with
4 additions
and
0 deletions
+4
-0
src/scene/assetmanager.cpp
+
4
-
0
View file @
c0187962
...
...
@@ -343,6 +343,10 @@ bool AssetManager::loadAsset(Asset* asset, Asset* parent) {
LERROR
(
fmt
::
format
(
"Could not load asset {}: {}"
,
asset
->
path
(),
e
.
message
));
return
false
;
}
catch
(
const
ghoul
::
RuntimeError
&
e
)
{
LERRORC
(
e
.
component
,
e
.
message
);
return
false
;
}
// Extract meta information from the asset file if it was provided
lua_getglobal
(
*
_luaState
,
AssetGlobalVariableName
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help