Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.c
| Show First 20 Lines • Show All 2,701 Lines • ▼ Show 20 Lines | #endif | ||||
| em->derivedCage->needsFree = 0; | em->derivedCage->needsFree = 0; | ||||
| BLI_assert(!(em->derivedFinal->dirty & DM_DIRTY_NORMALS)); | BLI_assert(!(em->derivedFinal->dirty & DM_DIRTY_NORMALS)); | ||||
| } | } | ||||
| static CustomDataMask object_get_datamask(const Scene *scene, Object *ob, bool *r_need_mapping) | static CustomDataMask object_get_datamask(const Scene *scene, Object *ob, bool *r_need_mapping) | ||||
| { | { | ||||
| /* TODO(sergey): Avoid this linear list lookup. */ | /* TODO(sergey): Avoid this linear list lookup. */ | ||||
| SceneLayer *sl = BKE_scene_layer_context_active_PLACEHOLDER(scene); | ViewLayer *sl = BKE_view_layer_context_active_PLACEHOLDER(scene); | ||||
| Object *actob = sl->basact ? sl->basact->object : NULL; | Object *actob = sl->basact ? sl->basact->object : NULL; | ||||
| CustomDataMask mask = ob->customdata_mask; | CustomDataMask mask = ob->customdata_mask; | ||||
| if (r_need_mapping) { | if (r_need_mapping) { | ||||
| *r_need_mapping = false; | *r_need_mapping = false; | ||||
| } | } | ||||
| if (ob == actob) { | if (ob == actob) { | ||||
| ▲ Show 20 Lines • Show All 1,262 Lines • Show Last 20 Lines | |||||