opens a MeshBuilder to get it ready for accepting geometry. The first call to open() will clear out all the geometry that was previously in this container. Nested calls to open() without a corresponding call to close() will append. Make sure that there's a matching close() for every open() (i.e. lea
()
| 63 | if (openCount == 0) { |
| 64 | doOpen(); |
| 65 | target.attach("__forceClose__" + System.identityHashCode(this), new Scene.Perform() { |
| 66 | @Override |
| 67 | public boolean perform(int pass) { |
| 68 | if (openCount > 0) { |
| 69 | openCount = 0; |
| 70 | doClose(); |
| 71 | } |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public int[] getPasses() { |
| 77 | return new int[]{-1}; |
| 78 | } |
| 79 | }); |
| 80 | } |
| 81 | openCount++; |
| 82 | return this; |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public boolean asMap_isProperty(String p) { |
| 87 | if (knownNonProperties == null) knownNonProperties = computeKnownNonProperties(); |
| 88 | |
| 89 | return !knownNonProperties.contains(p) && target.asMap_isProperty(p); |
no test coverage detected