← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2287: 1. Fix stl import with different material

 

------------------------------------------------------------
revno: 2287
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
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

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	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):


Follow ups