|
|
@ -296,6 +296,8 @@ function ParseCabNameMap(data: KJL_AssemblyModel[]): Map<string, string>
|
|
|
|
async function ParseMaterialMap(config: { [key: string]: KJLImportConfigOption; })
|
|
|
|
async function ParseMaterialMap(config: { [key: string]: KJLImportConfigOption; })
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let map = new Map<string, KJL_Material>();
|
|
|
|
let map = new Map<string, KJL_Material>();
|
|
|
|
|
|
|
|
if (!config) return map;
|
|
|
|
|
|
|
|
|
|
|
|
for (const mtl of config.option.materials)
|
|
|
|
for (const mtl of config.option.materials)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let material_id = mtl.id;
|
|
|
|
let material_id = mtl.id;
|
|
|
@ -563,7 +565,7 @@ async function ParseModel(model: KJL_ParamModel, roomName: string, gName: string
|
|
|
|
if (parentMatrix)
|
|
|
|
if (parentMatrix)
|
|
|
|
mtx.premultiply(parentMatrix);
|
|
|
|
mtx.premultiply(parentMatrix);
|
|
|
|
|
|
|
|
|
|
|
|
if (config.option.isImportVirtualModel)
|
|
|
|
if (!config || config.option.isImportVirtualModel)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let hmodel = model as KJL_ParamModel_Hardware;
|
|
|
|
let hmodel = model as KJL_ParamModel_Hardware;
|
|
|
|
let hw = CreateHardware(hmodel, roomName, gName);
|
|
|
|
let hw = CreateHardware(hmodel, roomName, gName);
|
|
|
|