Skip to content

Commit

Permalink
Fixed a bug in post-rotation, see #117
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 3, 2016
1 parent 51c3eff commit b17aca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/Circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ define( function( require ) {
// are they in the same fixed subgroup

var v1Group = this.findAllFixedVertices( v1 );
if ( v1Group.indexOf( v2 ) >= 0 ) {
if ( v1Group.indexOf( v2 ) >= 0 || true ) { // TODO: Treat wires the same as fixed length components here?
console.log( 'they were in the same group, we\'ll have to rotate' );
console.log( 'moving ', v2.index );

Expand All @@ -202,7 +202,7 @@ define( function( require ) {
if ( v1Neighbors.length === 1 ) {
this.rotateSingleVertex( v1, pivotVertex );
}
else if ( v2Neighbors.length === 2 ) {
else if ( v2Neighbors.length === 1 ) {
this.rotateSingleVertex( v2, pivotVertex );
}
else {
Expand Down

0 comments on commit b17aca6

Please sign in to comment.