Commit 7b6640fd authored by hybrid's avatar hybrid

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
parent fdfc470b
......@@ -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
......
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