Skip to content

Commit

Permalink
fixed indentation bug
Browse files Browse the repository at this point in the history
the last bug fix included an indentation error such that only the last muscle volume was updated. This is now fixed
  • Loading branch information
evaherbst committed Nov 22, 2022
1 parent 83bfef5 commit 4b6871e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions AddonFolder/muscleCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,13 +703,13 @@ def updateVolumes():
# first column and row are rest of the columns
for row in reader:
print(row)
if row[3].startswith("<Vector"): #check if you already removed Vector string, if not, do so
row[3] = row[3].replace("<Vector (", "")
row[3] = row[3].replace(")>", "")
row[4] = row[4].replace("<Vector (", "")
row[4] = row[4].replace(")>", "")
# create dictionary where key = muscle name, value = all values
muscleMetrics[row[0]] = row[1:]
if row[3].startswith("<Vector"): #check if you already removed Vector string, if not, do so
row[3] = row[3].replace("<Vector (", "")
row[3] = row[3].replace(")>", "")
row[4] = row[4].replace("<Vector (", "")
row[4] = row[4].replace(")>", "")
# create dictionary where key = muscle name, value = all values
muscleMetrics[row[0]] = row[1:]
print("muscle metrics from csv: " + str(muscleMetrics))
bpy.ops.object.select_all(action='SELECT')
# now calculate muscle volumes for all volumes in scence
Expand Down

0 comments on commit 4b6871e

Please sign in to comment.