!2969 优化:切换材质时,材质锁定后,板材料信息不跟随修改

pull/2970/MERGE
黄诗津 2 months ago committed by ChenX
parent f5f28c2a8f
commit b01a30a6d1

@ -5,6 +5,9 @@ import { PhysicalMaterialRecord } from '../../DatabaseServices/PhysicalMaterialR
export function ApplyGoodInfo(en: Board, material: PhysicalMaterialRecord) export function ApplyGoodInfo(en: Board, material: PhysicalMaterialRecord)
{ {
//切换材质时,材质锁定后,材料信息不跟随修改
if (en.Material != material.Id && (en.Material?.Object as PhysicalMaterialRecord)?.IsMaterialLock)
return;
en.BoardProcessOption[EBoardKeyList.BrMat] = material.GoodsInfo.name; en.BoardProcessOption[EBoardKeyList.BrMat] = material.GoodsInfo.name;
en.BoardProcessOption[EBoardKeyList.Color] = material.GoodsInfo.color; en.BoardProcessOption[EBoardKeyList.Color] = material.GoodsInfo.color;
en.BoardProcessOption[EBoardKeyList.Mat] = material.GoodsInfo.material; en.BoardProcessOption[EBoardKeyList.Mat] = material.GoodsInfo.material;

Loading…
Cancel
Save