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

[FIX] Image element crash on assigning new layer composition to scene #3223

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Jun 9, 2021

When the Editor disconnects and then reconnects, I suspect that the scene's layer composition is reassigned (maybe in Application#_parseApplicationProperties). This triggers the onLayersChanged handler for an image element in the scene. The code tries to access the model incorrectly. This PR specifies the correct property for the model.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@willeastcott willeastcott added bug area: ui UI related issue labels Jun 9, 2021
@willeastcott willeastcott requested a review from a team June 9, 2021 22:39
@willeastcott willeastcott self-assigned this Jun 9, 2021
Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

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

it seems to match other parts of the file, looks good.

@willeastcott willeastcott merged commit 7ca41eb into master Jun 10, 2021
@willeastcott willeastcott deleted the imageelement-change-layers branch June 10, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui UI related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants