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 default behaviors not added properly to objects in functions #7206

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

4ian
Copy link
Owner

@4ian 4ian commented Nov 29, 2024

No description provided.

@4ian 4ian force-pushed the fix/functions-object-default-behaviors branch from cadcf34 to 6bd3a1f Compare November 29, 2024 09:53
expect(objectsContainer.getObject('MySpriteObject').getAllBehaviorNames().toJSArray()).toEqual(
['MyFirstBehavior', 'MySecondBehavior']
);
// Check that behaviors were also added AND that default behaviors are also present.
Copy link
Collaborator

@D8H D8H Nov 29, 2024

Choose a reason for hiding this comment

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

Maybe ObjectMetadata::AddDefaultBehavior can be used to simulate a change of capability in a custom object.

@4ian 4ian merged commit a4f7aa6 into master Nov 29, 2024
5 of 6 checks passed
@4ian 4ian deleted the fix/functions-object-default-behaviors branch November 29, 2024 13:13
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.

2 participants