Skip to content

Commit 2639ff5

Browse files
authored
Merge pull request #5905 from inaridarkfox4231/inaridarkfox4231-patch-2
change the behavior of the quad function.
2 parents 57c731b + da9a3dc commit 2639ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/shape/2d_primitives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ p5.prototype.quad = function(...args) {
532532
p5._validateParameters('quad', args);
533533

534534
if (this._renderer._doStroke || this._renderer._doFill) {
535-
if (this._renderer.isP3D && args.length <= 12) {
535+
if (this._renderer.isP3D && args.length < 12) {
536536
// if 3D and we weren't passed 12 args, assume Z is 0
537537
this._renderer.quad.call(
538538
this._renderer,

0 commit comments

Comments
 (0)