Blender Git Loki
Git Commits -> Revision dba3fb9
Revision dba3fb9 by Pablo Dobarro (master) June 3, 2021, 18:17 (GMT) |
Overlay: Flash on Mode Transfer overlay This implements T87633 This overlay renders a flash animation on the target object when transfering the mode to it using the mode transfer operator. This provides visual feedback when switching between objects without extra overlays that affect the general color and lighting in the scene. Differences with the design task: - This uses just a fade out animation instead of a fade in/out animation. The code is ready for fade in/out, but as the rest of the overlays (face sets, masks...) change instantly without animation, having a fade in/out effect gives the impression that the object flashes twice (once for the face sets, twice for the peak alpha of the flash animation). - The rendering uses a flat color without fresnel for now, but this can be improved in the future to make it look more like the shader in the prototype. - Not enabled by default (can be enabled in the overlays panel), maybe the defaults can change for 3.0 to disable fade inactive and enable this instead. Reviewed By: jbakker, JulienKaspar Differential Revision: https://developer.blender.org/D11055 |
Commit Details:
Full Hash: dba3fb9e091acfa7d2144468a220b2b0d577c15d
Parent Commit: 3e695a2
Lines Changed: +206, -0
1 Added Path:
/source/blender/draw/engines/overlay/overlay_mode_transfer.c (+159, -0) (View)
8 Modified Paths:
/release/scripts/startup/bl_ui/space_view3d.py (+3, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+8, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_private.h (+12, -0) (Diff)
/source/blender/editors/object/object_modes.c (+11, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+8, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+8, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_private.h (+12, -0) (Diff)
/source/blender/editors/object/object_modes.c (+11, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+8, -0) (Diff)