[osg-users] Object from LUA Script
Matus Gabriska
matus.gabriska at gmail.com
Fri May 13 23:35:25 PDT 2016
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
More information about the osg-users
mailing list