From 05c171e07ee3dbe79a8eaa016c4e4b98a72b45a1 Mon Sep 17 00:00:00 2001 From: Stephen Date: Sun, 23 Mar 2014 13:34:49 -0700 Subject: [PATCH] fix the fix for issue #635 as discussed at http://hub.jmonkeyengine.org/forum/topic/proposed-fix-for-issue-635/page/2 and http://hub.jmonkeyengine.org/forum/topic/wirebox-error --- .../src/main/java/com/jme3/scene/debug/WireBox.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/debug/WireBox.java b/jme3-core/src/main/java/com/jme3/scene/debug/WireBox.java index 947d2c0a5..5d0577c5a 100644 --- a/jme3-core/src/main/java/com/jme3/scene/debug/WireBox.java +++ b/jme3-core/src/main/java/com/jme3/scene/debug/WireBox.java @@ -102,13 +102,21 @@ public class WireBox extends Mesh { updateBound(); } + /** + * Old method retained for compatibility: use makeGeometry instead. + */ + @Deprecated + public void fromBoundingBox(BoundingBox bbox) { + updatePositions(bbox.getXExtent(), bbox.getYExtent(), bbox.getZExtent()); + } + /** * Create a geometry suitable for visualizing the specified bounding box. * * @param bbox the bounding box (not null) * @return a new Geometry instance in world space */ - public static Geometry fromBoundingBox(BoundingBox bbox) { + public static Geometry makeGeometry(BoundingBox bbox) { float xExtent = bbox.getXExtent(); float yExtent = bbox.getYExtent(); float zExtent = bbox.getZExtent(); @@ -120,5 +128,4 @@ public class WireBox extends Mesh { return result; } - } \ No newline at end of file