From 18701c19fa91572cb44643de31853335a6737925 Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Tue, 15 Sep 2020 14:50:21 -0600 Subject: GPencil: Add link and copy functions for shaderfx Adds two functions: one to copy a shaderfx between two gpencil objects, and another to link all shaderfx between two gpencil objects. Added in preparation for outliner shaderfx drag and drop. Differential Revision: https://developer.blender.org/D8642 --- source/blender/editors/include/ED_object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include/ED_object.h') diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index b0ef22575ee..8762ac6d0bb 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -477,6 +477,8 @@ bool ED_object_shaderfx_move_to_index(struct ReportList *reports, struct Object *ob, struct ShaderFxData *fx, const int index); +void ED_object_shaderfx_link(struct Object *dst, struct Object *src); +void ED_object_shaderfx_copy(struct Object *dst, struct ShaderFxData *fx); /* object_select.c */ void ED_object_select_linked_by_id(struct bContext *C, struct ID *id); -- cgit v1.2.3