Skip to content

Commit 215338d

Browse files
authored
Fixed a crash when editing a material generated from a model (#563)
1 parent 4664610 commit 215338d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Overload/OvEditor/src/OvEditor/Panels/AssetBrowser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ namespace
685685
{
686686
for (const std::string& materialName : model->GetMaterialNames())
687687
{
688-
const auto finalPath = FindAvailableFilePath(filePath / (materialName + ".ovmat"));
688+
const auto finalPath = FindAvailableFilePath(filePath.parent_path() / (materialName + ".ovmat"));
689689

690690
const std::string fileContent = std::format(
691691
"<root><shader>:Shaders\\{}.ovfx</shader></root>",

0 commit comments

Comments
 (0)