mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fix segfault (#146)
This commit is contained in:
@@ -1475,6 +1475,10 @@ std::optional<YAML::Node> Companion::AddAsset(YAML::Node asset) {
|
||||
|
||||
auto result = this->RegisterAsset(output, asset);
|
||||
|
||||
if(!gCurrentVirtualPath.empty()) {
|
||||
asset["path"] = gCurrentVirtualPath;
|
||||
}
|
||||
|
||||
if(result.has_value()){
|
||||
asset["vpath"] = std::get<0>(result.value());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user