Fix T73706: Crash after disabling dyntopo with multires modifier
ss->multires is set in sculpt_update_object, which is not called just after disabling dyntopo, so it needs to be checked before running reshapeFromCCG Reviewed By: campbellbarton, brecht Maniphest Tasks: T73706 Differential Revision: https://developer.blender.org/D6801
This commit is contained in:
parent
efbe4fd6c2
commit
af6ba4dce5
Notes:
blender-bot
2023-02-14 00:20:15 +01:00
Referenced by issue #73706, Crash with dyntopo and multires
|
@ -410,7 +410,7 @@ void multires_flush_sculpt_updates(Object *ob)
|
|||
{
|
||||
if (ob && ob->sculpt && ob->sculpt->pbvh != NULL) {
|
||||
SculptSession *sculpt_session = ob->sculpt;
|
||||
if (BKE_pbvh_type(sculpt_session->pbvh) == PBVH_GRIDS) {
|
||||
if (BKE_pbvh_type(sculpt_session->pbvh) == PBVH_GRIDS && sculpt_session->multires) {
|
||||
Mesh *mesh = ob->data;
|
||||
multiresModifier_reshapeFromCCG(
|
||||
sculpt_session->multires->totlvl, mesh, sculpt_session->subdiv_ccg);
|
||||
|
|
Loading…
Reference in New Issue