Page MenuHome

Gizmos doesn't work correctly on multiple windows
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.97

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-15 20:45, hash: rBe5b788bad8bc
Worked: (optional)

Short description of error
https://youtu.be/wQHv90TlpBc

Exact steps for others to reproduce the error

  1. New File
  2. Create script from template - gizmo_custom_geometry.py
  3. Run script and select lamp
  4. Window > New Window
  5. Also,

in the second window gizmo select test is not correct, you can see it in my short video

Details

Type
Bug

Event Timeline

plz wait for developers to assign them self to bug report.

plz wait for developers to assign them self to bug report.

Okay)

In my purposes, I need to make multiple window support for texture paint mode addon. Simplificated it looks like that:


In the attached *.blend file I tried make similar operations as in Blender source code

I tried to add gpu.matrix.push_pop() and enable GL_BLEND, GL_DEPTH_TEST, clear GL_DEPTH_BUFFER_BIT before drawing custom shape (and disable after self.draw_custom_shape)
As a result, in object mode everything works only if any other 3d gizmo is drawn(in my video bellow it was move gizmo) / in texture paint mode it works normal only in "main" window, in the second one if mouse is over gizmo, selection is not stable, as you can see, gizmo blinked.

https://youtu.be/1tEX2qkzXgA

Maybe I skipped something important?
I write addon to work with photoscanned objects and multiple window support is very usefull.