2
0

PythonEditorAction.cpp 667 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <ActionManager/PythonEditorAction.h>
  9. namespace EditorPythonBindings
  10. {
  11. PythonEditorAction::PythonEditorAction(PyObject* handler)
  12. : m_pythonCallableObject(handler)
  13. {
  14. }
  15. PyObject* PythonEditorAction::GetPyObject()
  16. {
  17. return m_pythonCallableObject;
  18. }
  19. const PyObject* PythonEditorAction::GetPyObject() const
  20. {
  21. return m_pythonCallableObject;
  22. }
  23. } // namespace EditorPythonBindings