mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3 from geron-cn/develop
repair bug: changedisplay(armature,i>=0) does not reblind parentbone
This commit is contained in:
commit
c60e0676f7
|
@ -294,6 +294,7 @@ void DisplayManager::setCurrentDecorativeDisplay(DecorativeDisplay *decoDisplay)
|
||||||
if (Armature *armature = dynamic_cast<Armature *>(_displayRenderNode))
|
if (Armature *armature = dynamic_cast<Armature *>(_displayRenderNode))
|
||||||
{
|
{
|
||||||
_bone->setChildArmature(armature);
|
_bone->setChildArmature(armature);
|
||||||
|
armature->setParentBone(_bone);
|
||||||
}
|
}
|
||||||
else if (ParticleSystemQuad *particle = dynamic_cast<ParticleSystemQuad *>(_displayRenderNode))
|
else if (ParticleSystemQuad *particle = dynamic_cast<ParticleSystemQuad *>(_displayRenderNode))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue