@gamelearn/arcade-components 3.12.7 → 3.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29743,7 +29743,7 @@ function Panel({ character: l, ttsStarted: e, active: n }) {
29743
29743
  const _ = document.querySelectorAll(".conversation--character__item")[l.slot];
29744
29744
  if (_) {
29745
29745
  const w = _.getBoundingClientRect(), C = _.parentNode.getBoundingClientRect(), [D, P] = [w.right - w.left, w.bottom - w.top];
29746
- if (t.current.aspect = D / P, t.current.updateProjectionMatrix(), o) {
29746
+ if (t.current.aspect = D / P, t.current.updateProjectionMatrix(), o && f.current) {
29747
29747
  box.setFromObject(f.current), box.getSize(size);
29748
29748
  const F = f.current.getObjectByName("Head_M", !0);
29749
29749
  F ? (F.getWorldPosition(worldPos), t.current.lookAt(worldPos)) : t.current.position.setY(size.y - 1.5 * 1.3), t.current.zoom = 1.5;