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
path: root/source
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2022-05-03 14:37:37 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-05-05 15:44:31 +0300
commitb968e2bf48ff7a67972c938e17c1723f1c116ddc (patch)
tree09b3a5ca7bedc054a91bda4835765e7fe78f31c7 /source
parent6fa5d520b861e8d5b96967452c50b459c52e8024 (diff)
Outliner: add icons for nodegroups
These were missing in "Blender File" view. before {F13053175} after {F13053176} Differential Revision: https://developer.blender.org/D14859
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc
index d898be4eb2c..ff99416c213 100644
--- a/source/blender/editors/space_outliner/outliner_draw.cc
+++ b/source/blender/editors/space_outliner/outliner_draw.cc
@@ -38,6 +38,7 @@
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
+#include "BKE_node.h"
#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_report.h"
@@ -2504,6 +2505,11 @@ static BIFIconID tree_element_get_icon_from_id(const ID *id)
return ICON_WORKSPACE;
case ID_MSK:
return ICON_MOD_MASK;
+ case ID_NT: {
+ const bNodeTree *ntree = (bNodeTree *)id;
+ const bNodeTreeType *ntreetype = ntree->typeinfo;
+ return (BIFIconID)ntreetype->ui_icon;
+ }
case ID_MC:
return ICON_SEQUENCE;
case ID_PC: