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:
authorCampbell Barton <ideasman42@gmail.com>2020-09-03 09:23:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-03 09:27:15 +0300
commit3cbfe96681f69fcbccd1519d731168700dbf878a (patch)
treeb603e609537172bd41139eb42c9ca1711aa22cc0 /source/blender/blenkernel/BKE_object.h
parentc017e1cb676314690a8c0b7da154a0815024171e (diff)
Object: add BKE_object_obdata_to_type utility function
Move functionality to get the object type from an ID into it's own function.
Diffstat (limited to 'source/blender/blenkernel/BKE_object.h')
-rw-r--r--source/blender/blenkernel/BKE_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h
index 020225d2794..9f006ea21ef 100644
--- a/source/blender/blenkernel/BKE_object.h
+++ b/source/blender/blenkernel/BKE_object.h
@@ -131,6 +131,7 @@ struct Object *BKE_object_add_for_data(struct Main *bmain,
bool do_id_user) ATTR_RETURNS_NONNULL;
void *BKE_object_obdata_add_from_type(struct Main *bmain, int type, const char *name)
ATTR_NONNULL(1);
+int BKE_object_obdata_to_type(const struct ID *id) ATTR_NONNULL(1);
struct Object *BKE_object_copy(struct Main *bmain, const struct Object *ob);
bool BKE_object_is_libdata(const struct Object *ob);