Author Topic: cloneObject does not copy scale parameter  (Read 1575 times)

Offline Darai

  • byte
  • *
  • Posts: 45
    • View Profile
cloneObject does not copy scale parameter
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: cloneObject does not copy scale parameter
« Reply #1 on: August 07, 2014, 11:01:53 am »
Yes, looks like a bug. I'll fix it and report back later.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: cloneObject does not copy scale parameter
« Reply #2 on: August 07, 2014, 05:10:13 pm »
This version should fix the problem: http://jpct.de/download/beta/jpct_ae.jar

Offline Darai

  • byte
  • *
  • Posts: 45
    • View Profile
Re: cloneObject does not copy scale parameter
« Reply #3 on: August 08, 2014, 08:52:25 am »
Whow, that was fast...

thanks.