osg Node getParentalNodePaths () 报错

node->getBound().center() * osg::computeLocalToWorld(node->getParentalNodePaths()[0])

osg::Vec3f vec3f1 = hNode2->getBound().center();
osg::NodePathList nodePAthList1 = hNode2->getParentalNodePaths(0);

I do not know why,

hNode2-> getParentalNodePaths (0); has an error

 

 

Program: ...laManageProject\TeslaManage\x64\Debug\TeslaManage20191001.exe
File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 980

Expression: __acrt_first_block == header

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

 

Guess you like

Origin www.cnblogs.com/herd/p/11618440.html