Fix #20928: difference boolean modifier is not applied during rendering,
fixed by last depsgraph commit and this extra check to avoid unnecessary free of derivedmesh for sculpt/multires.
This commit is contained in:
@@ -122,6 +122,7 @@ void multires_mark_as_modified(Object *ob)
|
||||
|
||||
void multires_force_update(Object *ob)
|
||||
{
|
||||
|
||||
if(ob && ob->derivedFinal) {
|
||||
ob->derivedFinal->needsFree =1;
|
||||
ob->derivedFinal->release(ob->derivedFinal);
|
||||
@@ -129,6 +130,12 @@ void multires_force_update(Object *ob)
|
||||
}
|
||||
}
|
||||
|
||||
void multires_force_render_update(Object *ob)
|
||||
{
|
||||
if(ob && (ob->mode & OB_MODE_SCULPT) && modifiers_findByType(ob, eModifierType_Multires))
|
||||
multires_force_update(ob);
|
||||
}
|
||||
|
||||
/* XXX */
|
||||
#if 0
|
||||
void multiresModifier_join(Object *ob)
|
||||
|
||||
Reference in New Issue
Block a user