diff options
author | Dalai Felinto <dalai@blender.org> | 2022-03-30 12:06:10 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2022-03-30 12:06:10 +0300 |
commit | 35f34a3cf840852b70c1be5910be5517265d96cc (patch) | |
tree | 85feca0e8d12261484df49dde2f0db621cdc5971 /source/blender/editors/include | |
parent | 218bcff32db55874ccc35300ddd21baa585350dd (diff) |
Modifiers: Support applying modifiers for multi-user data
The current behaviour is to prevent multi-user data from having its
modifier applied.
Instead, with this patch, we now warn the user that if they want to
proceed the object will be made single-user.
Note that this only makes the object data single-user. Not the material
or actions.
As a future step we can apply the same behaviour for the Grease Pencil modifiers
Differential Revision: https://developer.blender.org/D14381
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index abadbe5a5c6..54e434e0db5 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -381,6 +381,8 @@ struct Object *ED_object_add_type(struct bContext *C, */ void ED_object_single_user(struct Main *bmain, struct Scene *scene, struct Object *ob); +void ED_object_single_obdata_user(struct Main *bmain, struct Scene *scene, struct Object *ob); + /* object motion paths */ /** |