Blender Git Loki
Git Commits -> Revision 72a3608
Revision 72a3608 by Joshua Leung (master) June 1, 2018, 14:38 (GMT) |
T54991: Restore support for Motion Path drawing in 2.8 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) |
Commit Details:
Full Hash: 72a360827bc47e68bf47a5aa4ad9185b031423c4
Parent Commit: 44a8070
Lines Changed: +748, -12
4 Added Paths:
/source/blender/draw/intern/draw_anim_viz.c (+351, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_lines_geom.glsl (+38, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_lines_vert.glsl (+91, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_points_vert.glsl (+47, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_lines_geom.glsl (+38, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_lines_vert.glsl (+91, -0) (View)
/source/blender/draw/modes/shaders/animviz_mpath_points_vert.glsl (+47, -0) (View)
21 Modified Paths:
/release/scripts/startup/bl_ui/space_view3d.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_anim.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+3, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+84, -3) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+4, -0) (Diff)
/source/blender/draw/intern/draw_common.c (+43, -0) (Diff)
/source/blender/draw/intern/draw_common.h (+7, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+5, -0) (Diff)
/source/blender/draw/intern/draw_manager.h (+5, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+24, -6) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+3, -0) (Diff)
/source/blender/draw/intern/DRW_render.h (+2, -0) (Diff)
/source/blender/draw/modes/draw_mode_engines.h (+1, -0) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+4, -0) (Diff)
/source/blender/editors/armature/pose_edit.c (+3, -0) (Diff)
/source/blender/editors/object/object_edit.c (+9, -0) (Diff)
/source/blender/makesdna/DNA_action_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+6, -0) (Diff)
/source/blender/blenkernel/BKE_anim.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+3, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+84, -3) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+4, -0) (Diff)
/source/blender/draw/intern/draw_common.c (+43, -0) (Diff)
/source/blender/draw/intern/draw_common.h (+7, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+5, -0) (Diff)
/source/blender/draw/intern/draw_manager.h (+5, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+24, -6) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+3, -0) (Diff)
/source/blender/draw/intern/DRW_render.h (+2, -0) (Diff)
/source/blender/draw/modes/draw_mode_engines.h (+1, -0) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+4, -0) (Diff)
/source/blender/editors/armature/pose_edit.c (+3, -0) (Diff)
/source/blender/editors/object/object_edit.c (+9, -0) (Diff)
/source/blender/makesdna/DNA_action_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+6, -0) (Diff)