defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Tilesource and atlas with the same name causes bugs (DEF-2330) #697

Open britzl opened 7 years ago

britzl commented 7 years ago

Expected behaviour

I should be able to have a tilesource and atlas with the same base name. Or the editor should detect it and prevent me from giving them the same name.

Actual behaviour

The generated texture of the tilesource and atlas overwrite each other. This causes some really weird bugs with missing textures.

Steps to reproduce

Create a tilesource named foo.tilesource Create an atlas named foo.atlas Create a tilemap using foo.tilesource Create gameobject A and attach the tilemap Create gameobject B and attach a sprite and assign it an image from the atlas Build and run. Notice that either the tilemap isn't rendered Remove gameobject A or B Build again. Notice an error message similar to WARNING:RESOURCE: Resource not found: /_generated_e27b97ae.texturec


Defold version1.2.102
Defold shaa0b6a84460b815c07ecdbfdf6318e1c5d624d424
Build time2017-04-18T09:27:56.309759
OS nameMac OS X
OS version10.12.4
OS archx86_64
Java version1.8.0_102-b14
AGulev commented 5 years ago
lmntn commented 4 years ago

with this issue I can’t nicely organize naming in the project :(