Fix clone to account for the update list added for update
optimization. The updateList was cloned also and needs to be cleared out and the update flag reset as if freshly initialized. Thanks for lightbringer for pointing out the problem and solution.
This commit is contained in:
		
							parent
							
								
									c6768dc724
								
							
						
					
					
						commit
						8cfe537625
					
				| @ -687,6 +687,11 @@ public class Node extends Spatial { | ||||
| //            childClone.parent = nodeClone; | ||||
| //            nodeClone.children.add(childClone); | ||||
| //        } | ||||
| 
 | ||||
|         // Reset the fields of the clone that should be in a 'new' state. | ||||
|         nodeClone.updateList = null; | ||||
|         nodeClone.updateListValid = false; // safe because parent is nulled out in super.clone() | ||||
|              | ||||
|         return nodeClone; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user