Can not clone a striped Object3D

Started by kiffa, October 17, 2013, 03:34:03 AM

Previous topic - Next topic

kiffa


Object3D src;
src.build();
src.strip();
Object3D obj = src.cloneObject(); // will throw a NullPointerException


Should this behavior be legal?

EgonOlsen

No, that's not supposed to work, but it should actually throw a proper exception and not a null pointer. I'll look into it. However, if you want to strip objects that are sharing meshes, do a object.getMesh().setLocked(true); before. That should do the trick.