Return shadow node if adding to a node that already has a shadow.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3065 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-12-22 16:19:08 +00:00
parent fdfc470b38
commit 7b6640fd8f
1 changed files with 1 additions and 4 deletions

View File

@ -568,10 +568,7 @@ IShadowVolumeSceneNode* CAnimatedMeshSceneNode::addShadowVolumeSceneNode(const I
return 0;
if (Shadow)
{
os::Printer::log("This node already has a shadow.", ELL_WARNING);
return 0;
}
return Shadow;
if (!shadowMesh)
shadowMesh = Mesh; // if null is given, use the mesh of node