Exemple #1
0
MStatus splitUV::redoIt()
//
//	Description:
//		Implements redo for the MEL splitUV command. 
//
//		This method is called when the user has undone a command of this type
//		and then redoes it.  No arguments are passed in as all of the necessary
//		information is cached by the doIt method.
//
//	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;

	// Process the polyModifierCmd
	//
	status = redoModifyPoly();

	if( status == MS::kSuccess )
	{
		setResult( "splitUV command succeeded!" );
	}
	else
	{
		displayError( "splitUV command failed!" );
	}

	return status;
}
Exemple #2
0
MStatus tm_polySplit::redoIt()
//
//	Description:
//		Implements redo for the MEL tm_polySplit command. 
//
//		This method is called when the user has undone a command of this type
//		and then redoes it.  No arguments are passed in as all of the necessary
//		information is cached by the doIt method.
//
//	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 = redoModifyPoly();
	if( !status) displayError( "tm_polySplit command redo failed!" );
	MGlobal::setActiveSelectionList( newSelList);
	return status;
}
//-----------------------------------------------------------------
MStatus		ByronsPolyTools::redoIt()
//-----------------------------------------------------------------


{
    MStatus status;

    // Process the polyModifierCmd
    //
    if(CMDactionMode == 0 || CMDactionMode == 4 || CMDactionMode == 5 || CMDactionMode == 6 || operationMode == 0)
    {
        MPRINT("Mache BPT redo")

        status = redoModifyPoly();

//		MSelectionList	nullList;
//		MGlobal::setActiveSelectionList(nullList);

        if( status == MS::kSuccess )
        {
            setResult( "Redone BPT" );
        }
        else
        {
            displayError( "Redo failed. Your undo stack has been flushed." );
        }
    }
    else
    {
//		Wenn mesh nicht veraendert wird, wird einfach so die Factory gerufen
        fBPTfty.redoFty();
        setResult( "BPTOperation succeeded" );
    }

    return status;

}