diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-16 00:14:32 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-16 00:29:19 +0300 |
commit | 583354e9e989a66a684053e16bcbd950cac91428 (patch) | |
tree | faa99407de6a8f85114ea53166fb45ff00233477 /source/blender/editors/include | |
parent | f4a2024c448568badb44709b342d4f47002c456b (diff) |
Modifiers: Add link and copy functions
Adds functions to copy a modifier between objects, and an ED_ level
function for linking modifiers between objects. This will be used in
outliner modifier drag and drop.
These functions support both regular and grease pencil modifiers.
Differential Revision: https://developer.blender.org/D8642
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index fcf18f306e1..45e23cadaaa 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -429,6 +429,10 @@ int ED_object_modifier_copy(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md); +void ED_object_modifier_link(struct bContext *C, struct Object *ob_dst, struct Object *ob_src); +void ED_object_modifier_copy_to_object(struct Object *ob_dst, + struct Object *ob_src, + struct ModifierData *md); bool ED_object_iter_other(struct Main *bmain, struct Object *orig_ob, @@ -469,6 +473,8 @@ int ED_object_gpencil_modifier_apply(struct Main *bmain, int ED_object_gpencil_modifier_copy(struct ReportList *reports, struct Object *ob, struct GpencilModifierData *md); +void ED_object_gpencil_modifier_copy_to_object(struct Object *ob_dst, + struct GpencilModifierData *md); /* object_shader_fx.c */ struct ShaderFxData *ED_object_shaderfx_add(struct ReportList *reports, |