MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ClearDependencies

Method ClearDependencies

Source/Engine/Content/BinaryAsset.cpp:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void BinaryAsset::ClearDependencies()
154{
155 for (auto& e : Dependencies)
156 {
157 auto asset = Cast<BinaryAsset>(Content::GetAsset(e.First));
158 if (asset)
159 asset->_dependantAssets.Remove(this);
160 }
161 Dependencies.Clear();
162}
163
164void BinaryAsset::AddDependency(BinaryAsset* asset)
165{

Callers

nothing calls this directly

Calls 3

GetAssetFunction · 0.85
RemoveMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected