From 7e9fac4f355b782a52e2be68ec3cd84a93ce2c3f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 14 Apr 2026 19:38:25 +0000 Subject: [PATCH] :bug: Fix constraint-modifier :default arity mismatch All concrete constraint-modifier methods accept 6 arguments (type, axis, child-before, parent-before, child-after, parent-after) but the :default fallback only declared 5 parameters. Any unknown constraint type would therefore receive 6 args and throw an arity error at runtime. Added the missing sixth underscore parameter. Signed-off-by: Andrey Antukh --- common/src/app/common/geom/shapes/constraints.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/constraints.cljc b/common/src/app/common/geom/shapes/constraints.cljc index 120d222901..95691b34e2 100644 --- a/common/src/app/common/geom/shapes/constraints.cljc +++ b/common/src/app/common/geom/shapes/constraints.cljc @@ -234,7 +234,7 @@ after-side-vector (side-vector axis parent-points-after)] (ctm/move-modifiers (displacement center-before center-after before-side-vector after-side-vector)))) -(defmethod constraint-modifier :default [_ _ _ _ _] +(defmethod constraint-modifier :default [_ _ _ _ _ _] []) (def const->type+axis