Dar manager: Ignore non-particle-edit objects from particle mode

This commit is contained in:
Sergey Sharybin
2018-05-11 15:12:24 +02:00
parent aefd181b0b
commit 2c6e523c1f

View File

@@ -186,6 +186,9 @@ static void particle_edit_cache_populate(void *vedata,
static void particle_cache_populate(void *vedata, Object *object)
{
if (object->mode != OB_MODE_PARTICLE_EDIT) {
return;
}
const DRWContextState *draw_ctx = DRW_context_state_get();
Object *object_orig = DEG_get_original_object(object);
PTCacheEdit *edit = PE_get_current(draw_ctx->scene, object_orig);