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-e03cc46cb475master
parent
fdfc470b38
commit
7b6640fd8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue