www.jpct.net

jPCT-AE - a 3d engine for Android => Bugs => Topic started by: Darai on August 07, 2014, 10:51:55 am

Title: cloneObject does not copy scale parameter
Post by: Darai on August 07, 2014, 10:51:55 am
Hi guys,

i found this strange behaviour in cloneObject:
Code: [Select]
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?
Title: Re: cloneObject does not copy scale parameter
Post by: EgonOlsen on August 07, 2014, 11:01:53 am
Yes, looks like a bug. I'll fix it and report back later.
Title: Re: cloneObject does not copy scale parameter
Post by: EgonOlsen on August 07, 2014, 05:10:13 pm
This version should fix the problem: http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: cloneObject does not copy scale parameter
Post by: Darai on August 08, 2014, 08:52:25 am
Whow, that was fast...

thanks.