Update code for Foundry 0.8.5

This commit is contained in:
Manuel Vögele
2021-05-22 21:57:59 +02:00
parent d11d6385e2
commit 7ba89e4229
7 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ async function animateEntities(entities, draggedEntity, draggedRays, wasPaused)
const updates = entityPaths.map(({entity, path}) => {
return {x: path.B.x, y: path.B.y, _id: entity.id};
});
await draggedEntity.scene.updateEmbeddedEntity(draggedEntity.constructor.embeddedName, updates, {animate});
await draggedEntity.scene.updateEmbeddedDocuments(draggedEntity.constructor.embeddedName, updates, {animate});
if (animate)
await Promise.all(entityPaths.map(({entity, path}) => entity.animateMovement(path)));
}