Commit d76ac4f9 authored by Jan Möbius's avatar Jan Möbius

Fixed update type bug where update all contained no other updates!

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9093 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b0cf2762
......@@ -39,6 +39,10 @@ bool UpdateType::operator==(const UpdateType& _type) const {
/// Check if this update contains the given UpdateType
bool UpdateType::contains( const UpdateType& _type ) {
if ( type_ == UPDATE_ALL.type_ )
return true;
// Catch the specialization of updates
if ( _type == UPDATE_SELECTION ) {
if ( type_ == UPDATE_SELECTION_VERTICES.type_ || type_ == UPDATE_SELECTION_EDGES.type_ || type_ == UPDATE_SELECTION_FACES.type_ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment