Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_metaball.c
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | void OVERLAY_edit_metaball_cache_populate(OVERLAY_Data *vedata, Object *ob) | ||||
| const float *color; | const float *color; | ||||
| const float *col_radius = G_draw.block.colorMballRadius; | const float *col_radius = G_draw.block.colorMballRadius; | ||||
| const float *col_radius_select = G_draw.block.colorMballRadiusSelect; | const float *col_radius_select = G_draw.block.colorMballRadiusSelect; | ||||
| const float *col_stiffness = G_draw.block.colorMballStiffness; | const float *col_stiffness = G_draw.block.colorMballStiffness; | ||||
| const float *col_stiffness_select = G_draw.block.colorMballStiffnessSelect; | const float *col_stiffness_select = G_draw.block.colorMballStiffnessSelect; | ||||
| int select_id = 0; | int select_id = 0; | ||||
| if (is_select) { | if (is_select) { | ||||
| const Object *orig_object = DEG_get_original_object(ob); | select_id = ob->runtime.select_id; | ||||
| select_id = orig_object->runtime.select_id; | |||||
| } | } | ||||
| LISTBASE_FOREACH (MetaElem *, ml, mb->editelems) { | LISTBASE_FOREACH (MetaElem *, ml, mb->editelems) { | ||||
| const bool is_selected = (ml->flag & SELECT) != 0; | const bool is_selected = (ml->flag & SELECT) != 0; | ||||
| const bool is_scale_radius = (ml->flag & MB_SCALE_RAD) != 0; | const bool is_scale_radius = (ml->flag & MB_SCALE_RAD) != 0; | ||||
| float stiffness_radius = ml->rad * atanf(ml->s) / (float)M_PI_2; | float stiffness_radius = ml->rad * atanf(ml->s) / (float)M_PI_2; | ||||
| BoneInstanceData instdata; | BoneInstanceData instdata; | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||