Selaa lähdekoodia

env : don't use .dds extension for env data as it's often mistaken and selected instead of original image

Nicolas Cannasse 4 vuotta sitten
vanhempi
commit
43a4f4d38f
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      hide/view/Image.hx
  2. 1 1
      hrt/prefab/l3d/Environment.hx

+ 1 - 1
hide/view/Image.hx

@@ -107,6 +107,6 @@ class Image extends FileView {
 		bmp.y = -Std.int(bmp.tile.height * bmp.scaleY) >> 1;
 		bmp.y = -Std.int(bmp.tile.height * bmp.scaleY) >> 1;
 	}
 	}
 
 
-	static var _ = FileTree.registerExtension(Image,hide.Ide.IMG_EXTS,{ icon : "picture-o" });
+	static var _ = FileTree.registerExtension(Image,hide.Ide.IMG_EXTS.concat(["envd","envs"]),{ icon : "picture-o" });
 
 
 }
 }

+ 1 - 1
hrt/prefab/l3d/Environment.hx

@@ -38,7 +38,7 @@ class Environment extends Object3D {
 		var path = new haxe.io.Path(sourceMapPath);
 		var path = new haxe.io.Path(sourceMapPath);
 		if( configName != null )
 		if( configName != null )
 			path.file += "-" + configName;
 			path.file += "-" + configName;
-		path.ext = diffuse ? "envd.dds" : "envs.dds";
+		path.ext = diffuse ? "envd" : "envs";
 		return path.toString();
 		return path.toString();
 	}
 	}