------------------------------------------------------------
revno: 1887
committer: Anton Gladky <[email protected]>
branch nick: trunk
timestamp: Fri 2009-12-11 08:25:18 +0100
message:
  Trivial bug fix 318439
modified:
  py/ymport.py


--
lp:yade
https://code.launchpad.net/~yade-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.
=== modified file 'py/ymport.py'
--- py/ymport.py	2009-12-10 15:13:23 +0000
+++ py/ymport.py	2009-12-11 07:25:18 +0000
@@ -23,8 +23,7 @@
 	for l in open(filename):
 		ss=[float(i) for i in l.split()]
 		if wenjieFormat and len(ss)==5 and ss[4]==1.0: continue
-		id=o.bodies.append(sphere([scale*ss[0],scale*ss[1],scale*ss[2]],scale*ss[3],**kw))
-		ret.append(id)
+		ret.append(utils.sphere([scale*ss[0],scale*ss[1],scale*ss[2]],scale*ss[3],**kw))
 	return ret
 
 def stl(file, dynamic=False,wire=True,color=None,highlight=False,noBound=False,material=0):

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to