cloneObject does not copy scale parameter

Started by Darai, August 07, 2014, 10:51:55 AM

Previous topic - Next topic

Darai

Hi guys,

i found this strange behaviour in cloneObject:

Object3D first = Primitives.getBox(1f, 1f);
first.setScale(2f);
Object3D second = first.cloneObject();


Now, first has scale == 2, second has scale == 1, their Object3D.getMesh().getBoundingBox() returns the same set of numbers, but the displayed object second has the same size as the scaled object first.

Is there problem somewhere on my side, or do you see the same behaviour?

EgonOlsen

Yes, looks like a bug. I'll fix it and report back later.

EgonOlsen


Darai