------------------------------------------------------------ revno: 3981 committer: Anton Gladky <[email protected]> timestamp: Mon 2014-05-26 09:53:31 +0200 message: Set the mask to a clump the same as the first member of it. modified: py/ymport.py
-- lp:yade https://code.launchpad.net/~yade-pkg/yade/git-trunk Your team Yade developers is subscribed to branch lp:yade. To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/ymport.py' --- py/ymport.py 2014-05-20 06:35:16 +0000 +++ py/ymport.py 2014-05-26 07:53:31 +0000 @@ -84,6 +84,10 @@ if (len(curClump)<>0): ret.append(O.bodies.appendClumped(curClump,discretization=discretization)) + + # Set the mask to a clump the same as the first member of it + for i in range(len(ret)): + O.bodies[ret[i][0]].mask = O.bodies[ret[i][1][0]].mask return ret def text(fileName,shift=Vector3.Zero,scale=1.0,**kw):
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

