<div>Hi all,</div>I am working on an operator that "scans" a mesh, creating points. It works fine on first execution, but fails with any tweaks to it's properties.<div><br></div><div>The error is that it thinks that the mesh selected suddenly has no geometry to do ray_cast() on, but this is incorrect. There is no modification of the selected object, and manually running the operator again shows no problem.</div>

<div><br></div><div>Printscreen: <a href="http://www.pasteall.org/pic/20639">http://www.pasteall.org/pic/20639</a></div><div><br></div><div>* The object can't have been modified</div><div>* The knowledge of what object is selected can't have changed, the error gives it's name</div>

<div><br></div><div>Can this be a red herring, something reported, but not the real problem?</div><div><br></div><div>Code here:</div><div><a href="http://www.pasteall.org/26353">http://www.pasteall.org/26353</a>
</div><div><br></div><div>Any help would be great as i'm stuck at this point. I don't want to add functionality if something more basic is broken, it will get harder to fix.</div><div><br></div><div>Thanks</div><div>

David</div>