graphics-smooth icon indicating copy to clipboard operation
graphics-smooth copied to clipboard

This plugin does not appear to support pixi devtool

Open lykl opened this issue 3 years ago • 3 comments

When I use it, devtool throws an error on the console, at which point any action on pixi is invalid, and when I close devtool, everything works fine, which makes debugging difficult. The devtool version: 0.9.6

lykl avatar Dec 31 '22 15:12 lykl

Here is the error:

pixi.inspector.bundle.js:2 Uncaught TypeError: Function has non-object prototype 'undefined' in instanceof check
    at [Symbol.hasInstance] (<anonymous>)

lykl avatar Dec 31 '22 15:12 lykl

In order to support devtool you need to register SmoothGraphics like this:

PIXI.SmoothGraphics = SmoothGraphics;

MuTsunTsai avatar Mar 10 '23 04:03 MuTsunTsai

Ah, actually this issue has been resolved in the latest version of the extension. Update the extension will solve it.

MuTsunTsai avatar Mar 10 '23 09:03 MuTsunTsai