Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.cc
| Show First 20 Lines • Show All 1,684 Lines • ▼ Show 20 Lines | if (DEG_get_original_object(ob) == actob) { | ||||
| /* weight paint and face select need original indices because of selection buffer drawing */ | /* weight paint and face select need original indices because of selection buffer drawing */ | ||||
| if (r_need_mapping) { | if (r_need_mapping) { | ||||
| *r_need_mapping = (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT | OB_MODE_VERTEX_PAINT))); | *r_need_mapping = (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT | OB_MODE_VERTEX_PAINT))); | ||||
| } | } | ||||
| /* check if we need tfaces & mcols due to face select or texture paint */ | /* check if we need tfaces & mcols due to face select or texture paint */ | ||||
| if ((ob->mode & OB_MODE_TEXTURE_PAINT) || editing) { | if ((ob->mode & OB_MODE_TEXTURE_PAINT) || editing) { | ||||
| r_mask->lmask |= CD_MASK_MLOOPUV | CD_MASK_PROP_BYTE_COLOR; | r_mask->lmask |= CD_MASK_PROP_FLOAT2 | CD_MASK_PROP_BYTE_COLOR; | ||||
| r_mask->fmask |= CD_MASK_MTFACE; | r_mask->fmask |= CD_MASK_MTFACE; | ||||
| } | } | ||||
| /* check if we need mcols due to vertex paint or weightpaint */ | /* check if we need mcols due to vertex paint or weightpaint */ | ||||
| if (ob->mode & OB_MODE_VERTEX_PAINT) { | if (ob->mode & OB_MODE_VERTEX_PAINT) { | ||||
| r_mask->lmask |= CD_MASK_PROP_BYTE_COLOR; | r_mask->lmask |= CD_MASK_PROP_BYTE_COLOR; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines | |||||