Commit: ccbfeb0e57df87927ba1b6760af580b82df578aa
Author: Julian Eisel
Date:   Fri Jan 10 17:33:54 2020 +0100
Branches: vr_scene_inspection
https://developer.blender.org/rBccbfeb0e57df87927ba1b6760af580b82df578aa

Hack: Let gizmos draw during playback to force VR gizmo redraws that way

We have to somehow force VR gizmos (i.e. the virtual camera) to
continuously redraw. Until there's a proper way to do that (e.g.
continuously redrawing certain gizmos without redrawing the rest of the
3D View), just allow playing animation to force these redraws.

===================================================================

M       source/blender/windowmanager/gizmo/intern/wm_gizmo.c

===================================================================

diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo.c 
b/source/blender/windowmanager/gizmo/intern/wm_gizmo.c
index e2fb4dc3e0e..10ba692f958 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo.c
@@ -771,7 +771,9 @@ bool WM_gizmo_context_check_drawstep(const struct bContext 
*C, eWM_GizmoFlagMapD
     case WM_GIZMOMAP_DRAWSTEP_3D: {
       wmWindowManager *wm = CTX_wm_manager(C);
       if (ED_screen_animation_playing(wm)) {
-        return false;
+        /* XXX Let gizmos draw while animation is playing, as a hack to force 
VR view gizmos to
+         * redraw continuously. */
+        // return false;
       }
       break;
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to