Avoid duplicated checks for valid shape in TangibleConnectionModel
samreid opened this issue · 1 comments
samreid commented
Discovered in #398, @jessegreenberg and @matthew-blackman and I were looking at
quadrilateral/js/quadrilateral/model/prototype/TangibleConnectionModel.ts
Lines 165 to 185 in 7a012e7
QuadrilateralShapeModel
then ask if it is a valid shape? We think there may be duplicated logic here.jessegreenberg commented
The code referenced here is totally removed, and its using QuadrilateralShapeModel.isQuadrilateralShapeAllowed( testShapeModel );
instead. So much nicer!
I was able to test it with ?cameraInput=hands
, and it is working well, maybe even better - before the change I was seeing what looked like incorrect shapes sometimes. Closing.