I moved this fix also in 0.50 trunk. Thanks
2010/6/9 <[email protected]> > ------------------------------------------------------------ > revno: 2287 > committer: Václav Šmilauer <[email protected]> > branch nick: trunk > timestamp: Wed 2010-06-09 08:30:02 +0200 > message: > 1. Fix stl import with different material > modified: > py/ymport.py > > > -- > lp:yade > https://code.launchpad.net/~yade-dev/yade/trunk<https://code.launchpad.net/%7Eyade-dev/yade/trunk> > > Your team Yade developers is subscribed to branch lp:yade. > To unsubscribe from this branch go to > https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription<https://code.launchpad.net/%7Eyade-dev/yade/trunk/+edit-subscription> > > === modified file 'py/ymport.py' > --- py/ymport.py 2010-05-19 11:09:23 +0000 > +++ py/ymport.py 2010-06-09 06:30:02 +0000 > @@ -71,7 +71,9 @@ > b.shape.Color=color if color else utils.randomColor() > b.shape.wire=wire > b.shape.highlight=highlight > - > utils._commonBodySetup(b,0,Vector3(0,0,0),noBound=noBound,material=material,resetState=False) > + pos,ori=b.state.pos,b.state.ori > + > utils._commonBodySetup(b,0,Vector3(0,0,0),noBound=noBound,material=material) > + b.state.pos,b.state.ori=pos,ori > return facets > > def gts(meshfile,shift=(0,0,0),scale=1.0,**kw): > > > _______________________________________________ > Mailing list: > https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev> > Post to : [email protected] > Unsubscribe : > https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev> > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

