Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MLDeform/_maya/deformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ def deform(self, data, iterator, world, geometryIndex):
prediction = self.denormalize_prediction(prediction, model)

# Finally save the predicted deltas
for i, vtx in enumerate(model.vertices):
deltas[vtx * 3:(vtx * 3) + 3] = prediction[i * 3:(i * 3) + 3]
for index, vtx in enumerate(model.vertices):
deltas[vtx * 3:(vtx * 3) + 3] = prediction[index * 3:(index * 3) + 3]

# Now iterate through the mesh and set the offsets.
while not iterator.isDone():
Expand Down