HeapsIO / heaps

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

Clone color vector in material clone function #1207

Closed rcstuber closed 7 months ago

rcstuber commented 7 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 7 months ago

Thanks!