{
pCtrl->m_vertex[0] = vPos[1][0];
pCtrl->m_vertex[1] = vPos[1][1];
- pCtrl->m_vertex[2] = vPos[2][2];
+ pCtrl->m_vertex[2] = vPos[0][2];
}
}
{
pCtrl->m_vertex[2] = vPos[2][2];
}
}
+ break;
default:
ERROR_MESSAGE("this should be unreachable");
return;
Scene_PatchConstructPrefab(GlobalSceneGraph(), PatchCreator_getBounds(), TextureBrowser_GetSelectedShader(GlobalTextureBrowser()), eBevel, GlobalXYWnd_getCurrentViewType());
}
+void Patch_Sphere()
+{
+ UndoableCommand undo("patchCreateSphere");
+
+ Scene_PatchConstructPrefab(GlobalSceneGraph(), PatchCreator_getBounds(), TextureBrowser_GetSelectedShader(GlobalTextureBrowser()), eSphere, GlobalXYWnd_getCurrentViewType());
+}
+
void Patch_SquareBevel()
{
}
GlobalCommands_insert("PatchSquareBevel", FreeCaller<Patch_SquareBevel>());
GlobalCommands_insert("PatchSquareEndcap", FreeCaller<Patch_SquareEndcap>());
GlobalCommands_insert("PatchCone", FreeCaller<Patch_Cone>());
+ GlobalCommands_insert("PatchSphere", FreeCaller<Patch_Sphere>());
GlobalCommands_insert("SimplePatchMesh", FreeCaller<Patch_Plane>(), Accelerator('P', (GdkModifierType)GDK_SHIFT_MASK));
GlobalCommands_insert("PatchInsertInsertColumn", FreeCaller<Patch_InsertInsertColumn>());
GlobalCommands_insert("PatchInsertAddColumn", FreeCaller<Patch_InsertAddColumn>());
}
menu_separator (menu);
create_menu_item_with_mnemonic(menu, "Cone", "PatchCone");
+ create_menu_item_with_mnemonic(menu, "Sphere", "PatchSphere");
menu_separator (menu);
create_menu_item_with_mnemonic(menu, "Simple Patch Mesh...", "SimplePatchMesh");
menu_separator (menu);