p5js-block icon indicating copy to clipboard operation
p5js-block copied to clipboard

Preload method breaks the block

Open johnnyawesome opened this issue 5 years ago • 1 comments

Hello Mark

First, let me thank your for your AWESOME P5JS Plugin! I use it all the time in my blog!

The bug

The preload method apparently breaks the block. It's there, but it's very flat (No Y-Axis).

I used it for this project where I (pre)load a 3D-Model.

I realize that this is not a function many people use, bit I thought I'd report it anyways.

How to reproduce

Create a P5 Block and put a preload method in it. Maybe load something, if needed.

Workaround

I also have found a workaround:

I was able to put loadModel inside setup(). But this violates P5JS recommendations: "loadModel() should be placed inside of preload()."

Info

This is my first bugreport ever on GitHub, I hope it's what you expected and I haven't missed anything.

Please get back to me if you need further information.

Thank you and have a nice day!

Best regards, Johnny

johnnyawesome avatar Feb 02 '20 18:02 johnnyawesome

Really good bug report, @johnnyawesome. Thank you! I'll try to find some time to look into this in the near future.

mapk avatar Feb 03 '20 20:02 mapk