<div dir="ltr"><div dir="ltr"><div dir="ltr">Here's the file in question: <a href="http://www.web3d.org/x3d/stylesheets/java/src/org/web3d/x3d/jsail/fields/MFNode.java">www.web3d.org/x3d/stylesheets/java/src/org/web3d/x3d/jsail/fields/MFNode.java</a></div><div dir="ltr"><br></div><div>On sourceforge.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2024 at 8:03 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div> /**</div><div> * Get the current value of this MFNode by copying it into the valueDestination array, leaving the current object unchanged.</div><div> * @param valueDestination The array to be filled in with current field values.</div><div> */</div><div> /* @Override */</div><div> public void getValue(org.web3d.x3d.sai.Core.X3DNode[] valueDestination)</div><div> {</div><div> valueDestination = MFNode;</div><div> }</div><div><br></div><div>Comment says to do an array copy, but I don't currently know how to do that. There are problems if valueDestination is smaller than MFNode, but I guess one can allocate the array outside of the method.</div><div><br></div><div>I believe Java is pass by value, so the assignment is ineffective.</div><div><br></div><div>I can research this and come up with a solution. Meanwhile, I will be using getPrimitiveValue().</div><div><br></div><div><br></div><div>John</div></div></div></div>
</blockquote></div></div>