Skip to content

Use custom function to update object's property in order #67

@chillray

Description

@chillray

Describe the bug:
In the domain of floor tile naming, the tile names are in reverse order. Specifically, tile_0-1 represents the coordinate (1,0) in grid coordinates rather than (0,1). While this should not be an issue due to:
(assign (?from y x) (function distribute_grid_around_point (objects ?from)))
which should place the tile in the correct position, changing the order of properties does not take effect. The properties are still updated as:
(assign (?from x y) (function distribute_grid_around_point (objects ?from)))

Expected Behavior:
Given (assign (?from y x) (function distribute_grid_around_point (objects ?from)))
The second digit should represent the object's x position, and the first digit should represent the y position.

Observed Behavior:
The custom function parses the first digit as the x position and the second digit as the y position, regardless of the provided order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions