Author Topic: Shader isn't copied  (Read 1574 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Shader isn't copied
« on: July 29, 2012, 02:12:16 pm »
By constructor Object3D(Object3D obj, boolean reuseMesh) is not copied shader too.
« Last Edit: July 29, 2012, 02:27:58 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Shader isn't copied
« Reply #1 on: July 30, 2012, 07:19:32 am »
No, it's not. And it's actually not supposed to be. These constructors were actually meant to make a clone of the object, not of it's attributes. Is there a problem with setting the shader yourself after the creation of the object?

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Shader isn't copied
« Reply #2 on: July 30, 2012, 02:32:18 pm »
Ok, ok, I thought, that it is unwanted result ;)