Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/effect.c
| Context not available. | |||||
| /* In case surface object is in Edit mode when loading the .blend, surface modifier is never executed | /* In case surface object is in Edit mode when loading the .blend, surface modifier is never executed | ||||
| * and bvhtree never built, see T48415. */ | * and bvhtree never built, see T48415. */ | ||||
| if (eff->pd && eff->pd->shape == PFIELD_SHAPE_SURFACE && eff->surmd && eff->surmd->bvhtree) { | if (eff->pd && eff->pd->shape == PFIELD_SHAPE_SURFACE && eff->surmd && eff->surmd->bvhtree && eff->surmd->bvhtree->tree) { | ||||
| /* closest point in the object surface is an effector */ | /* closest point in the object surface is an effector */ | ||||
| float vec[3]; | float vec[3]; | ||||
| Context not available. | |||||