Fixed Material Editor not launching (#1920)
* Fixed Material Editor not launching Explicitly providing project-path as part of launch parameters. Signed-off-by: Lloyd Tullues <lloyd@carbonated.com> * Update Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Lloyd Tullues <lloyd@carbonated.com> * Minor - adding whitespace for consistency Signed-off-by: Lloyd Tullues <lloyd@carbonated.com> Co-authored-by: Lloyd Tullues <lloyd@carbonated.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
This commit is contained in:
+6
@@ -130,6 +130,12 @@ namespace AZ
|
||||
arguments.append(QString("--rhi=%1").arg(apiName.GetCStr()));
|
||||
}
|
||||
|
||||
AZ::IO::FixedMaxPathString projectPath(AZ::Utils::GetProjectPath());
|
||||
if (!projectPath.empty())
|
||||
{
|
||||
arguments.append(QString("--project-path=%1").arg(projectPath.c_str()));
|
||||
}
|
||||
|
||||
AtomToolsFramework::LaunchTool("MaterialEditor", ".exe", arguments);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user