Skip to content
New issue

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

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

Already on GitHub? # to your account

ArrayInput linking fix #308

Merged
merged 2 commits into from
Mar 14, 2023
Merged

ArrayInput linking fix #308

merged 2 commits into from
Mar 14, 2023

Conversation

ellthompson
Copy link
Contributor

@ellthompson ellthompson commented Mar 14, 2023

The ArrayInput does not currently link and unlink the elements it contains. The linking of elements is currently left until the ArrayInput value is set, however this linking is skipped when the value hasn't changed. It should not be required to update the input value in order to link to another set of observers. This PR addresses this by explicitly linking all ArrayInput elements when it has been linked itself.

Fixes playcanvas/editor#1002

@ellthompson ellthompson added the bug Something isn't working label Mar 14, 2023
@ellthompson ellthompson requested a review from a team March 14, 2023 14:19
@ellthompson ellthompson self-assigned this Mar 14, 2023
Copy link
Collaborator

@yaustar yaustar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ellthompson ellthompson merged commit 2992e4b into main Mar 14, 2023
@ellthompson ellthompson deleted the array-input-link-fix branch March 14, 2023 14:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing materials on Entities that share materials, changes the wrong Entity
3 participants