Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_node.py
| Show First 20 Lines • Show All 664 Lines • ▼ Show 20 Lines | |||||
| class NODE_PT_texture_mapping(Panel): | class NODE_PT_texture_mapping(Panel): | ||||
| bl_space_type = 'NODE_EDITOR' | bl_space_type = 'NODE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_category = "Node" | bl_category = "Node" | ||||
| bl_label = "Texture Mapping" | bl_label = "Texture Mapping" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| node = context.active_node | node = context.active_node | ||||
| return node and hasattr(node, "texture_mapping") and (context.engine in cls.COMPAT_ENGINES) | return node and hasattr(node, "texture_mapping") and (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines | |||||