Bläddra i källkod

behavior context class SceneGraph::NodeIndex -> "NodeIndex"

jackalbe 4 år sedan
förälder
incheckning
80f8c0f68b

+ 22 - 3
AutomatedTesting/Gem/PythonTests/CMakeLists.txt

@@ -117,12 +117,30 @@ endif()
 #endif()
 #endif()
 
 
 ## Editor Python Bindings ##
 ## Editor Python Bindings ##
+#if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
+#    ly_add_pytest(
+#        NAME AutomatedTesting::EditorPythonBindings
+#        TEST_SUITE sandbox
+#        TEST_SERIAL
+#        PATH ${CMAKE_CURRENT_LIST_DIR}/EditorPythonBindings
+#        TIMEOUT 3600
+#        RUNTIME_DEPENDENCIES
+#            Legacy::Editor
+#            Legacy::CryRenderNULL
+#            AZ::AssetProcessor
+#            AutomatedTesting.Assets
+#            Gem::EditorPythonBindings.Editor
+#        COMPONENT TestTools
+#    )
+#endif()
+
+## Python Asset Builder ##
 if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
 if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
     ly_add_pytest(
     ly_add_pytest(
-        NAME AutomatedTesting::EditorPythonBindings
-        TEST_SUITE sandbox
+        NAME AutomatedTesting::PythonAssetBuilder
+        TEST_SUITE periodic
         TEST_SERIAL
         TEST_SERIAL
-        PATH ${CMAKE_CURRENT_LIST_DIR}/EditorPythonBindings
+        PATH ${CMAKE_CURRENT_LIST_DIR}/PythonAssetBuilder
         TIMEOUT 3600
         TIMEOUT 3600
         RUNTIME_DEPENDENCIES
         RUNTIME_DEPENDENCIES
             Legacy::Editor
             Legacy::Editor
@@ -130,6 +148,7 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
             AZ::AssetProcessor
             AZ::AssetProcessor
             AutomatedTesting.Assets
             AutomatedTesting.Assets
             Gem::EditorPythonBindings.Editor
             Gem::EditorPythonBindings.Editor
+            Gem::PythonAssetBuilder.Editor
         COMPONENT TestTools
         COMPONENT TestTools
     )
     )
 endif()
 endif()

+ 2 - 2
Code/Tools/SceneAPI/SceneCore/Containers/SceneGraph.cpp

@@ -43,7 +43,7 @@ namespace AZ
                 AZ::BehaviorContext* behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context);
                 AZ::BehaviorContext* behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context);
                 if (behaviorContext)
                 if (behaviorContext)
                 {
                 {
-                    behaviorContext->Class<SceneGraph::NodeIndex>()
+                    behaviorContext->Class<SceneGraph::NodeIndex>("NodeIndex")
                         ->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Common)
                         ->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Common)
                         ->Attribute(AZ::Script::Attributes::Module, "scene.graph")
                         ->Attribute(AZ::Script::Attributes::Module, "scene.graph")
                         ->Constructor<>()
                         ->Constructor<>()
@@ -57,7 +57,7 @@ namespace AZ
                             ->Attribute(AZ::Script::Attributes::Operator, AZ::Script::Attributes::OperatorType::ToString)
                             ->Attribute(AZ::Script::Attributes::Operator, AZ::Script::Attributes::OperatorType::ToString)
                         ;
                         ;
 
 
-                    behaviorContext->Class<SceneGraph::Name>()
+                    behaviorContext->Class<SceneGraph::Name>("SceneGraphName")
                         ->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Common)
                         ->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Common)
                         ->Attribute(AZ::Script::Attributes::Module, "scene.graph")
                         ->Attribute(AZ::Script::Attributes::Module, "scene.graph")
                         ->Constructor()
                         ->Constructor()