-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
avm2: Fix EditText and Graphic linkage #18770
avm2: Fix EditText and Graphic linkage #18770
Conversation
d747066
to
042aad1
Compare
@@ -4554,7 +4557,9 @@ impl<'gc, 'a> MovieClip<'gc> { | |||
.library | |||
.library_for_movie_mut(movie.clone()); | |||
|
|||
match library.character_by_id(id) { | |||
let character = library.character_by_id(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be duplicated (here and in lookup_class_for_character
) to satisfy the borrow checker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing Character
should just become a Copy
, if/when all its variants become Gc
wrappers - that should solve it, right?
(not in this PR, I can try refactoring it as a followup)
@@ -4554,7 +4557,9 @@ impl<'gc, 'a> MovieClip<'gc> { | |||
.library | |||
.library_for_movie_mut(movie.clone()); | |||
|
|||
match library.character_by_id(id) { | |||
let character = library.character_by_id(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing Character
should just become a Copy
, if/when all its variants become Gc
wrappers - that should solve it, right?
(not in this PR, I can try refactoring it as a followup)
Oh, and I think the first commit should move to the end, since you said it's technically broken without the refactor, right? |
(Could someone add a |
1ec0562
to
9270fc6
Compare
Also ensure that any ClassObject linked to a DO extends `flash.display.DisplayObject`
This removes the `flash_events_internal` namespace from CommonNamespaces
9270fc6
to
5a6880d
Compare
No description provided.