Adjust model instance rendering logic in ViewportHost
This commit is contained in:
@@ -6073,7 +6073,7 @@ export class ViewportHost {
|
|||||||
modelInstance
|
modelInstance
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
const displayedModelInstances =
|
return (
|
||||||
runtimeModelInstances?.map((runtimeModelInstance) => {
|
runtimeModelInstances?.map((runtimeModelInstance) => {
|
||||||
const authoredModelInstance = authoredModelInstancesById.get(
|
const authoredModelInstance = authoredModelInstancesById.get(
|
||||||
runtimeModelInstance.instanceId
|
runtimeModelInstance.instanceId
|
||||||
@@ -6095,7 +6095,8 @@ export class ViewportHost {
|
|||||||
animationClipName: runtimeModelInstance.animationClipName,
|
animationClipName: runtimeModelInstance.animationClipName,
|
||||||
animationAutoplay: runtimeModelInstance.animationAutoplay
|
animationAutoplay: runtimeModelInstance.animationAutoplay
|
||||||
});
|
});
|
||||||
}) ?? getModelInstances(document.modelInstances);
|
}) ?? getModelInstances(document.modelInstances)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDisplayedModelInstanceById(
|
private getDisplayedModelInstanceById(
|
||||||
|
|||||||
Reference in New Issue
Block a user