Fixed merge ignoring assigned scene tags.
This commit is contained in:
@@ -604,7 +604,9 @@ const tags = Array.from(scene.tags
|
||||
if (accTag && tag.actorId) {
|
||||
return acc.set(tag.id, {
|
||||
...tag,
|
||||
actors: [...accTag.actors, actorsById[tag.actorId]].toSorted((actorA, actorB) => actorA.name.localeCompare(actorB.name)),
|
||||
actors: [...accTag.actors, actorsById[tag.actorId]]
|
||||
.filter(Boolean) // shouldn't happen, but in case the tag actor isn't a scene actor
|
||||
.toSorted((actorA, actorB) => actorA.name.localeCompare(actorB.name)),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -616,7 +618,7 @@ const tags = Array.from(scene.tags
|
||||
if (tag.actorId) {
|
||||
return acc.set(tag.id, {
|
||||
...tag,
|
||||
actors: [actorsById[tag.actorId]],
|
||||
actors: [actorsById[tag.actorId]].filter(Boolean),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user