diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-22 09:37:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-22 09:49:57 +0300 |
commit | a22f3cccec367470ee0b72a8667f214e234e3fc8 (patch) | |
tree | 911940c55036ac16823c6ee8c3883f3b802846e4 | |
parent | 4d146bdf13090008e6d3c552eb2fadc12c206369 (diff) |
Fix outliner grease pencil color button
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 48a15eac337..aaca61ed5cf 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -848,6 +848,10 @@ static TreeElement *outliner_add_element(SpaceOops *soops, ListBase *lb, void *i id = ((PointerRNA *)idv)->id.data; if (!id) id = ((PointerRNA *)idv)->data; } + else if (type == TSE_GP_LAYER) { + /* idv is the layer its self */ + id = TREESTORE(parent)->id; + } /* One exception */ if (type == TSE_ID_BASE) { |