You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a blankLayer was created, fill produces a Uncaught TypeError: Cannot set property 'index' of null. Looks like fill can't handle that blankLayers are filled with 'null' values. That's kinda strange and probably not how it's supposed to be. Filling a blank layer has to be the most useful application for fill 😃
… objects with an index of -1 which can be replaced and updated like any other tile.
Tilemap.fill would throw an error if called on a blank tilemap full of null values (thanks @DrHackenstein, fix#761)
If a blankLayer was created, fill produces a Uncaught TypeError: Cannot set property 'index' of null. Looks like fill can't handle that blankLayers are filled with 'null' values. That's kinda strange and probably not how it's supposed to be. Filling a blank layer has to be the most useful application for fill 😃
The error was also mentioned in these threads:
http://www.html5gamedevs.com/topic/5256-replacing-tile-in-tilemap-cant-read-index-of-null/
http://www.html5gamedevs.com/topic/3942-cant-fill-my-tilemap/
As far as I can tell putTile is fixed and can be used on blank layers.
The text was updated successfully, but these errors were encountered: