Resize the children[] array to be in line with childCount
()
| 1964 | |
| 1965 | /** Resize the children[] array to be in line with childCount */ |
| 1966 | protected void crop() { |
| 1967 | // https://github.com/processing/processing/issues/3347 |
| 1968 | if (children.length != childCount) { |
| 1969 | children = (PShape[]) PApplet.subset(children, 0, childCount); |
| 1970 | } |
| 1971 | } |
| 1972 | |
| 1973 | |
| 1974 | public PShape[] getChildren() { |
no test coverage detected