Skip to content

Commit

Permalink
fix null filename, 3dsMax 11 - Feeling ColladaMax v3.05B.
Browse files Browse the repository at this point in the history
git-svn-id: https://away3d.googlecode.com/svn/trunk/fp9/Away3D@2215 6da1ee2c-932f-0410-8bb4-73b2b089c45a
  • Loading branch information
katopz committed Feb 10, 2010
1 parent 973bd4f commit 3a3144a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/away3d/loaders/Collada.as
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,11 @@

var image:XML = collada["library_images"].image.(@id == imageId)[0];

filename = image["init_from"];
//3dsMax 11 - Feeling ColladaMax v3.05B.
if(!image)
filename = collada["library_images"].image.init_from.text();
else
filename = image["init_from"];

if (filename.substr(0, 2) == "./")
{
Expand Down

0 comments on commit 3a3144a

Please sign in to comment.