|
我在编译程序的时候,因为物体对象太多,要分别进行选择,所以出现fatal error C1061: 编译器限制 : 块嵌套太深提示
程序如下:
///////一级条目
//整机
if (switch_node->getName() == "jitoubu")
{
data_record = osg::Vec3(-159.099,-457.283,-196.94);
}
else if (switch_node->getName() == "zhongjianbhu")
{
data_record = osg::Vec3(-21514.826,-397.288,103.75);
}
else if (switch_node->getName() == "jiweibu")
{
data_record = osg::Vec3(-40225.918,-268.584,-124.584);
}
/////////二级条目
//机头部
else if (switch_node->getName() == "jtjzj")
{
data_record = osg::Vec3(-227.204,-243.474,-211.962);
}
else if (switch_node->getName() == "jtcdzz01")
{
data_record = osg::Vec3(-966.275,-2034.579,-161.155);
}
后面还跟有很多的类似语句,因为零部件有上百个,超过了限制的128个,求高手该怎么解决啊? |
|