Commit a8ed3cac authored by cmaffeo2's avatar cmaffeo2
Browse files

Fixed grouped transforms in vHelix parser

parent 465d369a
......@@ -76,30 +76,16 @@ class MayaObj():
def get_position(self):
if self.parent is not None:
return self.parent._transform_child_position(self.position)
return self.parent.get_orientation().dot(self.position) + self.parent.get_position()
else:
return self.position
def get_orientation(self):
if self.parent is not None:
return self.parent._transform_child_orientation(self.orientation)
return self.parent.get_orientation().dot(self.orientation)
else:
return self.orientation
def _transform_child_position(self, position):
if self.parent is not None:
p = self.parent._transform_child_position( position )
else:
p = position
return self.orientation.dot(p)+self.position
def _transform_child_orientation(self, orientation):
if self.parent is not None:
o = self.parent._transform_child_orientation( orientation )
else:
o = orientation
return self.orientation.dot(o)
def get_full_name(self):
ret = self.name
if self.parent is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment