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:
authorDalai Felinto <dfelinto@gmail.com>2018-12-14 13:40:33 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-12-14 13:45:54 +0300
commitdc4c1be1a4455e84d1f72ce2703ab7425152965c (patch)
tree1bf2e689a0d68eae7a34d122b4d72ef96795dc3b /source/blender/blenkernel/BKE_object.h
parent10508338d8813681f3aaeea3e9a41e91bd84cc15 (diff)
New object API function : BKE_object_eval_reset()
This restores the object->data to a non-modifier evaluated state. So this allow us to change evaluated object modifier stack directly and get BKE_mesh_new_from_object() for the evalauted object.
Diffstat (limited to 'source/blender/blenkernel/BKE_object.h')
-rw-r--r--source/blender/blenkernel/BKE_object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h
index 136f3749910..7a595511892 100644
--- a/source/blender/blenkernel/BKE_object.h
+++ b/source/blender/blenkernel/BKE_object.h
@@ -221,6 +221,10 @@ void BKE_object_tfm_protected_restore(
const ObjectTfmProtectedChannels *obtfm,
const short protectflag);
+
+void BKE_object_eval_reset(
+ struct Object *ob_eval);
+
/* Dependency graph evaluation callbacks. */
void BKE_object_eval_local_transform(
struct Depsgraph *depsgraph,