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
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-12-14 17:44:28 +0300
committerJacques Lucke <jacques@blender.org>2020-12-14 17:44:28 +0300
commit07ce9910f7ccaa48ae28c35049dec598b6214b36 (patch)
tree1821ac8507b1238abc371ac53d3a0ffd067d242b /source
parent9ee7270e0acc6d60c8eac9e25cca00aa384c0879 (diff)
Geometry Nodes: enabled supports-mapping in nodes modifier
Sometimes the geometry nodes modifier does support mapping and sometimes it does not. We have no infrastruture to determine this ahead of time currently. In order to support common use cases, it makes sense to add this flag to the modifier. One such common use case is to use the mesh as surface that other things are distributed on. Often, the distribution is controlled by vertex groups. Therefore, it would be helpful if the modifier is evaluated when the object is in vertex paint mode. This allows the user to see the distributed objects while painting. If the nodes modifier transforms the mesh in any way, vertex painting might not work as expected anymore, because the `deformMatrices` callback is not implemented. I'm not sure how this can be solved nicely, yet.
Diffstat (limited to 'source')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 652558655ce..657fbb7e7f1 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -1079,9 +1079,9 @@ ModifierTypeInfo modifierType_Nodes = {
/* srna */ &RNA_NodesModifier,
/* type */ eModifierTypeType_Constructive,
/* flags */
- static_cast<ModifierTypeFlag>(eModifierTypeFlag_AcceptsMesh |
- eModifierTypeFlag_SupportsEditmode |
- eModifierTypeFlag_EnableInEditmode),
+ static_cast<ModifierTypeFlag>(
+ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsEditmode |
+ eModifierTypeFlag_EnableInEditmode | eModifierTypeFlag_SupportsMapping),
/* icon */ ICON_NODETREE,
/* copyData */ copyData,