Skip to content

Commit

Permalink
set material via Shape constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
schteppe committed Jul 12, 2015
1 parent 380aaa5 commit 6a20c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/Shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function Shape(options){
* @property material
* @type {Material}
*/
this.material = null;
this.material = options.material || null;

/**
* Area of this shape.
Expand Down

0 comments on commit 6a20c75

Please sign in to comment.