浏览代码

Fix missing flag "Target" for terrain

ShiroSmith 5 年之前
父节点
当前提交
7e2a99d8e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(".");