code:
flattenStrongmodel= NodePath(‘flattenStrongmodel’)
flattenStrongmodel.reparentTo(render)
for name, obj in items:
cName = obj.class.name
if cName==“Guandao” or cName==“Wangguan” or cName==“Bianjing”:
obj.getNodePath().detachNode()
obj.getNodePath().reparentTo(flattenStrongmodel)
cutnum=flattenStrongmodel.flattenMedium()
print "cut nodes : "+cutnum.str()
when i run code,got an error:
AssertionError: Attempt to compute inverse of singular matrix! at lien 1812 of path\lmatrix4_src.I