Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_lightprobe.py
| Show All 22 Lines | |||||
| class DataButtonsPanel: | class DataButtonsPanel: | ||||
| bl_space_type = 'PROPERTIES' | bl_space_type = 'PROPERTIES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_context = "data" | bl_context = "data" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| engine = context.scene.render.engine | engine = context.engine | ||||
| return context.lightprobe and (engine in cls.COMPAT_ENGINES) | return context.lightprobe and (engine in cls.COMPAT_ENGINES) | ||||
| class DATA_PT_context_lightprobe(DataButtonsPanel, Panel): | class DATA_PT_context_lightprobe(DataButtonsPanel, Panel): | ||||
| bl_label = "" | bl_label = "" | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| COMPAT_ENGINES = {'BLENDER_CLAY', 'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_CLAY', 'BLENDER_EEVEE'} | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel): | class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel): | ||||
| bl_label = "Parallax" | bl_label = "Parallax" | ||||
| COMPAT_ENGINES = {'BLENDER_CLAY', 'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_CLAY', 'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| engine = context.scene.render.engine | engine = context.engine | ||||
| return context.lightprobe and context.lightprobe.type == 'CUBEMAP' and (engine in cls.COMPAT_ENGINES) | return context.lightprobe and context.lightprobe.type == 'CUBEMAP' and (engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ob = context.object | ob = context.object | ||||
| probe = context.lightprobe | probe = context.lightprobe | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||