Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
a8ed3cac
Commit
a8ed3cac
authored
Sep 27, 2019
by
cmaffeo2
Browse files
Fixed grouped transforms in vHelix parser
parent
465d369a
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/readers/polygon_mesh.py
View file @
a8ed3cac
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment