[Bf-blender-cvs] [52c0742560d] master: GPencil: Remove Panel Grease Pencil and move Use Lights to Visibility

Antonio Vazquez noreply at git.blender.org
Wed Mar 18 13:48:35 CET 2020


Commit: 52c0742560d0fbd16e8cc6ac887c260dcace3d4a
Author: Antonio Vazquez
Date:   Wed Mar 18 13:48:18 2020 +0100
Branches: master
https://developer.blender.org/rB52c0742560d0fbd16e8cc6ac887c260dcace3d4a

GPencil: Remove Panel Grease Pencil and move Use Lights to Visibility

It was too much to have a panel for that.

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

M	release/scripts/startup/bl_ui/properties_object.py

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

diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 91bd055741c..a805b965af2 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -396,26 +396,9 @@ class OBJECT_PT_visibility(ObjectButtonsPanel, Panel):
         col = flow.column()
         col.prop(ob, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
 
-
-class OBJECT_PT_greasepencil_light(ObjectButtonsPanel, Panel):
-    bl_label = "Grease Pencil"
-    bl_options = {'DEFAULT_CLOSED'}
-    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
-
-    @classmethod
-    def poll(cls, context):
-        return (context.object) and (context.engine in cls.COMPAT_ENGINES) and (context.object.type == 'GPENCIL')
-
-    def draw(self, context):
-        layout = self.layout
-        layout.use_property_split = True
-
-        flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False)
-        layout = self.layout
-        ob = context.object
-
-        col = flow.column()
-        col.prop(ob, "use_grease_pencil_lights", toggle=False)
+        if context.object.type == 'GPENCIL':
+            col = flow.column()
+            col.prop(ob, "use_grease_pencil_lights", toggle=False)
 
 
 class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel):
@@ -438,7 +421,6 @@ classes = (
     OBJECT_PT_display,
     OBJECT_PT_display_bounds,
     OBJECT_PT_visibility,
-    OBJECT_PT_greasepencil_light,
     OBJECT_PT_custom_props,
 )



More information about the Bf-blender-cvs mailing list