[Bf-blender-cvs] [e433e4ae42a] temp-attribute-processor: cleanup

Jacques Lucke noreply at git.blender.org
Wed Jun 9 12:51:20 CEST 2021


Commit: e433e4ae42ab95252d1c1eaff81589f1b0243271
Author: Jacques Lucke
Date:   Wed Jun 9 10:18:47 2021 +0200
Branches: temp-attribute-processor
https://developer.blender.org/rBe433e4ae42ab95252d1c1eaff81589f1b0243271

cleanup

===================================================================

M	release/scripts/startup/nodeitems_builtins.py

===================================================================

diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py
index 7a2bd948da1..bb823d47b6e 100644
--- a/release/scripts/startup/nodeitems_builtins.py
+++ b/release/scripts/startup/nodeitems_builtins.py
@@ -48,7 +48,7 @@ class SortedNodeCategory(NodeCategory):
         super().__init__(identifier, name, description=description, items=items)
 
 
-def is_node_tree_type_visible(context, idname):
+def edit_tree_is_type(context, idname):
     space = context.space_data
     if space.type != 'NODE_EDITOR':
         return False
@@ -60,30 +60,30 @@ def is_node_tree_type_visible(context, idname):
 class CompositorNodeCategory(SortedNodeCategory):
     @classmethod
     def poll(cls, context):
-        return is_node_tree_type_visible(context, 'CompositorNodeTree')
+        return edit_tree_is_type(context, 'CompositorNodeTree')
 
 
 class ShaderNodeCategory(SortedNodeCategory):
     @classmethod
     def poll(cls, context):
-        return is_node_tree_type_visible(context, 'ShaderNodeTree')
+        return edit_tree_is_type(context, 'ShaderNodeTree')
 
 
 class TextureNodeCategory(SortedNodeCategory):
     @classmethod
     def poll(cls, context):
-        return is_node_tree_type_visible(context, 'TextureNodeTree')
+        return edit_tree_is_type(context, 'TextureNodeTree')
 
 
 class GeometryNodeCategory(SortedNodeCategory):
     @classmethod
     def poll(cls, context):
-        return is_node_tree_type_visible(context, 'GeometryNodeTree')
+        return edit_tree_is_type(context, 'GeometryNodeTree')
 
 class AttributeNodeCategory(SortedNodeCategory):
     @classmethod
     def poll(cls, context):
-        return is_node_tree_type_visible(context, 'AttributeNodeTree')
+        return edit_tree_is_type(context, 'AttributeNodeTree')
 
 
 # menu entry for node group tools



More information about the Bf-blender-cvs mailing list