Resize the children[] array to be in line with childCount
()
| 2054 | |
| 2055 | /** Resize the children[] array to be in line with childCount */ |
| 2056 | protected void crop() { |
| 2057 | // https://github.com/processing/processing/issues/3347 |
| 2058 | if (children.length != childCount) { |
| 2059 | children = (PShape[]) PApplet.subset(children, 0, childCount); |
| 2060 | } |
| 2061 | } |
| 2062 | |
| 2063 | |
| 2064 | public PShape[] getChildren() { |
no test coverage detected