Explorar o código

Fix missing flag "Target" for terrain

ShiroSmith %!s(int64=5) %!d(string=hai) anos
pai
achega
7e2a99d8e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hrt/prefab/terrain/Terrain.hx

+ 1 - 1
hrt/prefab/terrain/Terrain.hx

@@ -128,7 +128,7 @@ class Terrain extends Object3D {
 			return;
 
 		// Avoid texture alloc for unpacking
-		var tmpPackedWeightTexture = new h3d.mat.Texture(terrain.weightMapResolution, terrain.weightMapResolution);
+		var tmpPackedWeightTexture = new h3d.mat.Texture(terrain.weightMapResolution, terrain.weightMapResolution, [Target]);
 
 		for( res in resDir ) {
 			var fileInfos = res.name.split(".");