3
0

LODTreeSelectionWidget.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <Editor/PropertyWidgets/LODSceneGraphWidget.h>
  9. #include <Editor/PropertyWidgets/LODTreeSelectionWidget.h>
  10. #include <Editor/PropertyWidgets/PropertyWidgetAllocator.h>
  11. namespace EMotionFX
  12. {
  13. namespace Pipeline
  14. {
  15. namespace UI
  16. {
  17. AZ_CLASS_ALLOCATOR_IMPL(LODTreeSelectionWidget, PropertyWidgetAllocator)
  18. LODTreeSelectionWidget::LODTreeSelectionWidget(QWidget* parent)
  19. : NodeTreeSelectionWidget(parent)
  20. , m_hideUncheckableItem(false)
  21. {
  22. }
  23. void LODTreeSelectionWidget::HideUncheckable(bool hide)
  24. {
  25. m_hideUncheckableItem = hide;
  26. }
  27. void LODTreeSelectionWidget::ResetNewTreeWidget(const SceneContainers::Scene& scene)
  28. {
  29. LODSceneGraphWidget* widget = aznew LODSceneGraphWidget(scene, *m_list);
  30. widget->HideUncheckableItem(m_hideUncheckableItem);
  31. m_treeWidget.reset(widget);
  32. }
  33. }
  34. }
  35. }
  36. #include <Source/Editor/PropertyWidgets/moc_LODTreeSelectionWidget.cpp>