* new vertex editing mode, preserving non modified vertices (=adding/removing faces automatically)

with debug prints
This commit is contained in:
Garux
2018-12-10 17:50:40 +03:00
parent 6b8b568fd2
commit 435c41b73b
3 changed files with 246 additions and 9 deletions

View File

@@ -83,10 +83,10 @@ struct Skew{
Skew( std::size_t index_, float amount_ ) : index( index_ ), amount( amount_ ){
}
bool operator!= ( const Skew& other ) const {
return index != other.index || amount != other.amount;
return !( *this == other );
}
bool operator== ( const Skew& other ) const {
return index == other.index && amount == other.amount;
return ( amount == 0 && other.amount == 0 ) || ( index == other.index && amount == other.amount );
}
};