MCPcopy Create free account
hub / github.com/begla/Intrinsic / onResourceTreePopulated

Method onResourceTreePopulated

IntrinsicEd/src/IntrinsicEdManagerWindowAsset.cpp:236–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void IntrinsicEdManagerWindowAsset::onResourceTreePopulated()
237{
238 QStringList files = _assetChangeWatch->files();
239
240 if (!files.empty())
241 _assetChangeWatch->removePaths(files);
242
243 for (uint32_t i = 0u; i < AssetManager::getActiveResourceCount(); ++i)
244 {
245 AssetRef ref = AssetManager::getActiveResourceAtIndex(i);
246
247 if (AssetManager::_descAssetType(ref) == AssetType::kMesh)
248 {
249 _assetChangeWatch->addPath(
250 QString(Settings::Manager::_assetMeshPath.c_str()) + "/" +
251 AssetManager::_descAssetFileName(ref).c_str());
252 }
253 else if ((AssetManager::_descAssetType(ref) >= AssetType::kTexturesBegin &&
254 AssetManager::_descAssetType(ref) <= AssetType::kTexturesEnd) ||
255 AssetManager::_descAssetType(ref) == AssetType::kPbrTexture)
256 {
257 _assetChangeWatch->addPath(
258 QString(Settings::Manager::_assetTexturePath.c_str()) + "/" +
259 AssetManager::_descAssetFileName(ref).c_str());
260 }
261 }
262}
263
264void IntrinsicEdManagerWindowAsset::onCompileQueuedAssets()
265{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected