Attaching an empty to its parent.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8364 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 13 years ago
parent 0a4beae534
commit 4cde46bee5
  1. 4
      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."); LOGGER.log(Level.INFO, "Importing empty.");
Node empty = new Node(name); Node empty = new Node(name);
empty.setLocalTransform(t); empty.setLocalTransform(t);
if(parent instanceof Node) {
((Node) parent).attachChild(empty);
}
empty.updateModelBound();
result = empty; result = empty;
break; break;
case OBJECT_TYPE_MESH: case OBJECT_TYPE_MESH:

Loading…
Cancel
Save