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-19 06:49:39 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-07-19 06:49:39 +0300
commitb7b2386cffca5cf75b0a2b49d8274621c5c674e4 (patch)
tree4f43944fbfb9623b0a7d11943bc01077609990fe /source/blender/editors/space_outliner/outliner_draw.c
parent7231cc5414d1e92de4da824f0724539d2b1e3329 (diff)
Outliner: Add generic UI Stack drop operator
Replaces the modifier drop operator and works for modifiers, constraints, and shader fx. Because these three elements share common traits, it made the code simpler to combine the operator for all three. Three types of actions are supported depending on where the element is dropped: * Drop within the same list to reorder. * Drop on another object to copy. * Drop the base (parent) element to link all to another object. A few cases are yet unsupported but will be added to blenkernel.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index e9a92c644fb..e5316ae9d49 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2050,9 +2050,11 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
break;
case TSE_CONSTRAINT_BASE:
data.icon = ICON_CONSTRAINT;
+ data.drag_id = tselem->id;
break;
case TSE_CONSTRAINT: {
bConstraint *con = te->directdata;
+ data.drag_id = tselem->id;
switch ((eBConstraint_Types)con->type) {
case CONSTRAINT_TYPE_CAMERASOLVER:
data.icon = ICON_CON_CAMERASOLVER;
@@ -2502,6 +2504,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
}
case TSE_EFFECT_BASE:
case TSE_EFFECT:
+ data.drag_id = tselem->id;
data.icon = ICON_SHADERFX;
break;
default: