From bc29e31367938658fa3a3767f95ac2710627d7e0 Mon Sep 17 00:00:00 2001 From: jckand-amzn <82226555+jckand-amzn@users.noreply.github.com> Date: Thu, 10 Feb 2022 16:28:32 -0600 Subject: [PATCH] Updating whitespace and improving component CRUD readability Signed-off-by: jckand-amzn <82226555+jckand-amzn@users.noreply.github.com> --- .../EditorScripts/ImageGradient_ModifiesSurfaces.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AutomatedTesting/Gem/PythonTests/largeworlds/gradient_signal/EditorScripts/ImageGradient_ModifiesSurfaces.py b/AutomatedTesting/Gem/PythonTests/largeworlds/gradient_signal/EditorScripts/ImageGradient_ModifiesSurfaces.py index 142b3d1bd5..31704dc22c 100644 --- a/AutomatedTesting/Gem/PythonTests/largeworlds/gradient_signal/EditorScripts/ImageGradient_ModifiesSurfaces.py +++ b/AutomatedTesting/Gem/PythonTests/largeworlds/gradient_signal/EditorScripts/ImageGradient_ModifiesSurfaces.py @@ -20,6 +20,7 @@ class Tests: "Found an unexpected number of instances" ) + def ImageGradient_ModifiesSurfaces(): """ Summary: @@ -100,9 +101,10 @@ def ImageGradient_ModifiesSurfaces(): # Set the Image Gradient entity's Gradient Surface Tag Emitter component to modify the "terrain" tag # NOTE: This requires a disable/re-enable of the component to force a refresh as assigning a tag via script does not - image_gradient_entity.components[3].add_container_item("Configuration|Extended Tags", 0, surface_tags["terrain"]) - image_gradient_entity.components[3].set_enabled(False) - image_gradient_entity.components[3].set_enabled(True) + grad_surf_tag_emitter_component = image_gradient_entity.components[3] + grad_surf_tag_emitter_component.add_container_item("Configuration|Extended Tags", 0, surface_tags["terrain"]) + grad_surf_tag_emitter_component.set_enabled(False) + grad_surf_tag_emitter_component.set_enabled(True) # 5) Validate the expected number of vegetation instances. Instances should only spawn on the modified num_expected_instances = 168