diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-30 03:06:56 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-30 03:06:56 +0300 |
commit | 2cf3ed13da1b76dec6e9a2cbe9ba0c4f7daf2cee (patch) | |
tree | 6bdd04460a538408cafdc1cf1b67d9b97f7002d3 /source/blender/modifiers/intern/MOD_meshsequencecache.c | |
parent | c9d35ee07c9d0d12328a5b7b70100fb06a11184e (diff) |
Fix T95315: "Override Layers" panel open crash with null CacheFile
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshsequencecache.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshsequencecache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshsequencecache.c b/source/blender/modifiers/intern/MOD_meshsequencecache.c index e1459ccba6d..b5dd0566215 100644 --- a/source/blender/modifiers/intern/MOD_meshsequencecache.c +++ b/source/blender/modifiers/intern/MOD_meshsequencecache.c @@ -404,6 +404,10 @@ static void override_layers_panel_draw(const bContext *C, Panel *panel) return; } + if (RNA_pointer_is_null(&fileptr)) { + return; + } + uiLayoutSetPropSep(layout, true); uiTemplateCacheFileLayers(layout, C, &fileptr); } |