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-09-16 00:09:41 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-09-16 00:29:19 +0300
commitf4a2024c448568badb44709b342d4f47002c456b (patch)
treee775facaee5396ef2982e8a5cb8295ea9d1787c3 /source/blender/editors/include/ED_object.h
parent4d04a345a618165f587ab7e5f396f92a13c5731a (diff)
Constraints: Add link and copy functions
Add functions to copy a single constraint between objects or between bones, and another function to link constraints. This is in preparation for constraint drag and drop in the outliner. Differential Revision: https://developer.blender.org/D8642
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r--source/blender/editors/include/ED_object.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index 282df25172f..fcf18f306e1 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -346,6 +346,18 @@ void ED_object_constraint_dependency_tag_update(struct Main *bmain,
bool ED_object_constraint_move_to_index(struct Object *ob,
struct bConstraint *con,
const int index);
+void ED_object_constraint_link(struct Main *bmain,
+ struct Object *ob_dst,
+ struct ListBase *dst,
+ struct ListBase *src);
+void ED_object_constraint_copy_for_object(struct Main *bmain,
+ struct Object *ob_dst,
+ struct bConstraint *con);
+void ED_object_constraint_copy_for_pose(struct Main *bmain,
+ struct Object *ob_dst,
+ struct bPoseChannel *pchan,
+ struct bConstraint *con);
+
/* object_modes.c */
bool ED_object_mode_compat_test(const struct Object *ob, eObjectMode mode);
bool ED_object_mode_compat_set(struct bContext *C,