Explorar o código

RenderGraph: fix save condition

Yuxiao Mao hai 1 mes
pai
achega
17e72935a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/impl/RenderGraph.hx

+ 1 - 1
h3d/impl/RenderGraph.hx

@@ -46,7 +46,7 @@ class RenderGraph {
 	}
 	}
 
 
 	public static function save(outFile: String) {
 	public static function save(outFile: String) {
-		if ( !enable ) return;
+		if ( frame == null ) return;
 		var content = frame.dump();
 		var content = frame.dump();
 		sys.io.File.saveContent(outFile, haxe.Json.stringify(content, "\t"));
 		sys.io.File.saveContent(outFile, haxe.Json.stringify(content, "\t"));
 	}
 	}