blender/intern
Dalai Felinto 92d185faeb Properties Editor: Grease Pencil and pinning fixes
The UI was trying to use screen_context.c for its poll and draw
functions. So the active object and active object data and active layer
was used in the UI, instead of the context one.

Besides, for the material, the wrong context path was used altogether
when the active object was a greasepencil.

This would lead to all sort of pinning problems:

* A Mesh panel is pinned, but the active object is a grease pencil, the
grease pencil panels would show.

* If a Grease Pencil (data) panel is pinned, but the active object is not
the one pinned, nothing would show.

* Material panels and pinning were totally broken, showing the material
context for pinned mesh data panels even.

I also sanitized the name of the panels, their inheritance and poll
functions.

Reviewers: antoniov, brecht

Subscribers: billrey

Differential Revision: https://developer.blender.org/D4470
2019-03-07 20:28:25 +00:00
..
atomic doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
audaspace doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
clog Cleanup: GCC redundant declarations 2019-02-23 22:18:34 +11:00
cycles Properties Editor: Grease Pencil and pinning fixes 2019-03-07 20:28:25 +00:00
dualcon Cleanup: trailing commas 2019-02-03 14:59:11 +11:00
eigen Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00
elbeem doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
ffmpeg Cleanup: remove redundant, invalid info from headers 2019-02-02 02:40:00 +11:00
ghost Linux/X11: update icon in taskbar to match new icons. 2019-03-06 17:12:11 +01:00
glew-mx doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
guardedalloc doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
iksolver doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
itasc doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
libmv Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00
locale doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
memutil doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
mikktspace doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
numaapi Cleanup: add clarifying comments for recent NUMA fixes. 2019-01-21 10:54:19 +01:00
opencolorio Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00
opensubdiv Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00
openvdb Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00
rigidbody doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
smoke doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
string doxygen: add newline after \file 2019-02-18 08:22:12 +11:00
utfconv Cleanup: remove redundant, invalid info from headers 2019-02-02 02:40:00 +11:00
CMakeLists.txt Cleanup: remove contributors for CMake files 2019-02-05 09:10:32 +11:00