Hi Robert,

It was actually my fault. PropertyInfo::getPropertyType() returns
pointers for non-atomic properties. I should be checking if the type
returned was a pointer and dereference it with getPointedType().

Now it works just nice.

Anyway, I will test also with CVS version.

Thanks.


> Hi Ruben,
> 
> There has been many improvements to osgIntrospection since 1.2 so I
> strongly recommend moving up to the SVN version of the OSG and
> OpenThreads.
> 
> Robert.
> 
> On 4/6/07, Ruben <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've found an inconsistency in osgIntrospection:
> >
> > If you ask a Geode for its StateSet property,
> > PropertyInfo::getPropertyType::isAtomic() says yes, but if you do
> > PropertyInfo::getValue(instance)::isAtomic() says no (which is more
> > reasonable, by the way).
> >
> > I would be able to workaround this by ignoring
> > PropertyInfo::getPropertyType::isAtomic() and using the type of the
> > value, but it won't work for indexed and array properties, as they may
> > be empty, and I won't have a "sample" value to check if it's actually
> > atomic or not...
> >
> > Is this a bug or my misunderstanding of the API?
> >
> > I'm using OSG 1.2.0
> >
> > Thanks in advance.
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to