Skip to content

Commit 038281b

Browse files
committed
setShape inheritance hack removed
1 parent 74d8d71 commit 038281b

2 files changed

Lines changed: 0 additions & 100 deletions

File tree

src/nub/core/Node.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,6 @@ protected Node(Node reference, Vector position, Quaternion orientation, float ma
393393
_lastRenderedSet = new HashSet<Graph>();
394394
_keyframesMask = Node.AXES;
395395
setInteraction(this::interact);
396-
// hack
397-
Method method = null;
398-
try {
399-
method = this.getClass().getMethod("graphics", processing.core.PGraphics.class);
400-
} catch(NoSuchMethodException e) {
401-
System.out.println(e); //print exception object
402-
}
403-
if (!method.getDeclaringClass().equals(Node.class)) {
404-
setShape(this::graphics);
405-
}
406396
_translationInertia = new Inertia() {
407397
@Override
408398
void _action() {
@@ -3041,15 +3031,6 @@ public void interact(Object[] gesture) {
30413031
System.out.println("Warning: Node.interact() missed implementation");
30423032
}
30433033

3044-
/**
3045-
* Override this method to set an immediate mode graphics procedure on the Processing
3046-
* {@code PGraphics} or use {@link #setShape(Consumer)} instead.
3047-
*
3048-
* @see #setShape(Consumer)
3049-
*/
3050-
public void graphics(processing.core.PGraphics pGraphics) {
3051-
}
3052-
30533034
protected void _updateHUD() {
30543035
if ((_rmrHUD == null && _imrHUD == null) || !isHintEnabled(HUD)) {
30553036
Graph._huds.remove(this);

testing/src/intellij/Basics.java

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)