File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/brainbrowser/surface-viewer/modules Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -647,12 +647,16 @@ BrainBrowser.SurfaceViewer.modules.rendering = function(viewer) {
647647 * ```
648648 */
649649 viewer . modelCentric = function ( model_centric ) {
650- if ( model_centric === undefined ) { model_centric = false }
650+ if ( model_centric === undefined ) {
651+ model_centric = false ;
652+ }
651653
652654 var model = viewer . model ;
653655 viewer . findUserDataCentroid ( model ) ;
654656
655- if ( model_centric === model . userData . model_centric ) { return ; }
657+ if ( model_centric === model . userData . model_centric ) {
658+ return ;
659+ }
656660
657661 // Caculate the offset
658662 var offset_centroid = new THREE . Vector3 ( ) ;
@@ -687,7 +691,9 @@ BrainBrowser.SurfaceViewer.modules.rendering = function(viewer) {
687691 */
688692 viewer . findUserDataCentroid = function ( model ) {
689693 // Calculate only if needed
690- if ( model . userData . model_center_offset !== undefined ) { return ; }
694+ if ( model . userData . model_center_offset !== undefined ) {
695+ return ;
696+ }
691697
692698 // Calculate bounding box for all children given by the user
693699 // ignore other children
@@ -701,7 +707,9 @@ BrainBrowser.SurfaceViewer.modules.rendering = function(viewer) {
701707
702708 var children_name = children . name ;
703709 model_data . shapes . forEach ( function ( shape ) {
704- if ( shape . name !== children_name ) { return ; }
710+ if ( shape . name !== children_name ) {
711+ return ;
712+ }
705713 var bounding_box = shape . bounding_box ;
706714
707715 // min
You can’t perform that action at this time.
0 commit comments