Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_world.py
| Show All 31 Lines | class WorldButtonsPanel: | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.world and context.engine in cls.COMPAT_ENGINES) | return (context.world and context.engine in cls.COMPAT_ENGINES) | ||||
| class WORLD_PT_context_world(WorldButtonsPanel, Panel): | class WORLD_PT_context_world(WorldButtonsPanel, Panel): | ||||
| bl_label = "" | bl_label = "" | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL', 'BLENDER_LANPR'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 29 Lines | def draw(self, context): | ||||
| world = context.world | world = context.world | ||||
| layout.prop(world.mist_settings, "start") | layout.prop(world.mist_settings, "start") | ||||
| layout.prop(world.mist_settings, "depth") | layout.prop(world.mist_settings, "depth") | ||||
| layout.prop(world.mist_settings, "falloff") | layout.prop(world.mist_settings, "falloff") | ||||
| class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, Panel): | class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL', 'BLENDER_LANPR'} | ||||
| _context_path = "world" | _context_path = "world" | ||||
| _property_type = bpy.types.World | _property_type = bpy.types.World | ||||
| class EEVEE_WORLD_PT_surface(WorldButtonsPanel, Panel): | class EEVEE_WORLD_PT_surface(WorldButtonsPanel, Panel): | ||||
| bl_label = "Surface" | bl_label = "Surface" | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||