Skip to content

Commit

Permalink
Merge pull request #3104 from t3du/fixDrawPolygon
Browse files Browse the repository at this point in the history
Fix DrawPolygonFromArrayNode
  • Loading branch information
luboslenco authored Dec 19, 2024
2 parents 13e2c16 + b0cc024 commit 048e415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DrawPolygonFromArrayNode extends LogicNode {

var vertArr: Dynamic = inputs[6].get();

if (vertices == null) {
if (vertices == null || vertices.length != vertArr.length) {
// Preallocate
vertices = [];
vertices.resize(vertArr.length);
Expand Down

0 comments on commit 048e415

Please sign in to comment.