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:
authorNathan Craddock <nzcraddock@gmail.com>2020-07-05 01:37:57 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-07-05 01:37:57 +0300
commit7fdc6c5ca68ec38fb0df946b9ffb4b30e595c2bb (patch)
tree0b9a414c06ce051a0c7d86c01fc92364fb39adc1 /source/blender/editors/space_outliner/outliner_draw.c
parent561bd0ebaca635561751bf564774675f2736dd78 (diff)
Outliner: Modifier drop link and cleanup
Allow drag and drop from modifier base to another object to link modifiers. Also clean up the code. There are still issues with the modifier reorder.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 2abdd3aee1f..8c1953064a4 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2147,6 +2147,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
}
case TSE_MODIFIER_BASE:
data.icon = ICON_MODIFIER_DATA;
+ data.drag_id = tselem->id;
break;
case TSE_LINKED_OB:
data.icon = ICON_OBJECT_DATA;