From b6efb029509980fd08ca4ebe28c89cf8d79fa46c Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 03 Sep 2019 21:25:24 -0400 Subject: [PATCH] deepCopyNode --- RandomNode.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/RandomNode.java b/RandomNode.java index daf6231..5551439 100644 --- a/RandomNode.java +++ b/RandomNode.java @@ -20,6 +20,15 @@ return comp; } + protected void deepCopyNode(Object3D other) + { + super.deepCopyNode(other); + RandomNode bp = (RandomNode)other; + bp.rndIndex = rndIndex; + bp.damp = damp; + bp.firstchoice = firstchoice; + } + // public int Size() // { // return 1; @@ -43,6 +52,18 @@ return super.size(); } + void addChild(Object3D child) + { + super.addChild(child); + + this.rndIndex = Size() - 1; + + if (this.editWindow != null) + { + ((RandomEditor)this.objectUI).refreshContents(); + } + } + int rndIndex = -1; static int globalseed = 0; -- Gitblit v1.6.2