I tried this code
Code:
osg::ref_ptr<osg::IntValueObject> test =
static_cast<osg::IntValueObject*>(outputObject.get());
if (test == nullptr) {
std::cout << "null" << std::endl;
}
else {
std::cout << test->getValue() <<
std::endl;
}
but it is printing 0. I alson tried dynamic_cast but it crashed. Whats wrong
with this code?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67101#67101
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org