kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

PhongColorMaterial fails when shape is 0 ( zero ) in width #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Cube with PhongColorMaterial
2. Gradually scale it down with an enterframe event
3. When it hits zero in width it will trigger an error

What is the expected output? What do you see instead?
It looks right but FlashDevelop gives me this message:

[Fault] exception, information=TypeError: Error #1009: Cannot access a 
property or method of a null object reference.
Fault, dot() at Number3D.as:150

What version of the product are you using? On what operating system?
Version 2.4.0 / 3.4.0 ( using FP10 version )

Please provide any additional information below.
The reason I did something as strange as declaring a cube with zero in 
width was because I used it as a loader. It seems to work with 
ColorMaterial, but PhongColormaterial throws a runtime error. It is not a 
biggie, but still seems like an error.

Original issue reported on code.google.com by fruletus...@gmail.com on 8 Sep 2009 at 8:38

GoogleCodeExporter commented 8 years ago

Original comment by rob.bate...@gmail.com on 15 Sep 2009 at 11:15