Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL MyCommandPlugin::OnLeftButtonDown(MQDocument doc, MQScene scene, MOUSE_BUTTON_STATE& state)
- {
- int idx[3];
- MQObject o = doc->GetObject(0);
- if(o==NULL)return FALSE;
- idx[0] = 0;
- idx[1] = 1;
- idx[2] = o->AddVertex(MQPoint(0, 0, 0));
- o->AddFace(3, idx);
- UpdateUndo(); // MQ_RefreshView -> UpdateUndo の順番だとOK。UpdateUndo -> MQ_RefreshView の順番だとNG
- MQ_RefreshView(NULL);
- OutputDebugStringA("UndoE\n");
- return TRUE;
- }
- // 以後、標準ツール(選択など)を操作するたびに
- // MDocument::updateCurrentUndoSelectionObject() : Different number of vertices.
- // MDocument::updateCurrentUndoSelectionObject() : Different number of faces.
- // がOutputDebugStringで表示される
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement