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

Graphics inside a Container bugs out since v3.60 #6093

Closed
Antriel opened this issue Apr 28, 2022 · 1 comment
Closed

Graphics inside a Container bugs out since v3.60 #6093

Antriel opened this issue Apr 28, 2022 · 1 comment

Comments

@Antriel
Copy link
Contributor

Antriel commented Apr 28, 2022

Version

v3.60.0-beta.6

Description

ctx.save is not a function in GraphicsCanvasRenderer.

Happens in Canvas mode when Graphics object is inside a container. Worked in v3.55.

Example Test Code

var config = {
    type: Phaser.CANVAS,
    scene: {
        create: create
    }
};

var game = new Phaser.Game(config);

function create () {
    var graphics = this.add.graphics();
    graphics.strokeCircle(0, 0, 60);
    var container = this.add.container(0, 0, [ graphics ]);
}
Antriel added a commit to Aurory-Game/nefties-defenders that referenced this issue Apr 28, 2022
@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

2 participants