Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_extra.c
| Show First 20 Lines • Show All 865 Lines • ▼ Show 20 Lines | static void camera_view3d_reconstruction(OVERLAY_ExtraCallBuffers *cb, | ||||
| Scene *scene, | Scene *scene, | ||||
| View3D *v3d, | View3D *v3d, | ||||
| Object *camera_object, | Object *camera_object, | ||||
| Object *ob, | Object *ob, | ||||
| const float color[4]) | const float color[4]) | ||||
| { | { | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| const bool is_select = DRW_state_is_select(); | const bool is_select = DRW_state_is_select(); | ||||
| const Object *orig_camera_object = DEG_get_original_object(camera_object); | |||||
| MovieClip *clip = BKE_object_movieclip_get(scene, ob, false); | MovieClip *clip = BKE_object_movieclip_get(scene, ob, false); | ||||
| if (clip == NULL) { | if (clip == NULL) { | ||||
| return; | return; | ||||
| } | } | ||||
| const bool is_solid_bundle = (v3d->bundle_drawtype == OB_EMPTY_SPHERE) && | const bool is_solid_bundle = (v3d->bundle_drawtype == OB_EMPTY_SPHERE) && | ||||
| ((v3d->shading.type != OB_SOLID) || !XRAY_FLAG_ENABLED(v3d)); | ((v3d->shading.type != OB_SOLID) || !XRAY_FLAG_ENABLED(v3d)); | ||||
| ▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (MovieTrackingTrack *, track, tracksbase) { | ||||
| else if (is_selected) { | else if (is_selected) { | ||||
| bundle_color = color; | bundle_color = color; | ||||
| } | } | ||||
| else { | else { | ||||
| bundle_color = bundle_color_unselected; | bundle_color = bundle_color_unselected; | ||||
| } | } | ||||
| if (is_select) { | if (is_select) { | ||||
| DRW_select_load_id(orig_camera_object->runtime.select_id | (track_index << 16)); | DRW_select_load_id(camera_object->runtime.select_id_cow | (track_index << 16)); | ||||
| track_index++; | track_index++; | ||||
| } | } | ||||
| if (is_solid_bundle) { | if (is_solid_bundle) { | ||||
| if (is_selected) { | if (is_selected) { | ||||
| OVERLAY_empty_shape(cb, bundle_mat, v3d->bundle_size, v3d->bundle_drawtype, color); | OVERLAY_empty_shape(cb, bundle_mat, v3d->bundle_size, v3d->bundle_drawtype, color); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines | |||||