Remove unused functions which will break with copy-on-write
This commit is contained in:
@@ -449,7 +449,6 @@ int DRW_object_is_mode_shade(const struct Object *ob);
|
||||
int DRW_object_is_paint_mode(const struct Object *ob);
|
||||
|
||||
bool DRW_check_particles_visible_within_active_context(struct Object *object);
|
||||
bool DRW_check_psys_visible_within_active_context(struct ParticleSystem *psys);
|
||||
|
||||
/* Draw commands */
|
||||
void DRW_draw_pass(DRWPass *pass);
|
||||
|
||||
@@ -228,11 +228,6 @@ bool DRW_check_particles_visible_within_active_context(Object *object)
|
||||
return (object->mode != OB_MODE_PARTICLE_EDIT);
|
||||
}
|
||||
|
||||
bool DRW_check_psys_visible_within_active_context(struct ParticleSystem *psys)
|
||||
{
|
||||
return PE_get_current_from_psys(psys) == NULL;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ void PE_free_ptcache_edit(struct PTCacheEdit *edit);
|
||||
int PE_start_edit(struct PTCacheEdit *edit);
|
||||
|
||||
/* access */
|
||||
struct PTCacheEdit *PE_get_current_from_psys(struct ParticleSystem *psys);
|
||||
struct PTCacheEdit *PE_get_current(struct Scene *scene, struct Object *ob);
|
||||
struct PTCacheEdit *PE_create_current(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob);
|
||||
void PE_current_changed(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob);
|
||||
|
||||
@@ -191,24 +191,6 @@ static float pe_brush_size_get(const Scene *UNUSED(scene), ParticleBrushData *br
|
||||
return brush->size * U.pixelsize;
|
||||
}
|
||||
|
||||
PTCacheEdit *PE_get_current_from_psys(ParticleSystem *psys)
|
||||
{
|
||||
if (psys->part && psys->part->type == PART_HAIR) {
|
||||
if ((psys->flag & PSYS_HAIR_DYNAMICS) != 0 &&
|
||||
(psys->pointcache->flag & PTCACHE_BAKED) != 0)
|
||||
{
|
||||
return psys->pointcache->edit;
|
||||
}
|
||||
else {
|
||||
return psys->edit;
|
||||
}
|
||||
}
|
||||
else if (psys->pointcache->flag & PTCACHE_BAKED) {
|
||||
return psys->pointcache->edit;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* always gets at least the first particlesystem even if PSYS_CURRENT flag is not set
|
||||
*
|
||||
* note: this function runs on poll, therefor it can runs many times a second
|
||||
|
||||
Reference in New Issue
Block a user