Cleanup: Remove redundant doxygen section

Also remove const for the object argument, since the object data
is logically modified by generating the data.
This commit is contained in:
Hans Goudey 2022-06-17 09:44:37 +02:00
parent 9830603620
commit 96764c3a1f
2 changed files with 6 additions and 12 deletions

View File

@ -156,11 +156,15 @@ struct GPUBatch *DRW_lattice_batch_cache_get_edit_verts(struct Lattice *lt);
/** \} */
/* -------------------------------------------------------------------- */
/** \name Hair
/** \name Curves
* \{ */
int DRW_curves_material_count_get(struct Curves *curves);
struct GPUBatch *DRW_curves_batch_cache_get_edit_points(struct Curves *curves);
void DRW_curves_batch_cache_create_requested(struct Object *ob);
/** \} */
/* -------------------------------------------------------------------- */
@ -352,16 +356,6 @@ struct GPUBatch *DRW_particles_batch_cache_get_edit_tip_points(struct Object *ob
/** \} */
/* -------------------------------------------------------------------- */
/** \name Curves
* \{ */
struct GPUBatch *DRW_curves_batch_cache_get_edit_points(struct Curves *curves);
void DRW_curves_batch_cache_create_requested(const struct Object *ob);
/** \} */
#ifdef __cplusplus
}
#endif

View File

@ -638,7 +638,7 @@ GPUBatch *DRW_curves_batch_cache_get_edit_points(Curves *curves)
return DRW_batch_request(&cache.edit_points);
}
void DRW_curves_batch_cache_create_requested(const Object *ob)
void DRW_curves_batch_cache_create_requested(Object *ob)
{
Curves *curves = static_cast<Curves *>(ob->data);
CurvesBatchCache &cache = curves_batch_cache_get(*curves);