google-code-export / papervision3d

Automatically exported from code.google.com/p/papervision3d
1 stars 1 forks source link

DisplayObject3D.replaceMaterialByName() broken when cloning #184

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a basic Cube
2. Clone it
3. Try to replace its material

What is the expected output? What do you see instead?
I expect the material to change but it doesn't change at all

What version of the product are you using? On what operating system?
I am using version 903 on WinXP

Original issue reported on code.google.com by munkki...@gmail.com on 4 Apr 2009 at 3:42

GoogleCodeExporter commented 9 years ago
var cube:Cube = new Cube(materials, 200, 200, 200);

var temp:DisplayObject3D = cube.clone();

trace(cube.materials === temp.materials);//Outputs false

So the bug is somewhere in the MaterialsList clone() function

Original comment by munkki...@gmail.com on 4 Apr 2009 at 3:53