(NodeComponent) Fixed NzNode::SetParent methods not being exposed

Former-commit-id: e4c60f01db90cd288314c37bfb6969b1922a1868
This commit is contained in:
Lynix 2015-04-12 23:28:12 +02:00
parent ead468525e
commit 201275b4ae
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ namespace Ndk
~NodeComponent() = default; ~NodeComponent() = default;
void SetParent(Entity* entity, bool keepDerived = false); void SetParent(Entity* entity, bool keepDerived = false);
using NzNode::SetParent;
static ComponentIndex componentIndex; static ComponentIndex componentIndex;
}; };

View File

@ -16,6 +16,6 @@ namespace Ndk
NzNode::SetParent(entity->GetComponent<NodeComponent>(), keepDerived); NzNode::SetParent(entity->GetComponent<NodeComponent>(), keepDerived);
} }
else else
SetParent(nullptr, keepDerived); NzNode::SetParent(nullptr, keepDerived);
} }
} }