yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02631
[Branch ~yade-dev/yade/trunk] Rev 1887: Trivial bug fix 318439
------------------------------------------------------------
revno: 1887
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
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):