| 234 | } |
| 235 | |
| 236 | void 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 | |
| 264 | void IntrinsicEdManagerWindowAsset::onCompileQueuedAssets() |
| 265 | { |