Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/object_mode.c
| Show First 20 Lines • Show All 2,803 Lines • ▼ Show 20 Lines | case OB_ARMATURE: | ||||
| .bone_axes = sgl->bone_axes, | .bone_axes = sgl->bone_axes, | ||||
| .relationship_lines = NULL, /* Don't draw relationship lines */ | .relationship_lines = NULL, /* Don't draw relationship lines */ | ||||
| }; | }; | ||||
| DRW_shgroup_armature_object(ob, view_layer, passes); | DRW_shgroup_armature_object(ob, view_layer, passes); | ||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case OB_FONT: | |||||
| { | |||||
| if (hide_object_extra) { | |||||
| break; | |||||
| } | |||||
| Curve *cu = (Curve *)ob->data; | |||||
| bool has_surface = (cu->flag & (CU_FRONT | CU_BACK)) || cu->ext1 != 0.0f || cu->ext2 != 0.0f; | |||||
| if (!has_surface) { | |||||
| struct GPUBatch *geom = DRW_cache_text_edge_wire_get(ob); | |||||
| if (geom) { | |||||
| if (theme_id == TH_UNDEFINED) { | |||||
| theme_id = DRW_object_wire_theme_get(ob, view_layer, NULL); | |||||
| } | |||||
| DRWShadingGroup *shgroup = shgroup_theme_id_to_wire_or(sgl, theme_id, sgl->wire); | |||||
| DRW_shgroup_call_object_add(shgroup, geom, ob); | |||||
| } | |||||
| } | |||||
| break; | |||||
| } | |||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| if (ob->pd && ob->pd->forcefield) { | if (ob->pd && ob->pd->forcefield) { | ||||
| DRW_shgroup_forcefield(sgl, ob, view_layer); | DRW_shgroup_forcefield(sgl, ob, view_layer); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines | |||||