Load a previously saved hash. Returns empty string if not found. */
| 57 | |
| 58 | /** Load a previously saved hash. Returns empty string if not found. */ |
| 59 | inline FString LoadMeshHash(const FString& ObjFilePath) |
| 60 | { |
| 61 | FString HashPath = FPaths::ChangeExtension(ObjFilePath, TEXT("hash")); |
| 62 | FString Hash; |
| 63 | if (FFileHelper::LoadFileToString(Hash, *HashPath)) |
| 64 | { |
| 65 | return Hash.TrimStartAndEnd(); |
| 66 | } |
| 67 | return FString(); |
| 68 | } |
| 69 | |
| 70 | /** Delete cached OBJ files (and hash) so they get re-exported. */ |
| 71 | inline void DeleteMeshCache(const FString& BaseFilePath, bool bComplex) |
no outgoing calls