05-30-2019, 08:54 AM
(This post was last modified: 05-30-2019, 09:50 AM by Rick Johnson.)
When doing a hit test on a path with a point text object over it, this code does not detect the path:
It's called while dragging, and again on mouseUp, with similar results every time. Shouldn't it filter hits by art type? Or perhaps I'm just using it incorrectly. Also, this code doesn't work as expected:
The first item in the ArtVector is the text object, and the second is the path below it. I would expect both functions to return paths only.
I'm using Xcode 9.1 under Mojave.
Code:
hdi::core::HitData pHit = hdi::core::HitData(NULL, this->__Tool.cursorLoc(), hdi::core::SegPointOrInteriorHitRequest);
It's called while dragging, and again on mouseUp, with similar results every time. Shouldn't it filter hits by art type? Or perhaps I'm just using it incorrectly. Also, this code doesn't work as expected:
Code:
HDI_CORE_ILLUSTRATOR->currentDocument()->artAtPoint(this->__Tool.cursorLoc(), hdi::core::SegPointOrInteriorHitRequest);
The first item in the ArtVector is the text object, and the second is the path below it. I would expect both functions to return paths only.
I'm using Xcode 9.1 under Mojave.