gromvsehvas / min3d

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

Partially textured objects cause crash (Fix included) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Export cube with only 1 textured face from blender
2. Load mesh using min3d & render simple scene

What is the expected output? What do you see instead?

Expect working min3d activity, instead it will crash (nullptr).

ParseObjectData.java attempts to use BitmapAsset (NULL for faces without 
texture).

FIX: change ParseObjectData.java @line 85 
FROM: if(hasBitmaps)
TO: if(hasBitmaps && (ba != null))

Original issue reported on code.google.com by bartnl...@gmail.com on 3 Aug 2010 at 8:21

GoogleCodeExporter commented 8 years ago
Thanks for raising this issue and for providing the solution :-)
I've committed the fix.

Original comment by ippeldv@gmail.com on 2 Sep 2010 at 1:23