!2814 修复:画门板使用多个不同门板模块时,门板模块丢失问题

pull/2815/MERGE
林三 4 months ago committed by ChenX
parent 8abe9df911
commit 18dc2c70b1

@ -93,7 +93,8 @@ export class DrawDoorTool
{
if (info.tempInfo.hasOwnProperty(tempKey) && info.tempInfo[tempKey].id)
{
tempIds.set(tempKey, info.tempInfo[tempKey].id);
//使用 id -> "tempKey" 防止tempKey相同 id被覆盖
tempIds.set(info.tempInfo[tempKey].id, tempKey);
}
}
@ -103,7 +104,7 @@ export class DrawDoorTool
this.surroundOption = spaceParse.Boards.length > 0 ? spaceParse.Boards[0].BoardProcessOption : undefined;
for (let [tempKey, id] of tempIds)
for (let [id, tempKey] of tempIds)
{
let temp = await GetOnlineTemplate(id);
if (!temp) continue;

Loading…
Cancel
Save