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:
authorHans Goudey <h.goudey@me.com>2020-12-14 07:59:52 +0300
committerHans Goudey <h.goudey@me.com>2020-12-14 07:59:52 +0300
commit260fca5d08e2f95e1b600a9c76a98dedd2541e10 (patch)
treee3e53c32958b5dc47b0738df26afacda3a38ae6a /source/blender/makesrna/intern/rna_modifier.c
parent977ef04746d8a6a36a217330a02024cf768f636d (diff)
Fix T83673: Custom node trees selectable in nodes modifier
Node tree types from addons were selectable in the modifier's drop-down. Obviously they didn't do anything, but it shouldn't be possible anyway. This was just caused by an unimplemented poll function.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 80c2cbfb3ad..c32cc89aa30 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1603,12 +1603,10 @@ static int rna_MeshSequenceCacheModifier_read_velocity_get(PointerRNA *ptr)
# endif
}
-static bool rna_NodesModifier_node_group_poll(PointerRNA *ptr, PointerRNA value)
+static bool rna_NodesModifier_node_group_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
{
- NodesModifierData *nmd = ptr->data;
bNodeTree *ntree = value.data;
- UNUSED_VARS(nmd, ntree);
- return true;
+ return ntree->type == NTREE_GEOMETRY;
}
static void rna_NodesModifier_node_group_update(Main *bmain, Scene *scene, PointerRNA *ptr)