void ColladaNode::readInstanceNode(domInstance_node *instNode) { ColladaInstanceNodeRefPtr colInstNode = getUserDataAs<ColladaInstanceNode>(instNode); if(colInstNode == NULL) { colInstNode = dynamic_pointer_cast<ColladaInstanceNode>( ColladaElementFactory::the()->create(instNode, getGlobal())); colInstNode->read(this); } }
void ColladaNode::handleInstanceNode(domInstance_node *instNode) { ColladaInstanceNodeRefPtr colInstNode = getUserDataAs<ColladaInstanceNode>(instNode); if(colInstNode == NULL) { colInstNode = dynamic_pointer_cast<ColladaInstanceNode>( ColladaElementFactory::the()->create(instNode, getGlobal())); colInstNode->read(); } NodeUnrecPtr childN = colInstNode->process(this); appendChild(childN); }