Browse Source

Fix missing flag "Target" for terrain

ShiroSmith 5 years ago
parent
commit
7e2a99d8e9
1 changed files with 1 additions and 1 deletions
  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(".");