What are you trying to do, and what do you expect to happen?
Attempting to use onStrokeEnd() in my plugin's brush tool. I expect the method to be called after ending a brush stroke when the plugin's brush tool is selected.
What happens instead?
The BrushOptions.onStrokeEnd method is not called on selected brush tools. In Painter.stopPaintTool, a ReferenceError is thrown at painter.js:267 because the variables x, y, uv, event, and data are not in the current scope.
What are you trying to do, and what do you expect to happen?
Attempting to use
onStrokeEnd()
in my plugin's brush tool. I expect the method to be called after ending a brush stroke when the plugin's brush tool is selected.What happens instead?
The
BrushOptions.onStrokeEnd
method is not called on selected brush tools. InPainter.stopPaintTool
, aReferenceError
is thrown at painter.js:267 because the variablesx
,y
,uv
,event
, anddata
are not in the current scope.Model format in which the issue occurs
Any format
Blockbench variant
Program
Blockbench version
4.10.3
Operating System
Windows 11
Installed Blockbench plugins
PBR Preview