Skip to content

Commit

Permalink
fix variable name in renaming
Browse files Browse the repository at this point in the history
was using global name instead of parameter
  • Loading branch information
OlafHaag authored Aug 18, 2020
1 parent 86f8775 commit 5753ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bvhtoolbox/manipulate/renamejoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def rename_joints(source_path, names_map, destination_path=None):
match = prog.search(line)
if match:
joint = match.group().lstrip()
if joint in mapping:
lines[idx] = line.replace(joint, mapping[joint])
if joint in names_map:
lines[idx] = line.replace(joint, names_map[joint])

# If no destination file is specified, overwrite input file.
if not destination_path:
Expand Down

0 comments on commit 5753ed8

Please sign in to comment.