void EditorUI::uiRotate3DOTex () { if (!currentTool->needsPolySelect()) fltk::message ("Use the polygon selection tool first to select the polygons"); else { vector<MdlObject*> obj = model->GetObjectList (); for(vector<MdlObject*>::iterator o=obj.begin(); o!=obj.end(); ++o) for (int a=0; a<(*o)->poly.size(); a++) { Poly *pl = (*o)->poly[a]; if (pl->isSelected) pl->RotateVerts(); } Update(); } }
void EditorUI::uiRotate3DOTex () { if (!currentTool->needsPolySelect()) fltk::message ("Use the polygon selection tool first to select the polygons"); else { vector<MdlObject*> obj = model->GetObjectList (); for(vector<MdlObject*>::iterator o=obj.begin();o!=obj.end();++o) { PolyMesh* pm = (*o)->GetPolyMesh(); if(pm) for (unsigned int a=0;a<pm->poly.size();a++) { Poly *pl = pm->poly[a]; if (pl->isSelected) pl->RotateVerts(); } } BACKUP_POINT("3DO texture rotated"); Update(); } }