fixed small bugs

This commit is contained in:
Guido Ranzuglia granzuglia 2013-10-15 07:50:23 +00:00
parent 85c3fb8d45
commit e41bcc1178
3 changed files with 3 additions and 3 deletions

View File

@ -836,12 +836,12 @@ int ExtraMeshDecoratePlugin::getDecorationClass(QAction *action) const
case DP_SHOW_BOX_CORNERS :
case DP_SHOW_QUOTED_BOX :
case DP_SHOW_LABEL :
case DP_SHOW_CAMERA :
case DP_SHOW_TEXPARAM :
/*case DP_SHOW_SELECTED_FACE :
case DP_SHOW_SELECTED_VERT :*/
case DP_SHOW_BOUNDARY_TEX : return ExtraMeshDecoratePlugin::PerMesh;
case DP_SHOW_AXIS : return ExtraMeshDecoratePlugin::PerDocument;
case DP_SHOW_CAMERA : return ExtraMeshDecoratePlugin::PerDocument;
case DP_SHOW_SELECTED_MESH : return ExtraMeshDecoratePlugin::PerDocument;
}
assert (0);

View File

@ -80,7 +80,7 @@ public:
{
typeList <<
DP_SHOW_VERT <<
DP_SHOW_EDGE <<
//DP_SHOW_EDGE <<
DP_SHOW_NON_FAUX_EDGE <<
DP_SHOW_BOUNDARY <<
DP_SHOW_NON_MANIF_EDGE <<

View File

@ -617,7 +617,7 @@ void DecorateRasterProjPlugin::decorateDoc( QAction *act,
{
case DP_PROJECT_RASTER:
{
if ((gla == NULL) || (gla->getCurrentRenderMode()))
if ((gla == NULL) || (gla->getCurrentRenderMode() == NULL))
return;
glPushAttrib( GL_ALL_ATTRIB_BITS );