Skip to content
Snippets Groups Projects
Commit 2f83d6d5 authored by Dirk Wilden's avatar Dirk Wilden
Browse files

update_color handled separately now

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8723 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2ccb612e
Branches
Tags
No related merge requests found
......@@ -127,6 +127,9 @@ void initializeUpdateTypes() {
updateTypeToTypeInfo[UPDATE_SELECTION_FACES] = updateTypes.size();
updateTypes.push_back( UpdateTypeInfo(UPDATE_SELECTION_FACES, "FaceSelection", true) );
stringToUpdateTypeInfo["Color"] = updateTypes.size();
updateTypeToTypeInfo[UPDATE_COLOR] = updateTypes.size();
updateTypes.push_back( UpdateTypeInfo(UPDATE_COLOR, "Color", true) );
updateTypeToString[UPDATE_ALL] = "All";
updateTypeToString[UPDATE_OBJECT_SELECTION] = "ObjectSelection";
......@@ -137,6 +140,7 @@ void initializeUpdateTypes() {
updateTypeToString[UPDATE_SELECTION_VERTICES] = "VertexSelection";
updateTypeToString[UPDATE_SELECTION_EDGES] = "EdgeSelection";
updateTypeToString[UPDATE_SELECTION_FACES] = "FaceSelection";
updateTypeToString[UPDATE_COLOR] = "Color";
}
/// Adds a updateType and returns the id for the new type
......
......@@ -80,8 +80,14 @@ const UpdateType UPDATE_SELECTION_EDGES( UpdateTypeSet(1) << 7 );
*/
const UpdateType UPDATE_SELECTION_FACES( UpdateTypeSet(1) << 8 );
/** \brief Colors have changed
*
* Update the colors. This does not have to be called when topology is also updated
*/
const UpdateType UPDATE_COLOR( UpdateTypeSet(1) << 9 );
/// marks the last used ID
const UpdateType UPDATE_UNUSED ( UpdateTypeSet(1) << 9 );
const UpdateType UPDATE_UNUSED ( UpdateTypeSet(1) << 10 );
//=====================================================================================
// FUNCTIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment