Integrating latest from github/staging
Integrating up through commit 5e1bdae
This commit is contained in:
-12
@@ -193,18 +193,6 @@ namespace LegacyFramework
|
||||
// if we're in console mode, listen for CTRL+C
|
||||
::SetConsoleCtrlHandler(CTRL_BREAK_HandlerRoutine, true);
|
||||
#endif
|
||||
|
||||
m_ptrCommandLineParser = aznew AzFramework::CommandLine();
|
||||
m_ptrCommandLineParser->Parse(m_desc.m_argc, m_desc.m_argv);
|
||||
if (m_ptrCommandLineParser->HasSwitch("app-root"))
|
||||
{
|
||||
auto appRootOverride = m_ptrCommandLineParser->GetSwitchValue("app-root", 0);
|
||||
if (!appRootOverride.empty())
|
||||
{
|
||||
m_appRoot = appRootOverride;
|
||||
}
|
||||
}
|
||||
|
||||
// If we don't have one create a serialize context
|
||||
if (GetSerializeContext() == nullptr)
|
||||
{
|
||||
|
||||
+10
-2
@@ -18,8 +18,10 @@
|
||||
#include <AzCore/Component/EntityUtils.h>
|
||||
#include <AzCore/Debug/Profiler.h>
|
||||
#include <AzCore/Math/Vector2.h>
|
||||
#include <AzCore/IO/Path/Path.h>
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzCore/Serialization/Utils.h>
|
||||
#include <AzCore/Settings/SettingsRegistryMergeUtils.h>
|
||||
#include <AzCore/std/sort.h>
|
||||
|
||||
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
||||
@@ -147,7 +149,13 @@ namespace AzToolsFramework
|
||||
m_gui = new Ui::EntityOutlinerWidgetUI();
|
||||
m_gui->setupUi(this);
|
||||
|
||||
QDir rootDir(AzQtComponents::FindEngineRootDir(qApp));
|
||||
AZ::IO::FixedMaxPath engineRootPath;
|
||||
if (auto settingsRegistry = AZ::SettingsRegistry::Get(); settingsRegistry != nullptr)
|
||||
{
|
||||
settingsRegistry->Get(engineRootPath.Native(), AZ::SettingsRegistryMergeUtils::FilePathKey_EngineRootFolder);
|
||||
}
|
||||
|
||||
QDir rootDir = QString::fromUtf8(engineRootPath.c_str(), aznumeric_cast<int>(engineRootPath.Native().size()));
|
||||
const auto pathOnDisk = rootDir.absoluteFilePath(QStringLiteral("Code/Framework/AzToolsFramework/AzToolsFramework/UI/Outliner/"));
|
||||
const QStringView qrcPath = QStringLiteral(":/EntityOutliner");
|
||||
|
||||
@@ -155,7 +163,7 @@ namespace AzToolsFramework
|
||||
// developers. The style will be loaded from a Qt Resource file if Editor is installed, but
|
||||
// developers with the file on disk will be able to modify the style and have it automatically
|
||||
// reloaded.
|
||||
AzQtComponents::StyleManager::addSearchPaths("outliner", pathOnDisk, qrcPath.toString());
|
||||
AzQtComponents::StyleManager::addSearchPaths("outliner", pathOnDisk, qrcPath.toString(), engineRootPath);
|
||||
AzQtComponents::StyleManager::setStyleSheet(this, QStringLiteral("outliner:EntityOutliner.qss"));
|
||||
|
||||
m_listModel = aznew EntityOutlinerListModel(this);
|
||||
|
||||
Reference in New Issue
Block a user