Skip to content

[BUGFIX] Fix Scripted Class Extending not working with multiple scripted layers#401

Open
TechnikTil wants to merge 1 commit intoFunkinCrew:experimentalfrom
TechnikTil:bugfix/scripted-class-layer-properly
Open

[BUGFIX] Fix Scripted Class Extending not working with multiple scripted layers#401
TechnikTil wants to merge 1 commit intoFunkinCrew:experimentalfrom
TechnikTil:bugfix/scripted-class-layer-properly

Conversation

@TechnikTil
Copy link
Copy Markdown

@TechnikTil TechnikTil commented May 1, 2026

What does this PR do?

There is currently a bug with HScriptedClassMacro where after multiple layers of scripted class extending, it would not detect any layers except the first two. This PR fixes that by making the super lookup recursive.

More Info about the Bug

By applying this patch, the openfl_hscript_class example will include two new stages in mod8. "Even Less Basic Stage" should not work unless this PR is the base. This is due to it extending "Less Basic Stage", which extends "Basic Stage".

@TechnikTil TechnikTil force-pushed the bugfix/scripted-class-layer-properly branch from 5ce31f2 to 40a748d Compare May 1, 2026 19:11
…pted classes

Signed-off-by: TechnikTil <techniktil@tilnotdrip.org>
@TechnikTil TechnikTil force-pushed the bugfix/scripted-class-layer-properly branch from 40a748d to 1742f07 Compare May 1, 2026 19:12
@TechnikTil
Copy link
Copy Markdown
Author

Updated the code to use less lines

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.

1 participant