|
|
|
@ -16,11 +16,8 @@
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QHeaderView>
|
|
|
|
#include <QHeaderView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace EMotionFX
|
|
|
|
namespace EMotionFX
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int SkeletonOutlinerPlugin::s_iconSize = 16;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SkeletonOutlinerPlugin::SkeletonOutlinerPlugin()
|
|
|
|
SkeletonOutlinerPlugin::SkeletonOutlinerPlugin()
|
|
|
|
: EMStudio::DockWidgetPlugin()
|
|
|
|
: EMStudio::DockWidgetPlugin()
|
|
|
|
, m_mainWidget(nullptr)
|
|
|
|
, m_mainWidget(nullptr)
|
|
|
|
@ -30,13 +27,16 @@ namespace EMotionFX
|
|
|
|
|
|
|
|
|
|
|
|
SkeletonOutlinerPlugin::~SkeletonOutlinerPlugin()
|
|
|
|
SkeletonOutlinerPlugin::~SkeletonOutlinerPlugin()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
// Reset selection on close.
|
|
|
|
|
|
|
|
m_skeletonModel->GetSelectionModel().clearSelection();
|
|
|
|
|
|
|
|
m_skeletonModel.reset();
|
|
|
|
|
|
|
|
|
|
|
|
for (MCore::Command::Callback* callback : m_commandCallbacks)
|
|
|
|
for (MCore::Command::Callback* callback : m_commandCallbacks)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CommandSystem::GetCommandManager()->RemoveCommandCallback(callback, true);
|
|
|
|
CommandSystem::GetCommandManager()->RemoveCommandCallback(callback, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_commandCallbacks.clear();
|
|
|
|
m_commandCallbacks.clear();
|
|
|
|
|
|
|
|
|
|
|
|
SkeletonOutlinerNotificationBus::Broadcast(&SkeletonOutlinerNotifications::SingleNodeSelectionChanged, nullptr, nullptr);
|
|
|
|
|
|
|
|
EMotionFX::SkeletonOutlinerRequestBus::Handler::BusDisconnect();
|
|
|
|
EMotionFX::SkeletonOutlinerRequestBus::Handler::BusDisconnect();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|