@@ -55,14 +55,14 @@ class ViewportEditorModeNotificationsBusImpl
|
||||
: public AzToolsFramework::ViewportEditorModeNotificationsBus::Handler
|
||||
{
|
||||
public:
|
||||
/// Set the function to be called when entering ComponentMode.
|
||||
// Set the function to be called when entering ComponentMode.
|
||||
void SetEnteredComponentModeFunc(
|
||||
const AZStd::function<void(const AzToolsFramework::ViewportEditorModesInterface&)>& enteredComponentModeFunc)
|
||||
{
|
||||
m_enteredComponentModeFunc = enteredComponentModeFunc;
|
||||
}
|
||||
|
||||
/// Set the function to be called when leaving ComponentMode.
|
||||
// Set the function to be called when leaving ComponentMode.
|
||||
void SetLeftComponentModeFunc(
|
||||
const AZStd::function<void(const AzToolsFramework::ViewportEditorModesInterface&)>& leftComponentModeFunc)
|
||||
{
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ namespace AzToolsFramework
|
||||
{
|
||||
AZ_Assert(
|
||||
AZ::Interface<ComponentModeCollectionInterface>::Get() == nullptr, "Unexpected registration of component mode collection.")
|
||||
AZ::Interface<ComponentModeCollectionInterface>::Register(&m_componentModeCollection);
|
||||
AZ::Interface<ComponentModeCollectionInterface>::Register(&m_componentModeCollection);
|
||||
|
||||
ActionOverrideRequestBus::Handler::BusConnect(GetEntityContextId());
|
||||
ComponentModeFramework::ComponentModeSystemRequestBus::Handler::BusConnect();
|
||||
|
||||
Reference in New Issue
Block a user