Multires: Use more clear naming

There are so many reshapes now, and one more is to come.
Better be explicit.
This commit is contained in:
2018-09-12 16:30:33 +02:00
parent 9d0b7babd9
commit 61462ab2b4
3 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ int mdisp_rot_face_to_crn(struct MVert *mvert, struct MPoly *mpoly, struct MLoop
/* Reshaping, define in multires_reshape.c */
bool multiresModifier_reshape(
bool multiresModifier_reshapeFromObject(
struct Depsgraph *depsgraph,
struct MultiresModifierData *mmd,
struct Object *dst,

View File

@@ -435,7 +435,7 @@ static void multires_reshape_init_mmd(MultiresModifierData *reshape_mmd,
* This function might fail in cases like source and destination not having
* matched amount of vertices.
*/
bool multiresModifier_reshape(
bool multiresModifier_reshapeFromObject(
struct Depsgraph *depsgraph,
MultiresModifierData *mmd,
Object *dst,

View File

@@ -1274,7 +1274,7 @@ static int multires_reshape_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
if (!multiresModifier_reshape(depsgraph, mmd, ob, secondob)) {
if (!multiresModifier_reshapeFromObject(depsgraph, mmd, ob, secondob)) {
BKE_report(op->reports, RPT_ERROR, "Objects do not have the same number of vertices");
return OPERATOR_CANCELLED;
}