Skip to content

Commit

Permalink
fix default-value handling for scaleByAtomRadius
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Mar 13, 2016
1 parent 0d309ce commit 068bec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ Viewer.prototype = {
options.sphereRadius = options.radius || options.sphereRadius || 0.3;
options.arcDetail = (options.arcDetail || this.options('arcDetail')) * 2;
options.sphereDetail = options.sphereDetail || this.options('sphereDetail');
options.scaleByAtomRadius = options.scaleByAtomRadius || true;
options.scaleByAtomRadius = optValue(options, 'scaleByAtomRadius', true);

var obj = render.ballsAndSticks(structure, this._canvas.gl(), options);
return this.add(name, obj);
Expand Down

0 comments on commit 068bec7

Please sign in to comment.