Skip to content

Commit

Permalink
Fixed conversation effects asset and identifier changes not propagating
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorma committed Oct 10, 2019
1 parent 32fa226 commit ca2f138
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,32 +217,36 @@ public override bool isValid(string currentPath, List<string> incidences)

public override int countAssetReferences(string assetPath)
{
return conversationLines.Sum(l => l.countAssetReferences(assetPath));
return conversationLines.Sum(l => l.countAssetReferences(assetPath)) + EffectsController.countAssetReferences(assetPath, effectsController.getEffectsDirectly());
}

public override void getAssetReferences(List<string> assetPaths, List<int> assetTypes)
{
conversationLines.ForEach(l => l.getAssetReferences(assetPaths, assetTypes));
EffectsController.getAssetReferences(assetPaths, assetTypes, effectsController.getEffectsDirectly());
}

public override int countIdentifierReferences(string id)
{
return conversationLines.Sum(l => l.countIdentifierReferences(id));
return conversationLines.Sum(l => l.countIdentifierReferences(id)) + EffectsController.countIdentifierReferences(id, effectsController.getEffectsDirectly());
}

public override void deleteAssetReferences(string assetPath)
{
conversationLines.ForEach(l => l.deleteAssetReferences(assetPath));
EffectsController.deleteAssetReferences(assetPath, effectsController.getEffectsDirectly());
}

public override void replaceIdentifierReferences(string oldId, string newId)
{
conversationLines.ForEach(l => l.replaceIdentifierReferences(oldId, newId));
EffectsController.replaceIdentifierReferences(oldId, newId, effectsController.getEffectsDirectly());
}

public override void deleteIdentifierReferences(string id)
{
conversationLines.ForEach(l => l.deleteIdentifierReferences(id));
EffectsController.deleteIdentifierReferences(id, effectsController.getEffectsDirectly());
}

/**
Expand Down

0 comments on commit ca2f138

Please sign in to comment.