Brecht authored this commit, but he gave me the honours to actually do it. Here it goes; Blender Internal. Bye bye, you did great! * Point density, voxel data, ocean, environment map textures were removed, as these only worked within BI rendering. Note that the ocean modifier and the Cycles point density shader node continue to work. * Dynamic paint using material shading was removed, as this only worked with BI. If we ever wanted to support this again probably it should go through the baking API. * GPU shader export through the Python API was removed. This only worked for the old BI GLSL shaders, which no longer exists. Doing something similar for Eevee would be significantly more complicated because it uses a lot of multiplass rendering and logic outside the shader, it's probably impractical. * Collada material import / export code is mostly gone, as it only worked for BI materials. We need to add Cycles / Eevee material support at some point. * The mesh noise operator was removed since it only worked with BI material texture slots. A displacement modifier can be used instead. * The delete texture paint slot operator was removed since it only worked for BI material texture slots. Could be added back with node support. * Not all legacy viewport features are supported in the new viewport, but their code was removed. If we need to bring anything back we can look at older git revisions. * There is some legacy viewport code that I could not remove yet, and some that I probably missed. * Shader node execution code was left mostly intact, even though it is not used anywhere now. We may eventually use this to replace the texture nodes with Cycles / Eevee shader nodes. * The Cycles Bake panel now includes settings for baking multires normal and displacement maps. The underlying code needs to be merged properly, and we plan to add back support for multires AO baking and add support to Cycles baking for features like vertex color, displacement, and other missing baking features. * This commit removes DNA and the Python API for BI material, lamp, world and scene settings. This breaks a lot of addons. * There is more DNA that can be removed or renamed, where Cycles or Eevee are reusing some old BI properties but the names are not really correct anymore. * Texture slots for materials, lamps and world were removed. They remain for brushes, particles and freestyle linestyles. * 'BLENDER_RENDER' remains in the COMPAT_ENGINES of UI panels. Cycles and other renderers use this to find all panels to show, minus a few panels that they have their own replacement for.
257 lines
11 KiB
C++
257 lines
11 KiB
C++
/*
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
* All rights reserved.
|
|
*
|
|
* The Original Code is: all of this file.
|
|
*
|
|
* Contributor(s): none yet.
|
|
*
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
*/
|
|
|
|
/** \file blender/editors/mesh/mesh_intern.h
|
|
* \ingroup edmesh
|
|
*/
|
|
|
|
/* Internal for editmesh_xxxx.c functions */
|
|
|
|
#ifndef __MESH_INTERN_H__
|
|
#define __MESH_INTERN_H__
|
|
|
|
struct BMEditMesh;
|
|
struct BMOperator;
|
|
struct BMElem;
|
|
struct EnumPropertyItem;
|
|
struct bContext;
|
|
struct wmKeyConfig;
|
|
struct wmKeyMap;
|
|
struct wmOperator;
|
|
struct wmOperatorType;
|
|
struct LinkNode;
|
|
|
|
/* *** editmesh_utils.c *** */
|
|
|
|
/*
|
|
* ok: the EDBM module is for editmode bmesh stuff. in contrast, the
|
|
* BMEdit module is for code shared with blenkernel that concerns
|
|
* the BMEditMesh structure. */
|
|
|
|
/* Calls a bmesh op, reporting errors to the user, etc */
|
|
bool EDBM_op_callf(struct BMEditMesh *em, struct wmOperator *op, const char *fmt, ...);
|
|
bool EDBM_op_call_and_selectf(struct BMEditMesh *em, struct wmOperator *op,
|
|
const char *select_slot, const bool select_replace,
|
|
const char *fmt, ...);
|
|
/* Same as above, but doesn't report errors.*/
|
|
bool EDBM_op_call_silentf(struct BMEditMesh *em, const char *fmt, ...);
|
|
|
|
/* these next two functions are the split version of EDBM_op_callf, so you can
|
|
* do stuff with a bmesh operator, after initializing it but before executing
|
|
* it.
|
|
*
|
|
* execute the operator with BM_Exec_Op */
|
|
bool EDBM_op_init(struct BMEditMesh *em, struct BMOperator *bmop,
|
|
struct wmOperator *op, const char *fmt, ...);
|
|
/* Cleans up after a bmesh operator */
|
|
bool EDBM_op_finish(struct BMEditMesh *em, struct BMOperator *bmop,
|
|
struct wmOperator *op, const bool do_report);
|
|
|
|
void EDBM_stats_update(struct BMEditMesh *em);
|
|
|
|
int EDBM_view3d_poll(struct bContext *C);
|
|
|
|
struct BMElem *EDBM_elem_from_selectmode(
|
|
struct BMEditMesh *em,
|
|
struct BMVert *eve, struct BMEdge *eed, struct BMFace *efa);
|
|
int EDBM_elem_to_index_any(struct BMEditMesh *em, struct BMElem *ele);
|
|
struct BMElem *EDBM_elem_from_index_any(struct BMEditMesh *em, int index);
|
|
|
|
/* *** editmesh_add.c *** */
|
|
void MESH_OT_primitive_plane_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_cube_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_circle_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_cylinder_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_cone_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_grid_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_monkey_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_uv_sphere_add(struct wmOperatorType *ot);
|
|
void MESH_OT_primitive_ico_sphere_add(struct wmOperatorType *ot);
|
|
|
|
|
|
/* *** editmesh_bevel.c *** */
|
|
void MESH_OT_bevel(struct wmOperatorType *ot);
|
|
|
|
/* *** editmesh_bisect.c *** */
|
|
void MESH_OT_bisect(struct wmOperatorType *ot);
|
|
|
|
/* *** editmesh_extrude.c *** */
|
|
void MESH_OT_extrude_repeat(struct wmOperatorType *ot);
|
|
void MESH_OT_extrude_region(struct wmOperatorType *ot);
|
|
void MESH_OT_extrude_verts_indiv(struct wmOperatorType *ot);
|
|
void MESH_OT_extrude_edges_indiv(struct wmOperatorType *ot);
|
|
void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot);
|
|
void MESH_OT_dupli_extrude_cursor(struct wmOperatorType *ot);
|
|
void MESH_OT_spin(struct wmOperatorType *ot);
|
|
void MESH_OT_screw(struct wmOperatorType *ot);
|
|
|
|
/* *** editmesh_polybuild.c *** */
|
|
void MESH_OT_polybuild_face_at_cursor(struct wmOperatorType *ot);
|
|
void MESH_OT_polybuild_split_at_cursor(struct wmOperatorType *ot);
|
|
void MESH_OT_polybuild_dissolve_at_cursor(struct wmOperatorType *ot);
|
|
void MESH_OT_polybuild_hover(struct wmOperatorType *ot);
|
|
|
|
/* *** editmesh_inset.c *** */
|
|
void MESH_OT_inset(struct wmOperatorType *ot);
|
|
|
|
/* *** editmesh_intersect.c *** */
|
|
void MESH_OT_intersect(struct wmOperatorType *ot);
|
|
void MESH_OT_intersect_boolean(struct wmOperatorType *ot);
|
|
void MESH_OT_face_split_by_edges(struct wmOperatorType *ot);
|
|
|
|
|
|
/* *** editmesh_knife.c *** */
|
|
void MESH_OT_knife_tool(struct wmOperatorType *ot);
|
|
void MESH_OT_knife_project(struct wmOperatorType *ot);
|
|
void EDBM_mesh_knife(struct bContext *C, struct LinkNode *polys,
|
|
bool use_tag, bool cut_through);
|
|
|
|
struct wmKeyMap *knifetool_modal_keymap(struct wmKeyConfig *keyconf);
|
|
|
|
|
|
/* *** editmesh_loopcut.c *** */
|
|
void MESH_OT_loopcut(struct wmOperatorType *ot);
|
|
|
|
|
|
/* *** editmesh_rip.c *** */
|
|
void MESH_OT_rip(struct wmOperatorType *ot);
|
|
void MESH_OT_rip_edge(struct wmOperatorType *ot);
|
|
|
|
|
|
/* *** editmesh_select.c *** */
|
|
void MESH_OT_select_similar(struct wmOperatorType *ot);
|
|
void MESH_OT_select_similar_region(struct wmOperatorType *ot);
|
|
void MESH_OT_select_mode(struct wmOperatorType *ot);
|
|
void MESH_OT_loop_multi_select(struct wmOperatorType *ot);
|
|
void MESH_OT_loop_select(struct wmOperatorType *ot);
|
|
void MESH_OT_edgering_select(struct wmOperatorType *ot);
|
|
void MESH_OT_select_all(struct wmOperatorType *ot);
|
|
void MESH_OT_select_interior_faces(struct wmOperatorType *ot);
|
|
void MESH_OT_shortest_path_pick(struct wmOperatorType *ot);
|
|
void MESH_OT_select_linked(struct wmOperatorType *ot);
|
|
void MESH_OT_select_linked_pick(struct wmOperatorType *ot);
|
|
void MESH_OT_select_face_by_sides(struct wmOperatorType *ot);
|
|
void MESH_OT_select_loose(struct wmOperatorType *ot);
|
|
void MESH_OT_select_mirror(struct wmOperatorType *ot);
|
|
void MESH_OT_select_more(struct wmOperatorType *ot);
|
|
void MESH_OT_select_less(struct wmOperatorType *ot);
|
|
void MESH_OT_select_nth(struct wmOperatorType *ot);
|
|
void MESH_OT_edges_select_sharp(struct wmOperatorType *ot);
|
|
void MESH_OT_faces_select_linked_flat(struct wmOperatorType *ot);
|
|
void MESH_OT_select_non_manifold(struct wmOperatorType *ot);
|
|
void MESH_OT_select_random(struct wmOperatorType *ot);
|
|
void MESH_OT_select_ungrouped(struct wmOperatorType *ot);
|
|
void MESH_OT_select_axis(struct wmOperatorType *ot);
|
|
void MESH_OT_region_to_loop(struct wmOperatorType *ot);
|
|
void MESH_OT_loop_to_region(struct wmOperatorType *ot);
|
|
void MESH_OT_shortest_path_select(struct wmOperatorType *ot);
|
|
|
|
extern struct EnumPropertyItem *corner_type_items;
|
|
|
|
|
|
/* *** editmesh_tools.c *** */
|
|
void MESH_OT_subdivide(struct wmOperatorType *ot);
|
|
void MESH_OT_subdivide_edgering(struct wmOperatorType *ot);
|
|
void MESH_OT_unsubdivide(struct wmOperatorType *ot);
|
|
void MESH_OT_normals_make_consistent(struct wmOperatorType *ot);
|
|
void MESH_OT_vertices_smooth(struct wmOperatorType *ot);
|
|
void MESH_OT_vertices_smooth_laplacian(struct wmOperatorType *ot);
|
|
void MESH_OT_vert_connect(struct wmOperatorType *ot);
|
|
void MESH_OT_vert_connect_path(struct wmOperatorType *ot);
|
|
void MESH_OT_vert_connect_concave(struct wmOperatorType *ot);
|
|
void MESH_OT_vert_connect_nonplanar(struct wmOperatorType *ot);
|
|
void MESH_OT_face_make_planar(struct wmOperatorType *ot);
|
|
void MESH_OT_edge_split(struct wmOperatorType *ot);
|
|
void MESH_OT_bridge_edge_loops(struct wmOperatorType *ot);
|
|
void MESH_OT_offset_edge_loops(struct wmOperatorType *ot);
|
|
void MESH_OT_wireframe(struct wmOperatorType *ot);
|
|
void MESH_OT_convex_hull(struct wmOperatorType *ot);
|
|
void MESH_OT_symmetrize(struct wmOperatorType *ot);
|
|
void MESH_OT_symmetry_snap(struct wmOperatorType *ot);
|
|
void MESH_OT_shape_propagate_to_all(struct wmOperatorType *ot);
|
|
void MESH_OT_blend_from_shape(struct wmOperatorType *ot);
|
|
void MESH_OT_sort_elements(struct wmOperatorType *ot);
|
|
void MESH_OT_uvs_rotate(struct wmOperatorType *ot);
|
|
void MESH_OT_uvs_reverse(struct wmOperatorType *ot);
|
|
void MESH_OT_colors_rotate(struct wmOperatorType *ot);
|
|
void MESH_OT_colors_reverse(struct wmOperatorType *ot);
|
|
void MESH_OT_delete(struct wmOperatorType *ot);
|
|
void MESH_OT_delete_loose(struct wmOperatorType *ot);
|
|
void MESH_OT_edge_collapse(struct wmOperatorType *ot);
|
|
void MESH_OT_faces_shade_smooth(struct wmOperatorType *ot);
|
|
void MESH_OT_faces_shade_flat(struct wmOperatorType *ot);
|
|
void MESH_OT_split(struct wmOperatorType *ot);
|
|
void MESH_OT_edge_rotate(struct wmOperatorType *ot);
|
|
void MESH_OT_hide(struct wmOperatorType *ot);
|
|
void MESH_OT_reveal(struct wmOperatorType *ot);
|
|
void MESH_OT_mark_seam(struct wmOperatorType *ot);
|
|
void MESH_OT_mark_sharp(struct wmOperatorType *ot);
|
|
void MESH_OT_flip_normals(struct wmOperatorType *ot);
|
|
void MESH_OT_solidify(struct wmOperatorType *ot);
|
|
void MESH_OT_knife_cut(struct wmOperatorType *ot);
|
|
void MESH_OT_separate(struct wmOperatorType *ot);
|
|
void MESH_OT_fill(struct wmOperatorType *ot);
|
|
void MESH_OT_fill_grid(struct wmOperatorType *ot);
|
|
void MESH_OT_fill_holes(struct wmOperatorType *ot);
|
|
void MESH_OT_beautify_fill(struct wmOperatorType *ot);
|
|
void MESH_OT_quads_convert_to_tris(struct wmOperatorType *ot);
|
|
void MESH_OT_tris_convert_to_quads(struct wmOperatorType *ot);
|
|
void MESH_OT_decimate(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_verts(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_edges(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_faces(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_mode(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_limited(struct wmOperatorType *ot);
|
|
void MESH_OT_dissolve_degenerate(struct wmOperatorType *ot);
|
|
void MESH_OT_delete_edgeloop(struct wmOperatorType *ot);
|
|
void MESH_OT_edge_face_add(struct wmOperatorType *ot);
|
|
void MESH_OT_duplicate(struct wmOperatorType *ot);
|
|
void MESH_OT_merge(struct wmOperatorType *ot);
|
|
void MESH_OT_remove_doubles(struct wmOperatorType *ot);
|
|
void MESH_OT_poke(struct wmOperatorType *ot);
|
|
|
|
#ifdef WITH_FREESTYLE
|
|
void MESH_OT_mark_freestyle_edge(struct wmOperatorType *ot);
|
|
void MESH_OT_mark_freestyle_face(struct wmOperatorType *ot);
|
|
#endif
|
|
|
|
/* *** mesh_data.c *** */
|
|
void MESH_OT_uv_texture_add(struct wmOperatorType *ot);
|
|
void MESH_OT_uv_texture_remove(struct wmOperatorType *ot);
|
|
void MESH_OT_vertex_color_add(struct wmOperatorType *ot);
|
|
void MESH_OT_vertex_color_remove(struct wmOperatorType *ot);
|
|
/* no create_mask yet */
|
|
void MESH_OT_customdata_mask_clear(struct wmOperatorType *ot);
|
|
void MESH_OT_customdata_skin_add(struct wmOperatorType *ot);
|
|
void MESH_OT_customdata_skin_clear(struct wmOperatorType *ot);
|
|
void MESH_OT_customdata_custom_splitnormals_add(struct wmOperatorType *ot);
|
|
void MESH_OT_customdata_custom_splitnormals_clear(struct wmOperatorType *ot);
|
|
void MESH_OT_drop_named_image(struct wmOperatorType *ot);
|
|
|
|
|
|
#endif /* __MESH_INTERN_H__ */
|