openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

Why allow Geode to call Goup::addChild() #1163

Closed jingjianjie closed 2 years ago

jingjianjie commented 2 years ago

I'm curious about the public method addChild() of Gourp class. It can be called by geode instance which defined as "leaf"

why allow this ambiguous semantic (i.e. geode->addchild() )? why not prevent this behaviour? why the framework of Node-group-child is designed as so? thanks if anyone help me!~

openscenegraph commented 2 years ago

Please search the osg-users group for an explanation,

On Thu, 25 Aug 2022 at 08:20, jingjianjie @.***> wrote:

I'm curious about the public method addChild() of Gourp class. It can be called by geode instance which should be a "leaf" why the framework is designed as so? why not prevent this behaviour? thanks~

— Reply to this email directly, view it on GitHub https://github.com/openscenegraph/OpenSceneGraph/issues/1163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABUA27KIHE5UHGZXBTCNVLV24NCTANCNFSM57R6HUBA . You are receiving this because you are subscribed to this thread.Message ID: @.***>