Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-19 16:04:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-19 16:04:14 +0300
commitc2c71e59ed9c86ccd182993a7b942833f06864c8 (patch)
tree923d987ebffc3a37bd49a79011ecb475b2511cd4 /release/scripts/modules/rna_prop_ui.py
parent8dcd210de0661d0cb15d139e2dc724129e6ef432 (diff)
fix for own error [#25299] custom properties not showing in viedw3d panel
error made when fixing id pinning, for non-properties space.
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r--release/scripts/modules/rna_prop_ui.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index 7c77a01d646..2e3f9af8d1b 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -60,7 +60,11 @@ def rna_idprop_ui_prop_clear(item, prop):
def rna_idprop_context_value(context, context_member, property_type):
space = context.space_data
- pin_id = space.pin_id
+
+ if space is None or isinstance(space, bpy.types.SpaceProperties):
+ pin_id = space.pin_id
+ else:
+ pin_id = None
if pin_id and isinstance(pin_id, property_type):
rna_item = pin_id