From 88f2b94065be3fcd6769a3f132cfee8ecfb663b8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 26 Jan 2023 11:04:55 -0500 Subject: [PATCH] Revert "Limit maximum number of IVs on a shape" This reverts commit 78fcc9847a9db6d42c8c263154ec05903a370b6b. --- shape.c | 2 +- shape.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shape.c b/shape.c index e7dd85c3f7..f3150127ff 100644 --- a/shape.c +++ b/shape.c @@ -139,7 +139,7 @@ get_next_shape_internal(rb_shape_t * shape, ID id, enum shape_type shape_type, b *variation_created = false; - if (new_shapes_allowed && shape->next_iv_index < SHAPE_MAX_NUM_IVS) { + if (new_shapes_allowed) { RB_VM_LOCK_ENTER(); { bool had_edges = !!shape->edges; diff --git a/shape.h b/shape.h index df0e633073..60084a4aff 100644 --- a/shape.h +++ b/shape.h @@ -31,7 +31,6 @@ typedef uint16_t shape_id_t; # define SHAPE_BITMAP_SIZE 16384 # define SHAPE_MAX_VARIATIONS 8 -# define SHAPE_MAX_NUM_IVS 50 # define MAX_SHAPE_ID (SHAPE_MASK - 1) # define INVALID_SHAPE_ID SHAPE_MASK