+ fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer
This commit is contained in:
@@ -290,8 +290,8 @@ void LightManip(SoSeparator * root)
|
||||
SoInput in;
|
||||
in.setBuffer((void *)scenegraph, std::strlen(scenegraph));
|
||||
SoSeparator * _root = SoDB::readAll( &in );
|
||||
if ( _root == NULL ) return; // Shouldn't happen.
|
||||
root->addChild(_root);
|
||||
if ( root == NULL ) return; // Shouldn't happen.
|
||||
root->ref();
|
||||
|
||||
const char * pointlightnames[3] = { "RedLight", "GreenLight", "BlueLight" };
|
||||
|
||||
Reference in New Issue
Block a user