浏览代码

Fix build of prefab package in !editor

trethaller 7 年之前
父节点
当前提交
4887277827
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hide/prefab/ContextShared.hx

+ 2 - 2
hide/prefab/ContextShared.hx

@@ -1,7 +1,7 @@
 package hide.prefab;
 
 class ContextShared extends hxd.prefab.ContextShared {
-
+	#if editor
 	var scene : hide.comp.Scene;
 
 	public function new(scene) {
@@ -40,5 +40,5 @@ class ContextShared extends hxd.prefab.ContextShared {
 		path.ext = "bake";
 		sys.io.File.saveBytes(hide.Ide.inst.getPath(path.toString()), bytes);
 	}
-
+	#end
 }