This commit restores support for Motion Path drawing in 2.8 (as it wasn't ported over to the new draw engines earlier, and the existing space_view3d/drawanimviz.c code was removed during the Blender Internal removal). Notes: * Motion Paths are now implemented as an overlay (enabled by default). Therefore, you can turn all of them on/off from the "Overlays" popover * By and large, we have kept the same draw style as was used in 2.7 Further changes can happen later following further design work. * One change from 2.7 is that thicker lines are used by default (2px vs 1px) Todo's: * There are some bad-level calls introduced here (i.e. the actgroup_to_keylist() stuff). These were introduced to optimise drawing performance (by avoiding full keyframes -> keylist conversion step on each drawcall). Instead, this has been moved to the calculation step (in blenkernel). Soon, there will be some cleanups/improvements with those functions, so until then, we'll keep the bad level calls. Credits: * Clément Foucault (fclem) - Draw Engine magic + Shader Conversion/Optimisation * Joshua Leung (Aligorith) - COW fixes, UI integration, etc. Revision History: See "tmp-b28-motionpath_drawing" branch (rBa12ab5b2ef49ccacae091ccb54d72de0d63f990d)
47 lines
1.8 KiB
C++
47 lines
1.8 KiB
C++
/*
|
|
* Copyright 2016, Blender Foundation.
|
|
*
|
|
* 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.
|
|
*
|
|
* Contributor(s): Blender Institute
|
|
*
|
|
*/
|
|
|
|
/** \file blender/draw/modes/draw_mode_engines.h
|
|
* \ingroup draw
|
|
*/
|
|
|
|
#ifndef __DRAW_MODE_ENGINES_H__
|
|
#define __DRAW_MODE_ENGINES_H__
|
|
|
|
extern DrawEngineType draw_engine_object_type;
|
|
extern DrawEngineType draw_engine_edit_armature_type;
|
|
extern DrawEngineType draw_engine_edit_curve_type;
|
|
extern DrawEngineType draw_engine_edit_lattice_type;
|
|
extern DrawEngineType draw_engine_edit_mesh_type;
|
|
extern DrawEngineType draw_engine_edit_metaball_type;
|
|
extern DrawEngineType draw_engine_edit_surface_type;
|
|
extern DrawEngineType draw_engine_edit_text_type;
|
|
extern DrawEngineType draw_engine_motion_path_type;
|
|
extern DrawEngineType draw_engine_paint_texture_type;
|
|
extern DrawEngineType draw_engine_paint_vertex_type;
|
|
extern DrawEngineType draw_engine_paint_weight_type;
|
|
extern DrawEngineType draw_engine_particle_type;
|
|
extern DrawEngineType draw_engine_pose_type;
|
|
extern DrawEngineType draw_engine_sculpt_type;
|
|
extern DrawEngineType draw_engine_overlay_type;
|
|
|
|
#endif /* __DRAW_MODE_ENGINES_H__ */
|