Commit dc58c8eb authored by Jan Möbius's avatar Jan Möbius
Browse files

return 0 if something goes wrong

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12596 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5ac51e1e
......@@ -95,6 +95,10 @@ ShaderNode *splatShaderNode( BaseObjectData *_object )
return 0;
SplatCloudObject *object = dynamic_cast<SplatCloudObject *>( _object );
if ( object == 0 )
return 0;
return object->shaderNode();
}
......@@ -108,6 +112,10 @@ SplatCloudNode *splatCloudNode( BaseObjectData *_object )
return 0;
SplatCloudObject *object = dynamic_cast<SplatCloudObject *>( _object );
if ( object == 0 )
return 0;
return object->splatCloudNode();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment