Skip to content

Commit

Permalink
Merge pull request #103 from its5Q/fix-path-handling
Browse files Browse the repository at this point in the history
(GUI) Fix incorrect path handling in PhysicsMaterialEditor.
  • Loading branch information
innerviewer committed Dec 5, 2023
2 parents df66c0e + 57cb08f commit 53d5597
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Engine/Core/src/Core/GUI/PhysicsMaterialEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ namespace SR_CORE_GUI_NS {
}

void PhysicsMaterialEditor::ReadData() {
auto&& path = SR_UTILS_NS::ResourceManager::Instance().GetResPath().Concat(m_materialPath);
auto&& document = SR_XML_NS::Document::Load(path);
auto&& document = SR_XML_NS::Document::Load(m_materialPath);
if (!document.Valid()) {
SR_ERROR("PhysicsMaterialEditor::Draw() : file is not found! \n\tPath: " + m_materialPath.ToString());
return;
Expand Down

0 comments on commit 53d5597

Please sign in to comment.