From e7c4a0d53b950e5be77528efad907def59d18a8f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 Aug 2010 01:05:37 +0000 Subject: rna api - replace panel properties bl_default_closed and bl_show_header with bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'. this matches operators which also uses bl_options like this --- release/scripts/modules/rna_prop_ui.py | 2 +- release/scripts/ui/properties_animviz.py | 4 ++-- release/scripts/ui/properties_data_armature.py | 4 ++-- release/scripts/ui/properties_data_armature_rigify.py | 2 +- release/scripts/ui/properties_data_bone.py | 8 ++++---- release/scripts/ui/properties_data_camera.py | 2 +- release/scripts/ui/properties_data_curve.py | 2 +- release/scripts/ui/properties_data_lamp.py | 4 ++-- release/scripts/ui/properties_data_lattice.py | 2 +- release/scripts/ui/properties_data_mesh.py | 2 +- release/scripts/ui/properties_data_metaball.py | 2 +- release/scripts/ui/properties_game.py | 2 +- release/scripts/ui/properties_material.py | 16 ++++++++-------- release/scripts/ui/properties_object.py | 6 +++--- release/scripts/ui/properties_particle.py | 16 ++++++++-------- release/scripts/ui/properties_physics_cloth.py | 8 ++++---- release/scripts/ui/properties_physics_field.py | 2 +- release/scripts/ui/properties_physics_fluid.py | 6 +++--- release/scripts/ui/properties_physics_smoke.py | 10 +++++----- release/scripts/ui/properties_physics_softbody.py | 12 ++++++------ release/scripts/ui/properties_render.py | 14 +++++++------- release/scripts/ui/properties_texture.py | 10 +++++----- release/scripts/ui/properties_world.py | 6 +++--- release/scripts/ui/space_image.py | 6 +++--- release/scripts/ui/space_userpref.py | 14 +++++++------- release/scripts/ui/space_userpref_keymap.py | 2 +- release/scripts/ui/space_view3d.py | 10 +++++----- release/scripts/ui/space_view3d_toolbar.py | 16 ++++++++-------- 28 files changed, 95 insertions(+), 95 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 63762855737..91fc4e9092d 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -130,7 +130,7 @@ class PropertyPanel(): and the variable '_context_path' MUST be set. """ bl_label = "Custom Properties" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_animviz.py b/release/scripts/ui/properties_animviz.py index 9b605d02215..2a463331ac7 100644 --- a/release/scripts/ui/properties_animviz.py +++ b/release/scripts/ui/properties_animviz.py @@ -27,7 +27,7 @@ class MotionPathButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_label = "Motion Paths" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw_settings(self, context, avs, bones=False): layout = self.layout @@ -65,7 +65,7 @@ class OnionSkinButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_label = "Onion Skinning" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_data_armature.py b/release/scripts/ui/properties_data_armature.py index c5748c45fb4..17186378cb0 100644 --- a/release/scripts/ui/properties_data_armature.py +++ b/release/scripts/ui/properties_data_armature.py @@ -33,7 +33,7 @@ class ArmatureButtonsPanel(): class DATA_PT_context_arm(ArmatureButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout @@ -187,7 +187,7 @@ class DATA_PT_ghost(ArmatureButtonsPanel, bpy.types.Panel): class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, bpy.types.Panel): bl_label = "iTaSC parameters" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_data_armature_rigify.py b/release/scripts/ui/properties_data_armature_rigify.py index 1c2370cbb28..5903e433a4e 100644 --- a/release/scripts/ui/properties_data_armature_rigify.py +++ b/release/scripts/ui/properties_data_armature_rigify.py @@ -38,7 +38,7 @@ class DATA_PT_template(bpy.types.Panel): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = "data" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} templates = [] diff --git a/release/scripts/ui/properties_data_bone.py b/release/scripts/ui/properties_data_bone.py index 086a55aec4f..4df6177c1fc 100644 --- a/release/scripts/ui/properties_data_bone.py +++ b/release/scripts/ui/properties_data_bone.py @@ -33,7 +33,7 @@ class BoneButtonsPanel(): class BONE_PT_context_bone(BoneButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout @@ -95,7 +95,7 @@ class BONE_PT_transform(BoneButtonsPanel, bpy.types.Panel): class BONE_PT_transform_locks(BoneButtonsPanel, bpy.types.Panel): bl_label = "Transform Locks" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -207,7 +207,7 @@ class BONE_PT_display(BoneButtonsPanel, bpy.types.Panel): class BONE_PT_inverse_kinematics(BoneButtonsPanel, bpy.types.Panel): bl_label = "Inverse Kinematics" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -295,7 +295,7 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, bpy.types.Panel): class BONE_PT_deform(BoneButtonsPanel, bpy.types.Panel): bl_label = "Deform" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw_header(self, context): bone = context.bone diff --git a/release/scripts/ui/properties_data_camera.py b/release/scripts/ui/properties_data_camera.py index 1e4ec6deb18..f7a7ec6b7a9 100644 --- a/release/scripts/ui/properties_data_camera.py +++ b/release/scripts/ui/properties_data_camera.py @@ -34,7 +34,7 @@ class CameraButtonsPanel(): class DATA_PT_context_camera(CameraButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): diff --git a/release/scripts/ui/properties_data_curve.py b/release/scripts/ui/properties_data_curve.py index 3008db11b36..375136a335f 100644 --- a/release/scripts/ui/properties_data_curve.py +++ b/release/scripts/ui/properties_data_curve.py @@ -50,7 +50,7 @@ class CurveButtonsPanelActive(CurveButtonsPanel): class DATA_PT_context_curve(CurveButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_data_lamp.py b/release/scripts/ui/properties_data_lamp.py index ce0d404434d..e43b3379aca 100644 --- a/release/scripts/ui/properties_data_lamp.py +++ b/release/scripts/ui/properties_data_lamp.py @@ -42,7 +42,7 @@ class DataButtonsPanel(): class DATA_PT_context_lamp(DataButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -367,7 +367,7 @@ class DATA_PT_spot(DataButtonsPanel, bpy.types.Panel): class DATA_PT_falloff_curve(DataButtonsPanel, bpy.types.Panel): bl_label = "Falloff Curve" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod diff --git a/release/scripts/ui/properties_data_lattice.py b/release/scripts/ui/properties_data_lattice.py index c01aa034413..05b331ea0a2 100644 --- a/release/scripts/ui/properties_data_lattice.py +++ b/release/scripts/ui/properties_data_lattice.py @@ -33,7 +33,7 @@ class DataButtonsPanel(): class DATA_PT_context_lattice(DataButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py index af0df284fe4..9995fd3445f 100644 --- a/release/scripts/ui/properties_data_mesh.py +++ b/release/scripts/ui/properties_data_mesh.py @@ -60,7 +60,7 @@ class MeshButtonsPanel(): class DATA_PT_context_mesh(MeshButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): diff --git a/release/scripts/ui/properties_data_metaball.py b/release/scripts/ui/properties_data_metaball.py index 747ed56c12e..b4bf8dc5d70 100644 --- a/release/scripts/ui/properties_data_metaball.py +++ b/release/scripts/ui/properties_data_metaball.py @@ -33,7 +33,7 @@ class DataButtonsPanel(): class DATA_PT_context_metaball(DataButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_game.py b/release/scripts/ui/properties_game.py index 8d2f075fce0..e703f4a9812 100644 --- a/release/scripts/ui/properties_game.py +++ b/release/scripts/ui/properties_game.py @@ -368,7 +368,7 @@ class WorldButtonsPanel(): class WORLD_PT_game_context_world(WorldButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index e5f53d9ed0d..a71700706f7 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -65,7 +65,7 @@ class MaterialButtonsPanel(): class MATERIAL_PT_context_material(MaterialButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -300,7 +300,7 @@ class MATERIAL_PT_shading(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_transp(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Transparency" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -362,7 +362,7 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_mirror(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Mirror" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -420,7 +420,7 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_sss(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Subsurface Scattering" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -581,7 +581,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_strand(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Strand" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -673,7 +673,7 @@ class MATERIAL_PT_options(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_shadow(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Shadow" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -710,7 +710,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, bpy.types.Panel): class MATERIAL_PT_transp_game(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Transparency" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -871,7 +871,7 @@ class MATERIAL_PT_volume_integration(VolumeButtonsPanel, bpy.types.Panel): class MATERIAL_PT_volume_options(VolumeButtonsPanel, bpy.types.Panel): bl_label = "Options" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_object.py b/release/scripts/ui/properties_object.py index c0d37c16519..bf1878cc666 100644 --- a/release/scripts/ui/properties_object.py +++ b/release/scripts/ui/properties_object.py @@ -29,7 +29,7 @@ class ObjectButtonsPanel(): class OBJECT_PT_context_object(ObjectButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout @@ -72,7 +72,7 @@ class OBJECT_PT_transform(ObjectButtonsPanel, bpy.types.Panel): class OBJECT_PT_transform_locks(ObjectButtonsPanel, bpy.types.Panel): bl_label = "Transform Locks" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout @@ -238,7 +238,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, bpy.types.Panel): class OBJECT_PT_animation(ObjectButtonsPanel, bpy.types.Panel): bl_label = "Animation Hacks" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/properties_particle.py b/release/scripts/ui/properties_particle.py index 5dd7ef7e94b..fbcc83240f1 100644 --- a/release/scripts/ui/properties_particle.py +++ b/release/scripts/ui/properties_particle.py @@ -52,7 +52,7 @@ class ParticleButtonsPanel(): class PARTICLE_PT_context_particles(ParticleButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -196,7 +196,7 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Hair dynamics" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -254,7 +254,7 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_cache(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Cache" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -828,7 +828,7 @@ class PARTICLE_PT_render(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_draw(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Display" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -884,7 +884,7 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_children(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Children" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -966,7 +966,7 @@ class PARTICLE_PT_children(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_field_weights(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Field Weights" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -979,7 +979,7 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_force_fields(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Force Field Settings" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -1007,7 +1007,7 @@ class PARTICLE_PT_force_fields(ParticleButtonsPanel, bpy.types.Panel): class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, bpy.types.Panel): bl_label = "Vertexgroups" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): diff --git a/release/scripts/ui/properties_physics_cloth.py b/release/scripts/ui/properties_physics_cloth.py index 7936b5e04ee..099711f6dec 100644 --- a/release/scripts/ui/properties_physics_cloth.py +++ b/release/scripts/ui/properties_physics_cloth.py @@ -131,7 +131,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Cloth Cache" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -144,7 +144,7 @@ class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Cloth Collision" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -183,7 +183,7 @@ class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Cloth Stiffness Scaling" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -219,7 +219,7 @@ class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Cloth Field Weights" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_physics_field.py b/release/scripts/ui/properties_physics_field.py index 80ea999eedb..07d748e8c28 100644 --- a/release/scripts/ui/properties_physics_field.py +++ b/release/scripts/ui/properties_physics_field.py @@ -158,7 +158,7 @@ class PHYSICS_PT_field(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_collision(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Collision" - #bl_default_closed = True + #bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_physics_fluid.py b/release/scripts/ui/properties_physics_fluid.py index 035eefe6c2a..9973141653b 100644 --- a/release/scripts/ui/properties_physics_fluid.py +++ b/release/scripts/ui/properties_physics_fluid.py @@ -201,7 +201,7 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Domain World" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -251,7 +251,7 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Domain Boundary" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -279,7 +279,7 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_domain_particles(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Domain Particles" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_physics_smoke.py b/release/scripts/ui/properties_physics_smoke.py index 41658daf808..c1b088da785 100644 --- a/release/scripts/ui/properties_physics_smoke.py +++ b/release/scripts/ui/properties_physics_smoke.py @@ -121,7 +121,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Smoke Groups" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -149,7 +149,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Smoke Cache" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -170,7 +170,7 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Smoke High Resolution" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -205,7 +205,7 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Smoke High Resolution Cache" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -226,7 +226,7 @@ class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Smoke Field Weights" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_physics_softbody.py b/release/scripts/ui/properties_physics_softbody.py index 0403e256bdf..2411f460f4b 100644 --- a/release/scripts/ui/properties_physics_softbody.py +++ b/release/scripts/ui/properties_physics_softbody.py @@ -86,7 +86,7 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Cache" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -99,7 +99,7 @@ class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Goal" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -142,7 +142,7 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Edges" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -196,7 +196,7 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Self Collision" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -228,7 +228,7 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Solver" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -264,7 +264,7 @@ class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, bpy.types.Panel): class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel, bpy.types.Panel): bl_label = "Soft Body Field Weights" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): diff --git a/release/scripts/ui/properties_render.py b/release/scripts/ui/properties_render.py index fcd5a229cd9..aef95056391 100644 --- a/release/scripts/ui/properties_render.py +++ b/release/scripts/ui/properties_render.py @@ -68,7 +68,7 @@ class RENDER_PT_render(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_layers(RenderButtonsPanel, bpy.types.Panel): bl_label = "Layers" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -194,7 +194,7 @@ class RENDER_PT_shading(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel): bl_label = "Performance" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -236,7 +236,7 @@ class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_post_processing(RenderButtonsPanel, bpy.types.Panel): bl_label = "Post Processing" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -389,7 +389,7 @@ class RENDER_PT_output(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_encoding(RenderButtonsPanel, bpy.types.Panel): bl_label = "Encoding" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -485,7 +485,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_motion_blur(RenderButtonsPanel, bpy.types.Panel): bl_label = "Full Sample Motion Blur" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -550,7 +550,7 @@ class RENDER_PT_dimensions(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_stamp(RenderButtonsPanel, bpy.types.Panel): bl_label = "Stamp" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -594,7 +594,7 @@ class RENDER_PT_stamp(RenderButtonsPanel, bpy.types.Panel): class RENDER_PT_bake(RenderButtonsPanel, bpy.types.Panel): bl_label = "Bake" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): diff --git a/release/scripts/ui/properties_texture.py b/release/scripts/ui/properties_texture.py index be523f735d8..5f44f573a25 100644 --- a/release/scripts/ui/properties_texture.py +++ b/release/scripts/ui/properties_texture.py @@ -76,7 +76,7 @@ class TextureButtonsPanel(): class TEXTURE_PT_context_texture(TextureButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -157,7 +157,7 @@ class TEXTURE_PT_preview(TextureButtonsPanel, bpy.types.Panel): class TEXTURE_PT_colors(TextureButtonsPanel, bpy.types.Panel): bl_label = "Colors" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -592,7 +592,7 @@ def texture_filter_common(tex, layout): class TEXTURE_PT_image_sampling(TextureTypePanel, bpy.types.Panel): bl_label = "Image Sampling" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} tex_type = 'IMAGE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -630,7 +630,7 @@ class TEXTURE_PT_image_sampling(TextureTypePanel, bpy.types.Panel): class TEXTURE_PT_image_mapping(TextureTypePanel, bpy.types.Panel): bl_label = "Image Mapping" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} tex_type = 'IMAGE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -721,7 +721,7 @@ class TEXTURE_PT_envmap(TextureTypePanel, bpy.types.Panel): class TEXTURE_PT_envmap_sampling(TextureTypePanel, bpy.types.Panel): bl_label = "Environment Map Sampling" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} tex_type = 'ENVIRONMENT_MAP' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} diff --git a/release/scripts/ui/properties_world.py b/release/scripts/ui/properties_world.py index a42516a63b4..9f93137252e 100644 --- a/release/scripts/ui/properties_world.py +++ b/release/scripts/ui/properties_world.py @@ -36,7 +36,7 @@ class WorldButtonsPanel(): class WORLD_PT_context_world(WorldButtonsPanel, bpy.types.Panel): bl_label = "" - bl_show_header = False + bl_options = {'HIDE_HEADER'} COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -204,7 +204,7 @@ class WORLD_PT_gather(WorldButtonsPanel, bpy.types.Panel): class WORLD_PT_mist(WorldButtonsPanel, bpy.types.Panel): bl_label = "Mist" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -233,7 +233,7 @@ class WORLD_PT_mist(WorldButtonsPanel, bpy.types.Panel): class WORLD_PT_stars(WorldButtonsPanel, bpy.types.Panel): bl_label = "Stars" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index eaafa1a7038..bd59aaa42fa 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -604,7 +604,7 @@ class IMAGE_PT_paint(bpy.types.Panel): class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, bpy.types.Panel): bl_label = "Texture" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout @@ -621,7 +621,7 @@ class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, bpy.types.Panel): class IMAGE_PT_paint_stroke(BrushButtonsPanel, bpy.types.Panel): bl_label = "Paint Stroke" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout @@ -645,7 +645,7 @@ class IMAGE_PT_paint_stroke(BrushButtonsPanel, bpy.types.Panel): class IMAGE_PT_paint_curve(BrushButtonsPanel, bpy.types.Panel): bl_label = "Paint Curve" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def draw(self, context): layout = self.layout diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index feeae5d3f9b..cf0ef4939ef 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -100,7 +100,7 @@ class USERPREF_PT_tabs(bpy.types.Panel): bl_label = "" bl_space_type = 'USER_PREFERENCES' bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw(self, context): layout = self.layout @@ -134,7 +134,7 @@ class USERPREF_PT_interface(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Interface" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} @classmethod def poll(cls, context): @@ -229,7 +229,7 @@ class USERPREF_PT_edit(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Edit" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} @classmethod def poll(cls, context): @@ -344,7 +344,7 @@ class USERPREF_PT_system(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "System" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} @classmethod def poll(cls, context): @@ -479,7 +479,7 @@ class USERPREF_PT_theme(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Themes" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} @staticmethod def _theme_generic(split, themedata): @@ -642,7 +642,7 @@ class USERPREF_PT_file(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Files" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} @classmethod def poll(cls, context): @@ -807,7 +807,7 @@ class USERPREF_PT_addons(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Addons" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} _addons_fake_modules = {} diff --git a/release/scripts/ui/space_userpref_keymap.py b/release/scripts/ui/space_userpref_keymap.py index ac6ac9ea238..6805646ded4 100644 --- a/release/scripts/ui/space_userpref_keymap.py +++ b/release/scripts/ui/space_userpref_keymap.py @@ -128,7 +128,7 @@ class InputKeyMapPanel(bpy.types.Panel): bl_space_type = 'USER_PREFERENCES' bl_label = "Input" bl_region_type = 'WINDOW' - bl_show_header = False + bl_options = {'HIDE_HEADER'} def draw_entry(self, display_keymaps, entry, col, level=0): idname, spaceid, regionid, children = entry diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index b7e7ba39eb5..fa2cd753e86 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -2002,7 +2002,7 @@ class VIEW3D_PT_view3d_display(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_label = "Display" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -2130,7 +2130,7 @@ class VIEW3D_PT_background_image(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_label = "Background Images" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -2180,7 +2180,7 @@ class VIEW3D_PT_transform_orientations(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_label = "Transform Orientations" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -2208,7 +2208,7 @@ class VIEW3D_PT_etch_a_ton(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_label = "Skeleton Sketching" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -2252,7 +2252,7 @@ class VIEW3D_PT_context_properties(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_label = "Properties" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} def _active_context_member(context): obj = context.object diff --git a/release/scripts/ui/space_view3d_toolbar.py b/release/scripts/ui/space_view3d_toolbar.py index 58923748607..712f06c8fe3 100644 --- a/release/scripts/ui/space_view3d_toolbar.py +++ b/release/scripts/ui/space_view3d_toolbar.py @@ -719,7 +719,7 @@ class VIEW3D_PT_tools_brush(PaintPanel, bpy.types.Panel): class VIEW3D_PT_tools_brush_texture(PaintPanel, bpy.types.Panel): bl_label = "Texture" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -818,7 +818,7 @@ class VIEW3D_PT_tools_brush_texture(PaintPanel, bpy.types.Panel): class VIEW3D_PT_tools_brush_tool(PaintPanel, bpy.types.Panel): bl_label = "Tool" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -854,7 +854,7 @@ class VIEW3D_PT_tools_brush_tool(PaintPanel, bpy.types.Panel): class VIEW3D_PT_tools_brush_stroke(PaintPanel, bpy.types.Panel): bl_label = "Stroke" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -952,7 +952,7 @@ class VIEW3D_PT_tools_brush_stroke(PaintPanel, bpy.types.Panel): class VIEW3D_PT_tools_brush_curve(PaintPanel, bpy.types.Panel): bl_label = "Curve" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -979,7 +979,7 @@ class VIEW3D_PT_tools_brush_curve(PaintPanel, bpy.types.Panel): class VIEW3D_PT_sculpt_options(PaintPanel, bpy.types.Panel): bl_label = "Options" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -1018,7 +1018,7 @@ class VIEW3D_PT_sculpt_options(PaintPanel, bpy.types.Panel): class VIEW3D_PT_sculpt_symmetry(PaintPanel, bpy.types.Panel): bl_label = "Symmetry" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -1053,7 +1053,7 @@ class VIEW3D_PT_sculpt_symmetry(PaintPanel, bpy.types.Panel): class VIEW3D_PT_tools_brush_appearance(PaintPanel, bpy.types.Panel): bl_label = "Appearance" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -1244,7 +1244,7 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, bpy.types.Panel): class VIEW3D_PT_imagepaint_options(PaintPanel): bl_label = "Options" - bl_default_closed = True + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): -- cgit v1.2.3