|
|
|
@ -219,7 +219,7 @@ export function Entitys2Data(ents: Iterable<Entity>): Data
|
|
|
|
|
if (idIndex !== 0)
|
|
|
|
|
{
|
|
|
|
|
let id = app.Database.GetObjectId(idIndex);
|
|
|
|
|
if (id.Object)
|
|
|
|
|
if (id?.Object)
|
|
|
|
|
{
|
|
|
|
|
let mtl = id.Object as PhysicalMaterialRecord;
|
|
|
|
|
d.Materials.push(ConverMaterialData(mtl));
|
|
|
|
|