Skip to content

Commit

Permalink
error-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Narazaka committed Jan 18, 2020
1 parent 232663e commit a52c3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blender-shapekey-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def execute(self, context):
continue
key_values = [item.co for item in key_block.data.values()]
if len(key_values) != len(base_key_values):
raise "not same len: " + key_block_name
raise RuntimeError("mesh vertex count is different: " + key_block_name)
diff_key_values = []
for i in range(len(key_values)):
diff_key_values.append((key_values[i] - base_key_values[i])[:])
Expand Down Expand Up @@ -120,7 +120,7 @@ def execute(self, context):
continue
key_values = [mathutils.Vector(vec) for vec in data[object_name]["diffs"][key_block_name]]
if len(key_values) != len(base_key_values):
raise "not same len: " + key_block_name
raise RuntimeError("mesh vertex count is different: " + key_block_name)
for i in range(len(key_values)):
key_blocks[key_block_name].data[i].co = key_values[i] + base_key_values[i]

Expand Down

0 comments on commit a52c3cc

Please sign in to comment.