Update lightmapper.js for negative scales
Update lightmapper.js for negative scales

If a model has a negative scale (say, for mirroring it) the lightmap size calculation returns 1 instead of a real resolution.

This kills the lightmap.

I updated totalArea to always be positive by applying Math.abs() the scale prior to its calculation, because negatively scaled objects need the same size lightmap as their positively scaled brethren.
sereepap2029/playcanvas,MicroWorldwide/PlayCanvas,guycalledfrank/engine,guycalledfrank/engine,playcanvas/engine,sereepap2029/playcanvas,H1Gdev/engine,aidinabedi/playcanvas-engine,MicroWorldwide/PlayCanvas,playcanvas/engine,aidinabedi/playcanvas-engine,H1Gdev/engine,sereepap2029/playcanvas