remove setParent

This commit is contained in:
yangxiao 2015-09-10 09:28:01 +08:00
parent ff85173b4b
commit 8f5cd6cdc8
2 changed files with 2 additions and 8 deletions

View File

@ -442,9 +442,9 @@ Material* Material::clone() const
for (const auto& technique: _techniques) for (const auto& technique: _techniques)
{ {
auto t = technique->clone(); auto t = technique->clone();
t->setParent(material); t->_parent = material;
for (ssize_t i = 0; i < t->getPassCount(); i++) { for (ssize_t i = 0; i < t->getPassCount(); i++) {
t->getPassByIndex(i)->setParent(t); t->getPassByIndex(i)->_parent = t;
} }
material->_techniques.pushBack(t); material->_techniques.pushBack(t);
} }

View File

@ -84,12 +84,6 @@ public:
* Returns the topmost RenderState in the hierarchy below the given RenderState. * Returns the topmost RenderState in the hierarchy below the given RenderState.
*/ */
RenderState* getTopmost(RenderState* below); RenderState* getTopmost(RenderState* below);
/**
* Set parent RenderState
* @param parent Parent RenderState
*/
void setParent(RenderState* parent) { _parent = parent; }
enum Blend enum Blend
{ {