Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/app/io_export_cycles_xml.py
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| # User Interface Drawing Code | # User Interface Drawing Code | ||||
| class RenderButtonsPanel(): | class RenderButtonsPanel(): | ||||
| bl_space_type = 'PROPERTIES' | bl_space_type = 'PROPERTIES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_context = "render" | bl_context = "render" | ||||
| @classmethod | @classmethod | ||||
| def poll(self, context): | def poll(self, context): | ||||
| rd = context.scene.render | return context.engine == 'CYCLES' | ||||
| return rd.engine == 'CYCLES' | |||||
| class PHYSICS_PT_fluid_export(RenderButtonsPanel, bpy.types.Panel): | class PHYSICS_PT_fluid_export(RenderButtonsPanel, bpy.types.Panel): | ||||
| bl_label = "Cycles XML Exporter" | bl_label = "Cycles XML Exporter" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||