Commit Graph

28 Commits (9a470f35add7f70faac7abb52b2d7d5b718124f8)

Author SHA1 Message Date
nvsickle 52604d79f6 Address some review feedback
Signed-off-by: nvsickle <nvsickle@amazon.com>
4 years ago
nvsickle c9fb41d0e5 Fix Entity Outliner sort order with Prefabs enabled
The EditorEntitySortComponent was relying on serialization callbacks not exposed to the JSON serializer to marshal data between its serialized state and its runtime state, which led to the outliner sort order becoming disrupted every time a prefab propagation occurs (and the component is subsequently serialized and deserialized). This change:
- Forces `PrepareSave` and `PostLoad` for `EditorEntitySortComponent` to be called at update (direct descendant added or removed) and activation time respectively while prefabs are enabled. While this could be optimized, and this logic stands to be refactored once slices are fully removed, I was unable to gather any samples in which `PrepareSave` are called in a sampling profiler in a scene with 1000 top-level entities, so I don't anticipate this introducing a meaningful performance regression in the short term.
- Disables updates in `EditorEntitySortComponent` during prefab propagation, as any detected changes do not signal authored intent at this time
- Made `GetEntityChildOrder` in `EditorEntityHelpers` work with prefabs enabled, which restores the existing "Sort: A -> Z" and "Sort: Z -> A" behaviors (which have some preexisting issues this does not fix)
- Adds a Python regression test to the Editor suite to validate this behavior - the test is currently in TestSuite_Main and not TestSuite_Main_Optimized because it requires an Editor launch with prefabs enabled, this can be fixed once AutomatedTesting is further migrated away from slices

@AMZN-daimini has a larger change that improves the JSON serialization format (https://github.com/o3de/o3de/pull/1292) which we should absolutely bring in in the future to improve the legibility of the Prefab format, but this change fixes the functionality (including saving & reloading a level and keeping a consistent order) without altering the Prefab format - this lower impact radius fix is my preference for our stabilization period.

Signed-off-by: nvsickle <nvsickle@amazon.com>
4 years ago
kritin f009e06cab responding to code reviews
Signed-off-by: kritin <kritin@amazon.com>
4 years ago
kritin f1fe2912e4 responded to code reviews
Signed-off-by: kritin <kritin@amazon.com>
4 years ago
kritin b7e3a63fae responded to code reviews
Signed-off-by: kritin <kritin@amazon.com>
4 years ago
kritin 779edb7fe5 Sample Editor test for QA Automation project
Signed-off-by: kritin <kritin@amazon.com>
4 years ago
jckand-amzn 871cb6761e More Editor automation conversions to TestAutomationBase
Signed-off-by: jckand-amzn <jckand@amazon.com>
4 years ago
jckand-amzn 182d410562 Updating base.py to allow for turning off batch and autotest modes
Signed-off-by: jckand-amzn <jckand@amazon.com>
4 years ago
jckand-amzn 7daef6ab03 Converting Editor Main tests to use TestAutomationBase, and preparing for optimization
Signed-off-by: jckand-amzn <jckand@amazon.com>
4 years ago
Chris Galvan 88bef1074b Replaced some Lumberyard references with O3DE.
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
4 years ago
Steve Pham 38261d0800
Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
4 years ago
Chris Galvan 2fc1062802 Removed deprecated graphics settings/performance menu options. Updated automated test accordingly.
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
4 years ago
jckand-amzn ea0e38aaf4 Updating expected View menu options for test_Menus_ViewMenuOptions_Work
Signed-off-by: jckand-amzn <jckand@amazon.com>
5 years ago
Steve Pham b4a2edec6a
Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
5 years ago
Steve Pham 70042fcdcd
O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
sphrose a8ba1a99af Update BasicEditorWorkflows_LevelEntityComponentCRUD.py 5 years ago
jckand-amzn b31de1da33 LYN-4518: Updating expected actions for test_Menus_ViewMenuOptions_Work 5 years ago
jckand-amzn 5fbf587b9e Updating File Menu actions in test_Menus_FileMenuOptions_Work. Temporarily marking test as xfail due to LYN-4208 5 years ago
jckand-amzn 053247931b LYN-3769: Adding a basic Editor workflow automated test 5 years ago
jckand-amzn 6be126ec36 SPEC-6949: Updating menu actions for failing Menu tests 5 years ago
jckand b2f0df99a7 - Removing re-merged unneeded tests
- Updating imports for Editor tests to new utils location
5 years ago
jckand 52731b478d Resolving conflicts with deleted files and main merge 5 years ago
jckand 9f2386fd09 - LYN-2764: Updating asset in TreeNavigation test
- Removing mistakenly re-merged test file
5 years ago
evanchia c1e3e0fe5e Moving hydra util files into a package 5 years ago
alexpete 8469c9ca0a Integrating github/staging through commit 5f214be 5 years ago
alexpete 1044dc3da1 Integrating github/staging through commit ab87ed9 5 years ago
Brian Herrera e8bbb5a0d5 Set scripts to be executable
This is required to build on linux/mac
5 years ago
alexpete 75dc720198 Integrating latest 47acbe8 5 years ago