48 if (is_from_dupli_or_set(ob_ref)) {
52 const Object *ob = ob_ref.object;
56 const float4 location =
float4(ob->object_to_world().location(), 0.0f);
59 select_buf_.select_append(res.select_id(ob_ref));
60 point_buf_.append(
VertexData{location, res.theme.colors.active_object});
63 select_buf_.select_append(res.select_id(ob_ref));
65 is_library ? res.theme.colors.library_select :
66 res.theme.colors.object_select});
69 select_buf_.select_append(res.select_id(ob_ref));
71 VertexData{location, is_library ? res.theme.colors.library : res.theme.colors.deselect});
83 ps_.shader_set(res.shaders->extra_point.get());
86 select_buf_.select_bind(ps_);
87 point_buf_.push_update();
88 ps_.bind_ssbo(
"data_buf", &point_buf_);
99 manager.submit(ps_, view);
#define ID_IS_LINKED(_id)
#define ID_REAL_USERS(id)
#define OB_MODE_ALL_PAINT
void begin_sync(Resources &, const State &state) final
Origins(SelectionType selection_type)
void draw_color_only(Framebuffer &framebuffer, Manager &manager, View &view) final
void object_sync(Manager &, const ObjectRef &ob_ref, Resources &res, const State &state) final
void end_sync(Resources &res, const State &state) final
#define DRW_CLIPPING_UBO_SLOT
#define OVERLAY_GLOBALS_SLOT
select::SelectionType SelectionType
detail::Pass< command::DrawCommandBuf > PassSimple
void GPU_framebuffer_bind(gpu::FrameBuffer *fb)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
Main * DEG_get_bmain(const Depsgraph *graph)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)