Detect circular references in sketches, and add corresponding tests (#11716)
* Possible fix for 10482 circular reference regression with tests * Remove redundant test * Cleanup pre PR * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1725,8 +1725,6 @@ Py::Object ObjectIdentifier::access(const ResolveResults &result,
|
||||
else if(lastObj) {
|
||||
const char *attr = components[idx].getName().c_str();
|
||||
auto prop = lastObj->getPropertyByName(attr);
|
||||
if(!prop && !pyobj.hasAttr(attr))
|
||||
attr = nullptr;
|
||||
setPropDep(lastObj,prop,attr);
|
||||
lastObj = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user