Cleanup: redundant check for shader type
Pull Request: https://projects.blender.org/blender/blender/pulls/143784
This commit is contained in:
@@ -1456,7 +1456,7 @@ class CYCLES_OBJECT_PT_visibility_culling(CyclesButtonsPanel, Panel):
|
||||
def panel_node_draw(layout, id_data, output_type, input_name):
|
||||
from bpy_extras.node_utils import find_node_input
|
||||
|
||||
if not isinstance(id_data, bpy.types.World) and not id_data.use_nodes:
|
||||
if output_type != 'OUTPUT_WORLD' and not id_data.use_nodes:
|
||||
layout.operator("cycles.use_shading_nodes", icon='NODETREE')
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user