raspberrypi / scratch

Scratch releases
79 stars 21 forks source link

20160824, pen down and save project #209

Closed heppg closed 8 years ago

heppg commented 8 years ago

... draws funny lines on stage. In the sample picture, there are two sprites on stage. Both have pen down, pen size set to quite large. Then project is saved and the sprites draw a line. error_82

timrowledge commented 8 years ago

Ah, I see the problem.

When changing the stage co-ordinate mapping from {insert rant about ridiculous ad hoc value mangling here} to a proper transform morph wrapper, that caused the pen position updating in #writeScratchProject to mis-behave. We simply don't need to move the unwrapped stage position to 0@0 - the reload & re-wrap code will handle any position.

timrowledge commented 8 years ago

Oddly, the pen down state is carefully not saved with the project - checked this with the original to be sure. Can't think why that choice was made.

Fixed in NuScratch-tpr.371