Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-06-14 15:53:16 +0300
committerYimingWu <xp8110@outlook.com>2021-06-14 15:56:09 +0300
commit4e84a49218f341754b8d930660b391dd7e3dc207 (patch)
tree16c9df813e2bf4b54d9e30e2e90c9875238b3ec6 /source/blender/blenloader
parentf9568c4c1fa60c0f081b79bbf4607a70862289b4 (diff)
Lineart: Clean up cache patch.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_300.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 8e44b3254c0..268598ccc51 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -27,7 +27,6 @@
#include "DNA_brush_types.h"
#include "DNA_genfile.h"
-#include "DNA_gpencil_modifier_types.h"
#include "DNA_listBase.h"
#include "DNA_modifier_types.h"
#include "DNA_text_types.h"
@@ -260,18 +259,5 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
}
- if (!DNA_struct_elem_find(
- fd->filesdna, "LineartGpencilModifierData", "bool", "use_cached_result")) {
- LISTBASE_FOREACH (Object *, ob, &bmain->objects) {
- if (ob->type == OB_GPENCIL) {
- LISTBASE_FOREACH (GpencilModifierData *, md, &ob->greasepencil_modifiers) {
- if (md->type == eGpencilModifierType_Lineart) {
- LineartGpencilModifierData *lmd = (LineartGpencilModifierData *)md;
- lmd->flags |= LRT_GPENCIL_USE_CACHE;
- }
- }
- }
- }
- }
}
}