Skip to content

Click targets get offset after paint with the boolean operation node #1889

@0HyperCube

Description

@0HyperCube

By creating two layers, applying a boolean operation, then panning the document, the click targets become offset for the original layers.

This occurs because the boolean layer node has a Memoize Impure node inside of it, so the click targets are not updated when the document is panned.

Click targets are stored in layer space. In order to compare with the mouse it is necessary to calculate the transform from layer to viewport. We do this using transform_to_document which in tern uses the footprint. Footprints are always stored in viewport space. By not reprocessing the monitor node that stores the footprint, the click targets become offset.

The easiest fix is to remove the memoize impore node from the boolean node. Keavon claims that without this Memoize impure node, the performance is too bad. I'm not sure how else to approach this.

Metadata

Metadata

Assignees

Labels

GrapheneInvolves the node graph system/engine used by Graphite

Type

Projects

Status

Completed This Milestone

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions