From 4cde46bee5dd61a2eeecd8ed82adb96139cecd72 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Fri, 7 Oct 2011 13:39:17 +0000 Subject: [PATCH] Attaching an empty to its parent. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8364 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/objects/ObjectHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java index 0acad9fb1..71cd407cf 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java @@ -152,6 +152,10 @@ public class ObjectHelper extends AbstractBlenderHelper { LOGGER.log(Level.INFO, "Importing empty."); Node empty = new Node(name); empty.setLocalTransform(t); + if(parent instanceof Node) { + ((Node) parent).attachChild(empty); + } + empty.updateModelBound(); result = empty; break; case OBJECT_TYPE_MESH: