diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-30 15:22:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-30 15:22:28 +0300 |
commit | 9733e5f76fdc87c3c5801a372f86062d47f844d4 (patch) | |
tree | 5cc5ba86a76a259c7d96ab6fdad3f55171ac9314 /release | |
parent | e68a9ab95fb9cd3e94441c1ca8c664355533afbf (diff) |
revert part of Tons commit r33884.
- rather then use unlink="None", just don't pass unlink as a keyword. This is more pythonic.
- added an RNA flag for properties which cant be unlinked by setting to None.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/properties_data_armature.py | 4 | ||||
-rw-r--r-- | release/scripts/ui/properties_data_curve.py | 4 | ||||
-rw-r--r-- | release/scripts/ui/properties_data_mesh.py | 4 | ||||
-rw-r--r-- | release/scripts/ui/properties_data_metaball.py | 4 | ||||
-rw-r--r-- | release/scripts/ui/properties_object.py | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/ui/properties_data_armature.py b/release/scripts/ui/properties_data_armature.py index 57ac8ff7e2d..c3d3c358dbe 100644 --- a/release/scripts/ui/properties_data_armature.py +++ b/release/scripts/ui/properties_data_armature.py @@ -43,9 +43,9 @@ class DATA_PT_context_arm(ArmatureButtonsPanel, bpy.types.Panel): space = context.space_data if ob: - layout.template_ID(ob, "data", unlink="None") + layout.template_ID(ob, "data") elif arm: - layout.template_ID(space, "pin_id", unlink="None") + layout.template_ID(space, "pin_id") class DATA_PT_skeleton(ArmatureButtonsPanel, bpy.types.Panel): diff --git a/release/scripts/ui/properties_data_curve.py b/release/scripts/ui/properties_data_curve.py index d13232ca2e1..f7cfb1bb8bf 100644 --- a/release/scripts/ui/properties_data_curve.py +++ b/release/scripts/ui/properties_data_curve.py @@ -60,9 +60,9 @@ class DATA_PT_context_curve(CurveButtonsPanel, bpy.types.Panel): space = context.space_data if ob: - layout.template_ID(ob, "data", unlink="None") + layout.template_ID(ob, "data") elif curve: - layout.template_ID(space, "pin_id", unlink="None") # XXX: broken + layout.template_ID(space, "pin_id") # XXX: broken class DATA_PT_shape_curve(CurveButtonsPanel, bpy.types.Panel): diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py index 52ac88ba168..ecaafa3c66c 100644 --- a/release/scripts/ui/properties_data_mesh.py +++ b/release/scripts/ui/properties_data_mesh.py @@ -71,9 +71,9 @@ class DATA_PT_context_mesh(MeshButtonsPanel, bpy.types.Panel): space = context.space_data if ob: - layout.template_ID(ob, "data", unlink="None") + layout.template_ID(ob, "data") elif mesh: - layout.template_ID(space, "pin_id", unlink="None") + layout.template_ID(space, "pin_id") class DATA_PT_normals(MeshButtonsPanel, bpy.types.Panel): diff --git a/release/scripts/ui/properties_data_metaball.py b/release/scripts/ui/properties_data_metaball.py index 115a20682a9..bbe027c5ea4 100644 --- a/release/scripts/ui/properties_data_metaball.py +++ b/release/scripts/ui/properties_data_metaball.py @@ -43,9 +43,9 @@ class DATA_PT_context_metaball(DataButtonsPanel, bpy.types.Panel): space = context.space_data if ob: - layout.template_ID(ob, "data", unlink="None") + layout.template_ID(ob, "data") elif mball: - layout.template_ID(space, "pin_id", unlink="None") + layout.template_ID(space, "pin_id") class DATA_PT_metaball(DataButtonsPanel, bpy.types.Panel): diff --git a/release/scripts/ui/properties_object.py b/release/scripts/ui/properties_object.py index c16dc052b86..ce04f73294e 100644 --- a/release/scripts/ui/properties_object.py +++ b/release/scripts/ui/properties_object.py @@ -37,7 +37,7 @@ class OBJECT_PT_context_object(ObjectButtonsPanel, bpy.types.Panel): ob = context.object if space.use_pin_id: - layout.template_ID(space, "pin_id", unlink="None") + layout.template_ID(space, "pin_id") else: row = layout.row() row.label(text="", icon='OBJECT_DATA') |