Skip to content

Commit

Permalink
Mesh Animation Fix according to PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
feedbackex committed Jun 26, 2016
1 parent 906fca4 commit f6d601a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions io_export_cryblend/export_animations.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ def _write_visual_scene_node(self, objects, parent_node, group):
object_)], object_, parent_node, group)

elif node_type == 'anm' and object_.type == 'MESH':
prop_name = join(object_.name,
self._create_properties_name(object_, group))
prop_name = "{}{}".format(
object_.name, self._create_properties_name(
object_, group))
node = self._doc.createElement("node")
node.setAttribute("id", prop_name)
node.setAttribute("name", prop_name)
Expand Down
4 changes: 2 additions & 2 deletions io_export_cryblend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ def get_geometry_animation_file_name(group):

cga_node = find_cga_node_from_anm_node(group)
if cga_node:
cga_name = cga_node.name
return "{!s}_{!s}".format(cga_name, node_name)
cga_name = get_node_name(cga_node)
return "{!s}_{!s}.anm".format(cga_name, node_name)
else:
cga_name = group.objects[0].name
return "{!s}_{!s}.anm".format(cga_name, node_name)
Expand Down

0 comments on commit f6d601a

Please sign in to comment.