nasal::Ghost tweaking to allow using with osg::oberser_ptr.

This commit is contained in:
Thomas Geymayer
2013-04-01 13:35:41 +02:00
parent c41caeaf64
commit 198c5d23fd

View File

@@ -569,7 +569,7 @@ namespace nasal
++parent )
{
pointer ptr = fromNasal(c, *parent);
if( ptr )
if( ptr.get() )
return ptr;
}
}
@@ -592,7 +592,7 @@ namespace nasal
*/
static pointer* createInstance(const pointer& ptr)
{
return ptr ? new pointer(ptr) : 0;
return ptr.get() ? new pointer(ptr) : 0;
}
static pointer getPtr(void* ptr)