Skip to content

Commit

Permalink
set default bone color
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Apr 27, 2016
1 parent 3b9ec08 commit e46a82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ spine.Bone.prototype.copy = function(other) {
*/
spine.Bone.prototype.load = function(json) {
var bone = this;
bone.color.load(json.color);
bone.color.load(json.color || 0x9b9b9bff);
bone.parent_key = spine.loadString(json, 'parent', "");
bone.length = spine.loadFloat(json, 'length', 0);
bone.local_space.load(json);
Expand Down

0 comments on commit e46a82f

Please sign in to comment.