Hot Door CORE Forum

Full Version: hit test for path returns other art type
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When doing a hit test on a path with a point text object over it, this code does not detect the path:

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.