Gui: PR6497 move return statement to new line
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user