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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-06-23 18:34:02 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-06-23 18:37:41 +0400
commit647870bc6af4fae4ec0408ede2da9f5b4dabe7f2 (patch)
tree763f659dd29e42c44b0c104769157b0b7d137a69 /release/scripts/modules/nodeitems_utils.py
parentb82e84f17917915d83bc3da292d2441bc126f87c (diff)
Use toolbar tabs for node categories instead of just a long list of
panels. Patch by @Severin (with minor modifications by me). As discussed in {D535} the node editor does not have real modal operator tools like the 3D view or image editors for instance, so it makes sense to utilise it this way. Tabs really help in this area due to the large amount of node types and categories. Further tweaks could be made later if the need arises.
Diffstat (limited to 'release/scripts/modules/nodeitems_utils.py')
-rw-r--r--release/scripts/modules/nodeitems_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/nodeitems_utils.py b/release/scripts/modules/nodeitems_utils.py
index f017c76ae6f..1fef6c3a019 100644
--- a/release/scripts/modules/nodeitems_utils.py
+++ b/release/scripts/modules/nodeitems_utils.py
@@ -108,7 +108,7 @@ def register_node_categories(identifier, cat_list):
"bl_space_type": 'NODE_EDITOR',
"bl_region_type": 'TOOLS',
"bl_label": cat.name,
- "bl_options": {'DEFAULT_CLOSED'},
+ "bl_category": cat.name,
"category": cat,
"poll": cat.poll,
"draw": draw_node_item,