02-12-2018, 12:03 PM
When in a simple AI document, even when no object is hit, my tool's mouseUp event returns a HitData object with the following code:
In a complex document, however, it consistently fails on endHit.get(). What might cause this? Given that the tool is especially useful in complex documents, a workaround would be very much appreciated.
Code:
std::auto_ptr<hdi::core::HitData> endHit =
this->__kitchenTool.mouseUpHitData(0,
hdi::core::SegPointOrInteriorHitRequest);
if( !endHit.get() ) return;
In a complex document, however, it consistently fails on endHit.get(). What might cause this? Given that the tool is especially useful in complex documents, a workaround would be very much appreciated.