HeapsIO / heaps

Heaps : Haxe Game Framework
http://heaps.io
MIT License
3.19k stars 337 forks source link

Clone color vector in material clone function #1207

Closed rcstuber closed 5 months ago

rcstuber commented 5 months ago

Cloning a material currently keeps a shared reference of color (Vector4). This can lead to unexpected results, when for instance calling setColor() on a cloned material all objects change to the same color.

rcstuber commented 5 months ago

Thanks!