Hi,
I am trying to update the root node. I have create the root NodePtr like:
NodePtr root = Node::create();
and set SimpleSceneManager:
mgr->setRoot(root);
and then I run my application, there is nothing showed. That is correct.
Click a button, call things like this:
root = SceneFileHandler::the().read("data/terrin.wrl");
Nothing changed.
I have to add an extra function to assign the core:
NodePtr node = SceneFileHandler::the().read("data/terrin.wrl");
beginEditCP(_root);
_root->setCore(Group::create());
_root->addChild(node);
endEditCP(_root);
That works.
Is it possible to simplify this operation?
Thanks a lot.
Jiejie Zhu
[EMAIL PROTECTED]
2005-05-10
�������������������������������������������+�^甸��X���'���u����%y*Zq浒y�l旦�fФ�z�^~*於���y庄zZ)z抚���{�'店纾璁�^:���洎i��羚┎证z厢囤����锄,v堍o�i哜���Z�'篆甲�)rO������������������������������������^���呵��f��)��+-:�Р畋觎�X�断膦贶y�+�镧z�m�����b槽����q玷�����+-躇b藏�~�瑗殪���