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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-01-04 17:57:44 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-04 17:58:41 +0300
commitb69cbe7d8759e604e34d81a9ddc90d8167751f33 (patch)
tree226fb926b8dc81e5f31b2e7b69f1b99356dae8bf /source/blender/blenkernel/BKE_subdiv_eval.h
parentbfac8a429c7fd34daf562bb4af4146735baf9e98 (diff)
Fix T60124: Multires modifier not reading data from external files
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_eval.h')
-rw-r--r--source/blender/blenkernel/BKE_subdiv_eval.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_eval.h b/source/blender/blenkernel/BKE_subdiv_eval.h
index 0ea5c978e62..b743c759ace 100644
--- a/source/blender/blenkernel/BKE_subdiv_eval.h
+++ b/source/blender/blenkernel/BKE_subdiv_eval.h
@@ -42,6 +42,12 @@ bool BKE_subdiv_eval_begin(struct Subdiv *subdiv);
bool BKE_subdiv_eval_update_from_mesh(struct Subdiv *subdiv,
const struct Mesh *mesh);
+/* Makes sure displacement evaluator is initialized.
+ *
+ * NOTE: This function must be called once before evaluating displacement or
+ * final surface position. */
+void BKE_subdiv_eval_init_displacement(struct Subdiv *subdiv);
+
/* Single point queries. */
void BKE_subdiv_eval_limit_point(
@@ -77,8 +83,7 @@ void BKE_subdiv_eval_face_varying(
* TODO(sergey): This is currently used together with
* BKE_subdiv_eval_final_point() which cas easily evaluate derivatives.
* Would be nice to have dispalcement evaluation function which does not require
- * knowing derivatives ahead of a time.
- */
+ * knowing derivatives ahead of a time. */
void BKE_subdiv_eval_displacement(
struct Subdiv *subdiv,
const int ptex_face_index,
@@ -96,8 +101,7 @@ void BKE_subdiv_eval_final_point(
*
* Will evaluate patch at uniformly distributed (u, v) coordinates on a grid
* of given resolution, producing resolution^2 evaluation points. The order
- * goes as u in rows, v in columns.
- */
+ * goes as u in rows, v in columns. */
void BKE_subdiv_eval_limit_patch_resolution_point(
struct Subdiv *subdiv,