Procházet zdrojové kódy

Fix build of prefab package in !editor

trethaller před 7 roky
rodič
revize
4887277827
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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
 }