Gui: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:33:50 -05:00
parent 132a1d7e55
commit bedf920702
57 changed files with 352 additions and 169 deletions

View File

@@ -276,7 +276,8 @@ void LightManip(SoSeparator * root)
SoInput in;
in.setBuffer((void *)scenegraph, std::strlen(scenegraph));
SoSeparator * _root = SoDB::readAll( &in );
if ( _root == nullptr ) return; // Shouldn't happen.
if ( _root == nullptr ) // Shouldn't happen.
return;
root->addChild(_root);
root->ref();
@@ -289,7 +290,8 @@ void LightManip(SoSeparator * root)
sa.setSearchingAll( false );
sa.apply( root );
SoPath * path = sa.getPath();
if ( path == nullptr) return; // Shouldn't happen.
if ( path == nullptr) // Shouldn't happen.
return;
SoPointLightManip * manip = new SoPointLightManip;
manip->replaceNode( path );
@@ -394,7 +396,8 @@ timersensorcallback(void * data, SoSensor *)
void AnimationTexture(SoSeparator * root)
{
// Scene graph
if ( root == nullptr ) return; // Shouldn't happen.
if ( root == nullptr ) // Shouldn't happen.
return;
// Generate a julia set to use as a texturemap
julia(global_cr, global_ci, 2.5, texturewidth, textureheight, 4, bitmap, 64);