Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle dynamic container elements #17411

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

alexmontAmazon
Copy link
Contributor

What does this PR do?

  • correctly parse dynamic container elements by allowing items with SerializeContext::ClassElement::FLG_DYNAMIC_FIELD to be parsed, even if they don't have editData (since their children still might)
  • simplify container actions to always use the passed containerIndex; this fixes problems with invisible in-between ancestors, like dynamic containers
  • partial fix for SpawnableScriptAssetRef() array as input is not working #17365 ; dynamic container elements can be displayed, removed, and moved, but not yet added by the DPE

How was this PR tested?

locally in the Editor project

Signed-off-by: Alex Montgomery <alexmont@amazon.com>
@alexmontAmazon alexmontAmazon merged commit 0f4f9cf into o3de:development Jan 22, 2024
3 checks passed
alexmontAmazon added a commit to alexmontAmazon/o3de that referenced this pull request Feb 22, 2024
Signed-off-by: Alex Montgomery <alexmont@amazon.com>
alexmontAmazon added a commit that referenced this pull request Feb 23, 2024
* handle dynamic container elements (#17411)

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* re-enable recycling, esp for prefab override labels (#17343)

* re-enable recycling, esp for prefab override labels

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* addressed PR feedback

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* forcing immediate deletion to satisfy tests

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* try Qt's shared pointers instead

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

---------

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* fix element add for containers with DynamicElementType (#17441)

* handle dynamic container elements

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* not quite working dynamic add

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* container dynamic add works

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

---------

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* Handle ClassElement::FLG_POINTER in DPE-based Inspector (#17457)

* handle dynamic container elements

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* not quite working dynamic add

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* container dynamic add works

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* implemented baseclass container element addition

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* Update Code/Framework/AzFramework/AzFramework/DocumentPropertyEditor/ReflectionAdapter.cpp

Co-authored-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Signed-off-by: Alex Montgomery <alexmont@amazon.com>

---------

Signed-off-by: Alex Montgomery <alexmont@amazon.com>
Co-authored-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>

* Speed up DPE's color picker handling by 2-3x and disallow redundant updates (#17493)

* queue refresh in singleshot to keep it from happening more than once a
loop

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* doubled the color picker performance

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

---------

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* added recycling capability to several common handlers (#17512)

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

* fix unused assert

Signed-off-by: Alex Montgomery <alexmont@amazon.com>

---------

Signed-off-by: Alex Montgomery <alexmont@amazon.com>
Co-authored-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants