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:
authorJeroen Bakker <jbakker>2020-03-26 16:36:39 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2020-03-26 17:34:53 +0300
commit7ed3ebbc6e1f95203c050e683a140b7ac1e7b705 (patch)
treec784d8cc1e1e0954c6193e930228ba32fea29615 /source/blender/blenkernel/BKE_modifier.h
parent2e8fb95e7c69274944ecb44b2b51f8b4307f88ae (diff)
Fix T67888: Incorrect Wireframe After Applying SubSurf/MultiRes
Show control edges stores the control edges in the mesh which is picked up by the draw manager. When applyng a subsurf (or multires) we don't want that data present in the base mesh. Any rebuilding of the mesh would overwrite the data anyway. This patch introduces a new flag for applying modifiers that can be checked to ignore storing display specific data in the base mesh. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7163
Diffstat (limited to 'source/blender/blenkernel/BKE_modifier.h')
-rw-r--r--source/blender/blenkernel/BKE_modifier.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h
index a25b73625fa..c37e56149eb 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -125,6 +125,11 @@ typedef enum ModifierApplyFlag {
/** Ignore scene simplification flag and use subdivisions
* level set in multires modifier. */
MOD_APPLY_IGNORE_SIMPLIFY = 1 << 3,
+ /** The effect of this modifier will be applied to the base mesh
+ * The modifier itself will be removed from the modifier stack.
+ * This flag can be checked to ignore rendering display data to the mesh.
+ * See `OBJECT_OT_modifier_apply` operator. */
+ MOD_APPLY_TO_BASE_MESH = 1 << 4,
} ModifierApplyFlag;
typedef struct ModifierUpdateDepsgraphContext {