GPencil: Remove is_edit_mode
from cache data
This value is not used by new engine.
This commit is contained in:
@@ -62,8 +62,6 @@ typedef struct GpencilBatchCache {
|
|||||||
|
|
||||||
/** Cache is dirty */
|
/** Cache is dirty */
|
||||||
bool is_dirty;
|
bool is_dirty;
|
||||||
/** Edit mode flag */
|
|
||||||
bool is_editmode;
|
|
||||||
/** Last cache frame */
|
/** Last cache frame */
|
||||||
int cache_frame;
|
int cache_frame;
|
||||||
} GpencilBatchCache;
|
} GpencilBatchCache;
|
||||||
@@ -76,7 +74,6 @@ static bool gpencil_batch_cache_valid(GpencilBatchCache *cache, bGPdata *gpd, in
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cache->is_editmode = GPENCIL_ANY_EDIT_MODE(gpd);
|
|
||||||
if (cfra != cache->cache_frame) {
|
if (cfra != cache->cache_frame) {
|
||||||
valid = false;
|
valid = false;
|
||||||
}
|
}
|
||||||
@@ -103,7 +100,6 @@ static GpencilBatchCache *gpencil_batch_cache_init(Object *ob, int cfra)
|
|||||||
memset(cache, 0, sizeof(*cache));
|
memset(cache, 0, sizeof(*cache));
|
||||||
}
|
}
|
||||||
|
|
||||||
cache->is_editmode = GPENCIL_ANY_EDIT_MODE(gpd);
|
|
||||||
cache->is_dirty = true;
|
cache->is_dirty = true;
|
||||||
cache->cache_frame = cfra;
|
cache->cache_frame = cfra;
|
||||||
return cache;
|
return cache;
|
||||||
|
Reference in New Issue
Block a user