File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/brainbrowser/surface-viewer/modules Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments