Hi Ralf,

The warning message is wrong in this instance, that's the only error I
could spot, unless there is an error further up in the code block I
didn't spot.  I have checked in a more appropriate warning message to
git master.

Robert.

On 31 May 2016 at 08:41, Ralf Habacker <[email protected]> wrote:
> Am 31.05.2016 um 09:27 schrieb Ralf Habacker:
>>         else
>>         {
>>             if (typeid(node)!=typeid(osg::Node))
>>             {
>>                 OSG_WARN<<"Unknown node in Group::write(),
>> className()="<<node->className()<<std::endl;
>>             }
>>
>>            ((ive::Node*)(node))->write(this);
>>
>> -> node is surely no osg:Node and also having [1] in mind that osg::xx
> s/osg::Node/ive::Node/g
>> matches ive::xx, this will crash
>>
>> In the crash case node is of type osg::Group
> To be more specific. ive::Group is derived from osg::Group, so in the
> above lokation the cast need to be ive::Group, not ive::Node.
>
> Ralf
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to