diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-10-05 15:13:30 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-10-05 15:13:30 +0300 |
commit | 9fdd21d1531a243ffd03a85368d97aaf4609c263 (patch) | |
tree | 83689659198a2a6adce8f8fefb05664020ce5a80 | |
parent | a74350af582ce013079563c1f477601f3b3bf991 (diff) |
Basic show material panel
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 1c7f3639f0a..a32f3ed4042 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -93,8 +93,9 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel): ob = context.object mat = context.material - if (ob and ob.type == 'GPENCIL') or (mat and mat.grease_pencil): - return False + if (ob and ob.type == 'GPENCIL' and ob.use_grease_pencil_scene_engine is False): + if mat and mat.grease_pencil: + return False return (ob or mat) and (context.engine in cls.COMPAT_ENGINES) |