Skip to content

Magic glue fails when no SHAPE constraint is present #833

@luxaritas

Description

@luxaritas

Expected Behavior

Magic glue succeeds without a SHAPE constraint

Current Behavior

When there is no SHAPE constraint, the magic glue doesn't change the structure and fails with an error

Reproduction Steps

  1. Create a puzzle with no SHAPE constraint and a region where magic glue can be used
  2. Apply magic glue on two equal-sized regions
  3. Instead of changing the target structure, nothing happens and an error is thrown in the console

Environment

No response

Other information

It appears to be throwing in ConstrantBar#getShapeBox, presumably for PoseEditMode#flashConstraintForTarget which flashes the constraint box on target change

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p4/minorThere is a reasonable workaround, or there is a nice to have with limited impactsize: smtype: bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions