Skip to content

Commit

Permalink
Update DrawPolygonFromArrayNode.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
t3du authored Dec 18, 2024
1 parent 13e2c16 commit b0cc024
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 b0cc024

Please sign in to comment.