Page MenuHome

Sidebar - temporary vanishing Annotation panel with adding a grease pencil object
Open, Confirmed, MediumPublic

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.15

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-07 20:36, hash: rB23e1fb365b65
Worked: (optional)

Short description of error
[Please fill out a short description of the error here]

The annotations panel in the View tab of the sidebar vanishes when you create a grease pencil object. This does not happen with other object types.

Painting a annotation stroke will reveal the panel again.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

In object mode draw a annotation stroke. Open the sidebar. Go to the view tab and open the Annotations panel.
Create a cube or another primitive. The annotations panel is still there.
Now create a grease pencil object. The annotations panel will vanish. It will come back when you draw more annotations.

Details

Type
Bug

Event Timeline

That is funny, it should be an easy fix, I will look at it.

Dalai Felinto (dfelinto) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.Nov 12 2019, 12:47 AM

Oh boy, leaving this to our brave greasepencil team.

Really, the whole ED_gpencil_data_get_pointers_direct() where we get a different data based on active object is not the way to go.
I believe we want to separate the gp object from the anotation data (as far as UI/context go) very radically.

We can still be smart about that and re-use the UI panels/code. But not the way we are doing it. Because fundamentally there is no real reason to prevent showing the annotations panel and edit its data only because an greasepencil object is active.

I agree with @Dalai Felinto (dfelinto). The problem now is how the grease pencil datablock is handled. This requires to decouple totally all operators between annotation an grease pencil and use ob->datafor grease pencil an scene->gpdfor annotationes.

I will review the code and make a plan to do this change. It's not complex change but maybe need a lot of small changes.

Just encountered the same bug.

Just encountered the same bug. 2.80, 2.81, 2.82 the same issue

@Vyacheslav (hitrpr) It's logic, any version with annotations has the same issue. I'm working now in a big refactor of Sculpt/Weight Paint and new Vertex Paint and after that, I will work in this bug.