[Committed] lockBranch() has to be last (?) in lock()

hey there,



just a little something. according to the javadoc of Spatial.lockBranch():



"This should be called after any other lock call to ensure they are able to update any bounds or vectors they might need to update."



but in Spatial.lock() its in second place. Heres the tiny patch:



Index: src/com/jme/scene/Spatial.java
===================================================================
--- src/com/jme/scene/Spatial.java   (revision 4806)
+++ src/com/jme/scene/Spatial.java   (working copy)
@@ -1405,16 +1405,15 @@
      */
     public void lock(Renderer r) {
         lockBounds();
-        lockBranch();
         lockTransforms();
         lockMeshes(r);
         lockShadows();
+        lockBranch();
     }
 
     /**
-     * Convenience function for locking all aspects of a Spatial. For lockMeshes
-     * it calls:
-     * <code>lockMeshes(DisplaySystem.getDisplaySystem().getRenderer());</code>
+     * Convenience function for locking all aspects of a Spatial. It calls:
+     * <code>lock(DisplaySystem.getDisplaySystem().getRenderer());</code>
      *
      * @see #lockBounds()
      * @see #lockTransforms()
@@ -1422,11 +1421,7 @@
      * @see #lockShadows()
      */
     public void lock() {
-        lockBounds();
-        lockBranch();
-        lockTransforms();
-        lockMeshes();
-        lockShadows();
+        lock(DisplaySystem.getDisplaySystem().getRenderer());
     }
 
     /**