Skip to content

Commit

Permalink
suppress log messages of selection changes in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 15, 2016
1 parent fe60a44 commit 849704c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Gui/Selection.cpp
Expand Up @@ -715,7 +715,9 @@ bool SelectionSingleton::addSelection(const char* pDocName, const char* pObjectN
Notify(Chng);
signalSelectionChanged(Chng);

#ifdef FC_DEBUG
Base::Console().Log("Sel : Add Selection \"%s.%s.%s(%f,%f,%f)\"\n",pDocName,pObjectName,pSubName,x,y,z);
#endif

// allow selection
return true;
Expand Down Expand Up @@ -805,7 +807,9 @@ void SelectionSingleton::rmvSelection(const char* pDocName, const char* pObjectN
signalSelectionChanged(Chng);

rmvList.push_back(Chng);
#ifdef FC_DEBUG
Base::Console().Log("Sel : Rmv Selection \"%s.%s.%s\"\n",pDocName,pObjectName,pSubName);
#endif
}
else {
++It;
Expand Down Expand Up @@ -901,7 +905,9 @@ void SelectionSingleton::clearSelection(const char* pDocName)
Notify(Chng);
signalSelectionChanged(Chng);

#ifdef FC_DEBUG
Base::Console().Log("Sel : Clear selection\n");
#endif
}
}

Expand All @@ -919,7 +925,9 @@ void SelectionSingleton::clearCompleteSelection()
Notify(Chng);
signalSelectionChanged(Chng);

#ifdef FC_DEBUG
Base::Console().Log("Sel : Clear selection\n");
#endif
}

bool SelectionSingleton::isSelected(const char* pDocName, const char* pObjectName, const char* pSubName) const
Expand Down

0 comments on commit 849704c

Please sign in to comment.