NetsBlox / Snap--Build-Your-Own-Blocks

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
3 stars 6 forks source link

Costumes passed as XML have an issue #1550

Open gsteinLTU opened 3 months ago

gsteinLTU commented 3 months ago

This causes an error:

myRole script pic (14)

Adding a tiny wait fixes it:

myRole script pic (15)

dragazo commented 3 months ago

Might be an issue of not waiting for the image load to complete here (or similar). This code is for messages, but there's probably a similar thing elsewhere for RPC results.

dragazo commented 3 months ago

Looks like that linked part of the code is used for both messages and RPC results. It should be as simple as making that async and returning a promise that resolves after the load event, but without static typing that's turning into an absolute pain to propagate out...