Multires: Enable sculpting in all subdivision levels

Return the correct sculpt level in BKE_multires_sculpt_level_get and
enable the property in the UI

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D7575
This commit is contained in:
2020-04-30 15:41:45 +02:00
parent 6a7e9f2b76
commit d4c547b7bd
7 changed files with 8 additions and 21 deletions

View File

@@ -407,7 +407,7 @@ int multires_get_level(const Scene *scene,
mmd->renderlvl;
}
else if (ob->mode == OB_MODE_SCULPT) {
return BKE_multires_sculpt_level_get(mmd);
return mmd->sculptlvl;
}
else if (ignore_simplify) {
return mmd->lvl;
@@ -2516,12 +2516,3 @@ int mdisp_rot_face_to_crn(struct MVert *UNUSED(mvert),
return S;
}
/* This is a workaround for T58473.
* Force sculpting on the highest level for until the root of the issue is solved.
*
* When that issue is solved simple replace call of this function with mmd->sculptlvl. */
int BKE_multires_sculpt_level_get(const struct MultiresModifierData *mmd)
{
return mmd->totlvl;
}