LEFT | RIGHT |
1 # ##### BEGIN GPL LICENSE BLOCK ##### | 1 # ##### BEGIN GPL LICENSE BLOCK ##### |
2 # | 2 # |
3 # This program is free software; you can redistribute it and/or | 3 # This program is free software; you can redistribute it and/or |
4 # modify it under the terms of the GNU General Public License | 4 # modify it under the terms of the GNU General Public License |
5 # as published by the Free Software Foundation; either version 2 | 5 # as published by the Free Software Foundation; either version 2 |
6 # of the License, or (at your option) any later version. | 6 # of the License, or (at your option) any later version. |
7 # | 7 # |
8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 class MATERIAL_PT_flare(MaterialButtonsPanel, Panel): | 599 class MATERIAL_PT_flare(MaterialButtonsPanel, Panel): |
600 bl_label = "Flare" | 600 bl_label = "Flare" |
601 COMPAT_ENGINES = {'BLENDER_RENDER'} | 601 COMPAT_ENGINES = {'BLENDER_RENDER'} |
602 | 602 |
603 @classmethod | 603 @classmethod |
604 def poll(cls, context): | 604 def poll(cls, context): |
605 mat = context.material | 605 mat = context.material |
606 engine = context.scene.render.engine | 606 engine = context.scene.render.engine |
607 return mat and (mat.type == 'HALO') and (engine in cls.COMPAT_ENGINES) | 607 return mat and (mat.type == 'HALO') and (engine in cls.COMPAT_ENGINES) |
608 | 608 |
| 609 def draw_header(self, context): |
| 610 halo = context.material.halo |
| 611 |
609 col.prop(halo, "flare_subflare_size", text="Subsize") | 612 col.prop(halo, "flare_subflare_size", text="Subsize") |
610 | 613 |
611 | 614 |
612 class MATERIAL_PT_physics(MaterialButtonsPanel, bpy.types.Panel): | 615 class MATERIAL_PT_physics(MaterialButtonsPanel, Panel): |
613 bl_label = "Physics" | 616 bl_label = "Physics" |
614 COMPAT_ENGINES = {'BLENDER_GAME'} | 617 COMPAT_ENGINES = {'BLENDER_GAME'} |
615 | 618 |
616 @classmethod | 619 @classmethod |
617 def poll(cls, context): | 620 def poll(cls, context): |
LEFT | RIGHT |