Browse Source

Fix Camera Sensor Reflection to work in GameLauncher (#473)

Signed-off-by: Mateusz Wasilewski <[email protected]>
Mateusz Wasilewski 1 year ago
parent
commit
1b62a959d1

+ 2 - 0
Gems/ROS2/Code/Source/Camera/ROS2CameraSensorComponent.cpp

@@ -29,6 +29,8 @@ namespace ROS2
 
     void ROS2CameraSensorComponent::Reflect(AZ::ReflectContext* context)
     {
+        CameraSensorConfiguration::Reflect(context);
+
         auto* serialize = azrtti_cast<AZ::SerializeContext*>(context);
         if (serialize)
         {

+ 0 - 2
Gems/ROS2/Code/Source/Camera/ROS2CameraSensorEditorComponent.cpp

@@ -37,8 +37,6 @@ namespace ROS2
 
     void ROS2CameraSensorEditorComponent::Reflect(AZ::ReflectContext* context)
     {
-        CameraSensorConfiguration::Reflect(context);
-
         if (auto* serialize = azrtti_cast<AZ::SerializeContext*>(context))
         {
             serialize->Class<ROS2CameraSensorEditorComponent, AzToolsFramework::Components::EditorComponentBase>()