Sfoglia il codice sorgente

Fix build of prefab package in !editor

trethaller 7 anni fa
parent
commit
4887277827
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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
 }