cherab / core

The core source repository for the Cherab project.
https://www.cherab.info
Other
44 stars 24 forks source link

Laser material transformation cache not updated properly #420

Closed Mateasek closed 9 months ago

Mateasek commented 10 months ago

The caches of affine transforms in the material of laser segments are not updated properly after change of laser transform.

I will try to describe what I think caused the problem, to have a note in case I end up doing the same mistake. I don't expect anyone to verify.

Intended behaviour

Possible source or problem

I hope the explanation is understandable. This can be fixed by dropping and recreating the laser primitives and materials instead of just recreating the materials.

I will upload a fix soon.

vsnever commented 9 months ago

Fixed in #421.