浏览代码

Fix material library loading with prefab2.

clementlandrin 1 年之前
父节点
当前提交
2e1893d23e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hxd/fmt/hmd/Library.hx

+ 2 - 2
hxd/fmt/hmd/Library.hx

@@ -18,9 +18,9 @@ private class FormatMap {
 private class ContextShared extends hrt.prefab.ContextShared {
 	var customLoadTexture : String -> h3d.mat.Texture;
 
-	public function new(loadTexture : String -> h3d.mat.Texture, ?root2d: h2d.Object = null, ?root3d: h3d.scene.Object = null) {
+	public function new(loadTexture : String -> h3d.mat.Texture, ?root3d: h3d.scene.Object = null) {
 		#if prefab2
-		super(root2d, root3d);
+		super(root3d);
 		#else
 		super();
 		#end