Przeglądaj źródła

RenderGraph: fix save condition

Yuxiao Mao 2 tygodni temu
rodzic
commit
17e72935a3
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
-		if ( !enable ) return;
+		if ( frame == null ) return;
 		var content = frame.dump();
 		sys.io.File.saveContent(outFile, haxe.Json.stringify(content, "\t"));
 	}