Fixes resource selectors not showing (#2621)

These statics were getting dead-stripped by the compiler, so removed
some of the macro magic and just do direct registration instead.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
This commit is contained in:
amzn-phist
2021-07-29 14:56:13 -05:00
committed by GitHub
parent 42a99d3d43
commit 99f7085c05
4 changed files with 46 additions and 10 deletions
@@ -14,7 +14,7 @@
#include <AudioControlsLoader.h>
#include <AudioControlsWriter.h>
#include <Include/IResourceSelectorHost.h>
#include <AudioResourceSelectors.h>
#include <IAudioSystem.h>
#include <IAudioSystemEditor.h>
@@ -39,7 +39,7 @@ CAudioControlsEditorPlugin::CAudioControlsEditorPlugin(IEditor* editor)
QtViewOptions options;
options.canHaveMultipleInstances = true;
RegisterQtViewPane<CAudioControlsEditorWindow>(editor, LyViewPane::AudioControlsEditor, LyViewPane::CategoryOther, options);
RegisterModuleResourceSelectors(GetIEditor()->GetResourceSelectorHost());
RegisterAudioControlsResourceSelectors();
Audio::AudioSystemRequestBus::BroadcastResult(ms_pIAudioProxy, &Audio::AudioSystemRequestBus::Events::GetFreeAudioProxy);