Files
o3de/Gems/EMotionFX/Code/Tests/Mocks/AtomRenderPlugin.h
Roman 5509764fc2 Make atom render viewport the default for animation editor. (#7282)
* Make atom render viewport the default for animation editor.

Signed-off-by: rhhong <rhhong@amazon.com>

* Fixed the automated test problem caused by making atom vp the default

Signed-off-by: rhhong <rhhong@amazon.com>

* Fix another test failure

Signed-off-by: rhhong <rhhong@amazon.com>

* fix failed test

Signed-off-by: rhhong <rhhong@amazon.com>

* more fix to the automation test

Signed-off-by: rhhong <rhhong@amazon.com>

* we don't need to manuelly call init on the ragdoll plugin anymore

Signed-off-by: rhhong <rhhong@amazon.com>
2022-02-02 11:46:00 -08:00

53 lines
1.3 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <EMotionFX/Tools/EMotionStudio/EMStudioSDK/Source/DockWidgetPlugin.h>
namespace EMStudio
{
// The Mock version of AtomRenderPlugin. It have the same name, class_id and type of the actual version.
// The actual implementation of the AtomRenderPlugin is defined outside of EMotionFX gem. This Mock version
// exists so we could load the default layouts without errors.
class MockAtomRenderPlugin
: public DockWidgetPlugin
{
enum
{
CLASS_ID = 0x32b0c04d
};
// Plugin information
const char* GetName() const override
{
return "Atom Render Window";
};
uint32 GetClassID() const override
{
return CLASS_ID;
};
bool Init() override
{
return true;
};
EMStudioPlugin* Clone()
{
return new MockAtomRenderPlugin();
};
EMStudioPlugin::EPluginType GetPluginType() const override
{
return EMStudioPlugin::PLUGINTYPE_RENDERING;
};
};
}