jPCT-AE - a 3d engine for Android > Bugs

cloneObject does not copy scale parameter

(1/1)

Darai:
Hi guys,

i found this strange behaviour in cloneObject:

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

--- End code ---

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:
This version should fix the problem: http://jpct.de/download/beta/jpct_ae.jar

Darai:
Whow, that was fast...

thanks.

Navigation

[0] Message Index

Go to full version