Skip to content

Commit 9f06f53

Browse files
committed
Fix style
1 parent d26ef44 commit 9f06f53

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/brainbrowser/surface-viewer/modules/rendering.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,15 @@ BrainBrowser.SurfaceViewer.modules.rendering = function(viewer) {
661661
// Caculate the offset
662662
var offset_centroid = new THREE.Vector3();
663663
offset_centroid.copy(model.userData.model_center_offset);
664-
if (model_centric === false) { offset_centroid.negate();}
664+
if (model_centric === false) {
665+
offset_centroid.negate();
666+
}
665667

666668
model.children.forEach(function(children) {
667669
// Return if children is not given by the user
668-
if (Object.keys(children.userData).length === 0 && children.userData.constructor === Object) {return;}
670+
if (Object.keys(children.userData).length === 0 && children.userData.constructor === Object) {
671+
return;
672+
}
669673
children.translateX(offset_centroid.x);
670674
children.translateY(offset_centroid.y);
671675
children.translateZ(offset_centroid.z);

0 commit comments

Comments
 (0)