开发:修复单线程testyh2的模拟绘制错误

pull/2649/MERGE
ChenX 6 months ago
parent 87b7379013
commit e8f6cf928c

@ -1,6 +1,8 @@
import React from "react";
import { Command } from "../../Editor/CommandMachine";
import { AppToaster } from "../../UI/Components/Toaster";
import { NestFiler } from "../Common/Filer";
import { Individual } from "../Core/Individual";
import { OptimizeMachine } from "../Core/OptimizeMachine";
import { InitParts, Place } from "./PlaceUtil";
@ -17,6 +19,12 @@ export class Command_TestYH2 implements Command
m.PutParts(db.Parts);
m.callBack = async (inv) =>
{
let f = new NestFiler();
inv.WriteFile(f);
inv = new Individual(db.Parts);
inv.ReadFile(f);
Place(inv, db.Parts, db.Bin);
};

Loading…
Cancel
Save