Tresjs/cientos

TransformControls throws error when switching active camera

franciscohermida opened this issue · 0 comments

Describe the bug

When setting up an experience that uses multiple cameras and you chance the active camera the TransformControls will throw an error.

What is expected is that it just continue to work when you change what camera is active.

Reproduction

https://play.tresjs.org/#eNqVV21T2zgQ/it7YW5C5xzHFOjduQml0F6nN9eWAe4T4YOwlUQgSx5JDjCZ/PdbSY4jm8DRKc1Yu8++aLW7Wi17l4rqj2UZLyraS3sjnSlWGtDUVCVwImbjSc/oSe9oIlhRSmVgCYpOI7gnJpt/nk5pZiIw8pzcwwqmShbQR1X9Bn45p6ekoIr8KPHHSFWD4uETjvVhI7iEE6JZdjEnubz/RsoILs6/nJxKLtVFSTIawXd5KQVFVsnErLFu5orS/vtAj93iKRELohvQsUHarR5mUrWxP9QNM6dSGCW5jlCUCD2VqliTnmpgVBiprZKJyKTQBgqq51TD2AZq92rJ8nQvglJqZpgU6dXgMEqi5HoVgWW9DVlItxyILGc/5NQy12/WRjTlGHqaf0NjX/PaWMP1LpzT6YbRCBpiWOYj3wJ4tiALNkOEFFsgXeMeUvP7XnM/wM048pYTAZBxSpQ7vBT6O3+8/XRyetiPLEe7A9YpGFVRRyG8nJMUpoRrT/AQPOjLx5Km3bywCFmZssJzWydH2k0WCzKbbEnbyYPsFR7gaOjTH5MdF4YWJSeG4gpglLOF+8BPv3tYDAqZU44F0g6HKxYLRKgsbSRhQXhFEYjBDbgA35tgNxJDL/KsCh/klpYLT9quAffkvFsvcR+YAo/c6rpnuZmne0ny63uYUzabm/QgScqHcAdB8SwGN0zkKDfjkx4EDoyeFnlKMsMWNfXfilmxJW4/3ZJfUZ2TaSc1V1ftwF5/iCvU1LZdu3hGlS4R29iEdF08aPkKa8n+XaMspmoTxsbUpDf8aZ1/RmD/Njq3bA15oeLR06YXclvNB9LMAZ9VXJA7OsjplFTcOCvhgaD7tjPgmWH3QhW2IQATdWNA6fSOPtb02MU03JujrtfIy4g2A1+FcJxxlt0FWd90oI0uH4+mCbWytfbuRD58obKgRj1isqiZtiHdiw8jWP/YwG45FWvuUkrxDUtTMcIhs1WO0jsHf9l/T0NeC3Uj1OnsoaHFgLkkae/wlzGIimPuh9BU3twiCNEhFTYd+KpNX3O6VIB4itX1VeT0YXeXvYHxETCMJozH406zxwYbyl2Hy9CNLTnxiSmb0FIQ/o+t93ZGJxHgdXRgA58yYahAlk2SvfhtJwk2Efbx9R2iaTnrZrn+Gg2DZopL14Dwc24Kjr33RuaP/pooMBOYSCHBbgxQkjx3zdov6xYFrmFZgu9f6/VqInawnXtF/4MFuCHZ3UzJSuQDl0Ap7CSJtYNqsGc6B3tRzw8Gg4KU8a2WAkckp35SM7CSUm/Q0sKpwjImvbkxpU6HwywXKI+3BVuoWFAzFGUxDOHH+/G7eA/Dpc3QkhE96blbq6XYDxs/o9tLoPrf42Sjvia3rZh7Su5KIl7je4M9PoiTxvE1MS6YlQl126nsNXot7hg1vkvQ39+oLsIw4IBYafrq+Abw470kPkSNWGL0IS7a0a1xmNuKYvt6tWIv8JJqBGKLLtgrlK6hdvMH8bshZzehSqsRU3OFOWk0TldTNutkZCaLknGqfrjrv52ZhHN5/7ejNWOWk5nT7G4L/VbjEGBdPsNkoWqB4d4cJdYoNZ79+eI7fcDvhokjUcXrw3mGeU615JW/WSzsBGsQ3Q5wztuvrsCw/C/15wfXi+pNtRw1OBE6atNmm1zzBNcdVw7vjuP0hShtdrYf7wcB3/pSCV5LwTvJv5yOJip4UwRPpfYbKQRhPrlGircRBm37Q8UK2P9+uC6VLO0rA0cAJuiZXY2Wlo0TdGf4+pDiiKUwlpa9OsJRvqVpab326I9OEs2POx5tZILt7O66e6q2yqaw65yKu/adrI1xx85L8JX73YzktfVgLHc6R5pLN/44cMPsrf4D7pDmiA==

Steps to reproduce

  1. Click a box to "select" it
  2. Change camera on the top dropdown

System Info

No response

Used Package Manager

pnpm

Code of Conduct