brlrt / away3d

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

SegmentsExtrude with thickness==0 causes error 1009 #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. instantiate a new SegmentsExtrude object with thickness:0 

What is the expected output? What do you see instead?
An extrusion object. Error in Flash-Player debug console "error 1009 cannot
access a property or method of a null object reference."

What version of the product are you using? On what operating system?
r1302, windows

Please provide any additional information below.
The error is caused in line 284 of SegmentsExtrude.as in the methode
generate. It stems from the fact that the variable "vector" is not
initialized, when the thickness property of the SegmentsExtrude instance is
zero. In the attachment you find a quickfix of the issue which works for me.

Original issue reported on code.google.com by timo.lin...@resolto.com on 8 Jul 2009 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 9 Feb 2010 at 9:09