Skip to content

Commit

Permalink
[~] bug fix in Object3d. On resume it tried to access the colors obje…
Browse files Browse the repository at this point in the history
…ct. Added a null check.

git-svn-id: http://min3d.googlecode.com/svn/trunk@94 470a5c22-fb99-cafe-615f-f07c7e978966
  • Loading branch information
ippeldv committed Nov 1, 2010
1 parent 555c892 commit 09b4359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/min3d/core/Object3d.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public void clear()
this.vertices().points().clear();
this.vertices().uvs().clear();
this.vertices().normals().clear();
this.vertices().colors().clear();
if(this.vertices().colors() != null)
this.vertices().colors().clear();
_textures.clear();
if (this.parent() != null) this.parent().removeChild(this);
}
Expand Down

0 comments on commit 09b4359

Please sign in to comment.