diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-14 07:59:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-14 07:59:52 +0300 |
commit | 260fca5d08e2f95e1b600a9c76a98dedd2541e10 (patch) | |
tree | e3e53c32958b5dc47b0738df26afacda3a38ae6a /source/blender/makesrna/intern/rna_modifier.c | |
parent | 977ef04746d8a6a36a217330a02024cf768f636d (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.c | 6 |
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) |