FeatureProcessor.cpp 745 B

123456789101112131415161718192021222324252627282930
  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 <Atom/RPI.Public/FeatureProcessor.h>
  9. #include <Atom/RPI.Public/Scene.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. void FeatureProcessor::EnableSceneNotification()
  15. {
  16. if (m_parentScene && !m_parentScene->GetId().IsNull())
  17. {
  18. SceneNotificationBus::Handler::BusConnect(m_parentScene->GetId());
  19. }
  20. }
  21. void FeatureProcessor::DisableSceneNotification()
  22. {
  23. SceneNotificationBus::Handler::BusDisconnect();
  24. }
  25. }
  26. }