fix webGL issue that wasn't webGL issue
chromium bug causing random js variables to become NaN but only as viewed by a certain js source file, not globally not sure how to even report this bug upstream
This commit is contained in:
@@ -1760,7 +1760,7 @@ PlaneObject.prototype.updateMarker = function(moved) {
|
||||
|
||||
this.setMarkerRgb();
|
||||
const iconRotation = this.shape.noRotate ? 0 : this.rotation;
|
||||
this.glMarker.set('rotation', iconRotation * Math.PI / 180.0 + mapOrientation);
|
||||
this.glMarker.set('rotation', iconRotation * Math.PI / 180.0 + g.mapOrientation);
|
||||
this.glMarker.set('scale', this.scale * Math.max(this.shape.w, this.shape.h) / glIconSize);
|
||||
this.glMarker.set('sx', getSpriteX(this.shape) * glIconSize);
|
||||
this.glMarker.set('sy', getSpriteY(this.shape) * glIconSize);
|
||||
|
||||
Reference in New Issue
Block a user