cache: use disk states to share caches

This commit is contained in:
itsmattkc
2022-06-05 19:47:33 -07:00
parent 13299d0a3b
commit 25699ef05b
14 changed files with 109 additions and 50 deletions
+5 -12
View File
@@ -355,6 +355,9 @@ public:
void CopyCacheUuidsFrom(Node *n);
bool AreCachesEnabled() const { return caches_enabled_; }
void SetCachesEnabled(bool e) { caches_enabled_ = e; }
virtual QString GetInputName(const QString& id) const;
void SetInputName(const QString& id, const QString& name);
@@ -930,16 +933,6 @@ public:
folder_ = folder;
}
bool GetCacheTextures() const
{
return cache_result_;
}
void SetCacheTextures(bool e)
{
cache_result_ = e;
}
class ArrayRemoveCommand : public UndoCommand
{
public:
@@ -1405,8 +1398,6 @@ private:
Folder* folder_;
bool cache_result_;
QMap<InputElementPair, ValueHint> value_hints_;
PositionMap context_positions_;
@@ -1423,6 +1414,8 @@ private:
AudioPlaybackCache *audio_cache_;
AudioWaveformCache *waveform_cache_;
bool caches_enabled_;
private slots:
/**
* @brief Slot when a keyframe's time changes to keep the keyframes correctly sorted by time