Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,754 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void BKE_sculpt_update_object_before_eval(Object *ob) | void BKE_sculpt_update_object_before_eval(Object *ob) | ||||
| { | { | ||||
| /* Update before mesh evaluation in the dependency graph. */ | /* Update before mesh evaluation in the dependency graph. */ | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| if (ss && ss->building_vp_handle == false) { | if (ss && ss->building_vp_handle == false) { | ||||
| if (!ss->cache && !ss->filter_cache) { | if (!ss->cache && !ss->filter_cache && !ss->expand_cache) { | ||||
| /* We free pbvh on changes, except in the middle of drawing a stroke | /* We free pbvh on changes, except in the middle of drawing a stroke | ||||
| * since it can't deal with changing PVBH node organization, we hope | * since it can't deal with changing PVBH node organization, we hope | ||||
| * topology does not change in the meantime .. weak. */ | * topology does not change in the meantime .. weak. */ | ||||
| sculptsession_free_pbvh(ob); | sculptsession_free_pbvh(ob); | ||||
| BKE_sculptsession_free_deformMats(ob->sculpt); | BKE_sculptsession_free_deformMats(ob->sculpt); | ||||
| /* In vertex/weight paint, force maps to be rebuilt. */ | /* In vertex/weight paint, force maps to be rebuilt. */ | ||||
| ▲ Show 20 Lines • Show All 492 Lines • Show Last 20 Lines | |||||