Beispiel #1
0
//-----------------------------------------------------------------
MStatus		ByronsPolyTools::undoIt()
//-----------------------------------------------------------------


{
    MStatus status;


    if(CMDactionMode == 0 || CMDactionMode == 4 || CMDactionMode == 5 || CMDactionMode == 6 || operationMode == 0)
    {

        MPRINT("Mache BPT rueckgaengig")
        status = undoModifyPoly();


        //	MGlobal::setActiveSelectionList(origList);
        //	MGlobal:: setComponentSelectionMask(undoMask);
        if( status == MS::kSuccess )
        {
            setResult( "Undone BPT" );
        }
        else
        {
            displayError( "Undo failed!" );
        }
    }

    //in jedem Fall die Original selection und mask wiederherstellen
    MGlobal::setActiveSelectionList(origList);
    MGlobal:: setComponentSelectionMask(undoMask);

    return status;
}
Beispiel #2
0
MStatus splitUV::undoIt()
//
//	Description:
//		implements undo for the MEL splitUV command.  
//
//		This method is called to undo a previous command of this type.  The 
//		system should be returned to the exact state that it was it previous 
//		to this command being executed.  That includes the selection state.
//
//	Return Value:
//		MS::kSuccess - command succeeded
//		MS::kFailure - redoIt failed.  this is a serious problem that will
//                     likely cause the undo queue to be purged
//
{
	MStatus status;

	status = undoModifyPoly();

	if( status == MS::kSuccess )
	{
		setResult( "splitUV undo succeeded!" );
	}
	else
	{
		setResult( "splitUV undo failed!" );
	}
    
	return status;
}
Beispiel #3
0
MStatus tm_polySlot::undoIt()
//
//	Description:
//		implements undo for the MEL tm_polySlot command.  
//
//		This method is called to undo a previous command of this type.  The 
//		system should be returned to the exact state that it was it previous 
//		to this command being executed.  That includes the selection state.
//
//	Return Value:
//		MS::kSuccess - command succeeded
//		MS::kFailure - redoIt failed.  this is a serious problem that will
//                     likely cause the undo queue to be purged
//
{
	MStatus status;
	status = undoModifyPoly();
	if( !status) setResult( "tm_polySlot undo failed!" );
	MGlobal::setActiveSelectionList( oldSelList);
 	return status;
}