check for children before taking child in geometry check.
This commit is contained in:
parent
c286eeaa16
commit
84aece8ffc
@ -593,6 +593,7 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou
|
|||||||
* indicates a preferred radius, a negative value indicates that a
|
* indicates a preferred radius, a negative value indicates that a
|
||||||
* match was not found.
|
* match was not found.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
protected abstract double getRearAutoRadius();
|
protected abstract double getRearAutoRadius();
|
||||||
|
|
||||||
|
|
||||||
@ -626,7 +627,10 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou
|
|||||||
--searchSiblingIndex;
|
--searchSiblingIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Look forward to the previous stage
|
||||||
--searchParentIndex;
|
--searchParentIndex;
|
||||||
|
|
||||||
if( 0 <= searchParentIndex){
|
if( 0 <= searchParentIndex){
|
||||||
searchSiblingIndex = grandParent.getChild(searchParentIndex).getChildCount() - 1;
|
searchSiblingIndex = grandParent.getChild(searchParentIndex).getChildCount() - 1;
|
||||||
}
|
}
|
||||||
@ -671,6 +675,8 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou
|
|||||||
++searchSiblingIndex;
|
++searchSiblingIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Look aft to the next stage
|
||||||
++searchParentIndex;
|
++searchParentIndex;
|
||||||
searchSiblingIndex = 0;
|
searchSiblingIndex = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user