Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/object_mode.c
| Context not available. | |||||
| DRWShadingGroup *field_tube_limit; | DRWShadingGroup *field_tube_limit; | ||||
| DRWShadingGroup *field_cone_limit; | DRWShadingGroup *field_cone_limit; | ||||
| /* Grease Pencil */ | |||||
| DRWShadingGroup *gpencil_axes; | |||||
| /* Speaker */ | /* Speaker */ | ||||
| DRWShadingGroup *speaker; | DRWShadingGroup *speaker; | ||||
| Context not available. | |||||
| geom = DRW_cache_screenspace_circle_get(); | geom = DRW_cache_screenspace_circle_get(); | ||||
| stl->g_data->field_curve_sta = shgroup_instance_screen_aligned(psl->non_meshes, geom); | stl->g_data->field_curve_sta = shgroup_instance_screen_aligned(psl->non_meshes, geom); | ||||
| /* Grease Pencil */ | |||||
| geom = DRW_cache_gpencil_axes_get(); | |||||
| stl->g_data->gpencil_axes = shgroup_instance(psl->non_meshes, geom); | |||||
| /* Speaker */ | /* Speaker */ | ||||
| geom = DRW_cache_speaker_get(); | geom = DRW_cache_speaker_get(); | ||||
| stl->g_data->speaker = shgroup_instance(psl->non_meshes, geom); | stl->g_data->speaker = shgroup_instance(psl->non_meshes, geom); | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| static void DRW_shgroup_gpencil(OBJECT_StorageList *stl, Object *ob, ViewLayer *view_layer) | |||||
| { | |||||
| float *color; | |||||
| DRW_object_wire_theme_get(ob, view_layer, &color); | |||||
| DRW_shgroup_call_dynamic_add(stl->g_data->gpencil_axes, color, &ob->empty_drawsize, ob->obmat); | |||||
| } | |||||
| static void DRW_shgroup_speaker(OBJECT_StorageList *stl, Object *ob, ViewLayer *view_layer) | static void DRW_shgroup_speaker(OBJECT_StorageList *stl, Object *ob, ViewLayer *view_layer) | ||||
| { | { | ||||
| float *color; | float *color; | ||||
| Context not available. | |||||
| case OB_EMPTY: | case OB_EMPTY: | ||||
| DRW_shgroup_empty(stl, psl, ob, view_layer); | DRW_shgroup_empty(stl, psl, ob, view_layer); | ||||
| break; | break; | ||||
| case OB_GPENCIL: | |||||
| DRW_shgroup_gpencil(stl, ob, view_layer); | |||||
| break; | |||||
| case OB_SPEAKER: | case OB_SPEAKER: | ||||
| DRW_shgroup_speaker(stl, ob, view_layer); | DRW_shgroup_speaker(stl, ob, view_layer); | ||||
| break; | break; | ||||
| Context not available. | |||||