From c74baed91dc6a1bd08f2f5dd55f21796ac9832b6 Mon Sep 17 00:00:00 2001 From: bekzii <175403298+zeesworth@users.noreply.github.com> Date: Fri, 2 Aug 2024 04:35:58 +0100 Subject: [PATCH] Change 'smooth' function to match 'noSmooth' function --- src/core/shape/attributes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/shape/attributes.js b/src/core/shape/attributes.js index 61e9b9e8a0..b88ab13afd 100644 --- a/src/core/shape/attributes.js +++ b/src/core/shape/attributes.js @@ -375,11 +375,12 @@ p5.prototype.rectMode = function(m) { * */ p5.prototype.smooth = function() { - this.setAttributes('antialias', true); if (!this._renderer.isP3D) { if ('imageSmoothingEnabled' in this.drawingContext) { this.drawingContext.imageSmoothingEnabled = true; } + } else { + this.setAttributes('antialias', true); } return this; };