Ensured EditContext is created for the legacy tools framework application (Lua) so that settings are able to be displayed

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
main
Chris Galvan 5 years ago
parent da26231a65
commit 91656ded9f

@ -151,6 +151,12 @@ namespace LegacyFramework
specializations.Append("tools"); specializations.Append("tools");
} }
void Application::CreateReflectionManager()
{
AZ::ComponentApplication::CreateReflectionManager();
GetSerializeContext()->CreateEditContext();
}
int Application::Run(const ApplicationDesc& desc) int Application::Run(const ApplicationDesc& desc)
{ {
if (!AZ::AllocatorInstance<AZ::OSAllocator>::IsReady()) if (!AZ::AllocatorInstance<AZ::OSAllocator>::IsReady())

@ -56,6 +56,8 @@ namespace LegacyFramework
virtual int Run(const ApplicationDesc& desc); virtual int Run(const ApplicationDesc& desc);
Application(); Application();
void CreateReflectionManager() override;
protected: protected:
// ------------------------------------------------------------------ // ------------------------------------------------------------------

Loading…
Cancel
Save