[tiled] r560 - in branches/bjorn: . tiled/io/xml
svn@biggeruniverse.com
svn at biggeruniverse.com
Tue Dec 6 17:55:12 PST 2005
Author: bjorn
Date: 2005-12-06 19:55:11 -0600 (Tue, 06 Dec 2005)
New Revision: 560
Modified:
branches/bjorn/CHANGES
branches/bjorn/tiled/io/xml/XMLMapTransformer.java
Log:
Merging visibility fix into my branch.
Modified: branches/bjorn/CHANGES
===================================================================
--- branches/bjorn/CHANGES 2005-11-18 15:51:27 UTC (rev 559)
+++ branches/bjorn/CHANGES 2005-12-07 01:55:11 UTC (rev 560)
@@ -7,6 +7,7 @@
+ Fixed memory problems when loading several maps with many tilesets in a row
* Fixed a bug when exporting a tileset with an external image
* Fixed two cases of hanging when using the fill tool
+* Fixed loading of layer visibility attribute
0.5.1 - June 15th, 2005
Modified: branches/bjorn/tiled/io/xml/XMLMapTransformer.java
===================================================================
--- branches/bjorn/tiled/io/xml/XMLMapTransformer.java 2005-11-18 15:51:27 UTC (rev 559)
+++ branches/bjorn/tiled/io/xml/XMLMapTransformer.java 2005-12-07 01:55:11 UTC (rev 560)
@@ -488,11 +488,13 @@
int offsetX = getAttribute(t, "x", 0);
int offsetY = getAttribute(t, "y", 0);
+ int visible = getAttribute(t, "visible", 1);
String opacity = getAttributeValue(t, "opacity");
ml.setOffset(offsetX, offsetY);
ml.setName(getAttributeValue(t, "name"));
-
+ ml.setVisible(visible == 1);
+
if (opacity != null) {
ml.setOpacity(Float.parseFloat(opacity));
}
More information about the tiled-commit
mailing list