Commit: fea60eccbf49563187ca7025aa68e8547fc2902e Author: Aaron Carlisle Date: Fri Dec 23 18:58:16 2022 -0500 Branches: master https://developer.blender.org/rBfea60eccbf49563187ca7025aa68e8547fc2902e
UI: Remove unused light object panel This panel showed a duplication of options that were in the main light panel and only mistakenly shows up in the workbench engine where lights should have no options. This panel was also used by the POV-Ray add-on but that was removed recently. =================================================================== M release/scripts/startup/bl_ui/properties_data_light.py =================================================================== diff --git a/release/scripts/startup/bl_ui/properties_data_light.py b/release/scripts/startup/bl_ui/properties_data_light.py index 2980592ee0b..b313ae4dcb9 100644 --- a/release/scripts/startup/bl_ui/properties_data_light.py +++ b/release/scripts/startup/bl_ui/properties_data_light.py @@ -227,32 +227,6 @@ class DATA_PT_EEVEE_shadow_contact(DataButtonsPanel, Panel): col.prop(light, "contact_shadow_thickness", text="Thickness") -class DATA_PT_area(DataButtonsPanel, Panel): - bl_label = "Area Shape" - COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_WORKBENCH'} - - @classmethod - def poll(cls, context): - light = context.light - engine = context.engine - return (light and light.type == 'AREA') and (engine in cls.COMPAT_ENGINES) - - def draw(self, context): - layout = self.layout - - light = context.light - - col = layout.column() - col.row().prop(light, "shape", expand=True) - sub = col.row(align=True) - - if light.shape in {'SQUARE', 'DISK'}: - sub.prop(light, "size") - elif light.shape in {'RECTANGLE', 'ELLIPSE'}: - sub.prop(light, "size", text="Size X") - sub.prop(light, "size_y", text="Size Y") - - class DATA_PT_spot(DataButtonsPanel, Panel): bl_label = "Spot Shape" bl_parent_id = "DATA_PT_EEVEE_light" @@ -315,7 +289,6 @@ classes = ( DATA_PT_EEVEE_shadow, DATA_PT_EEVEE_shadow_cascaded_shadow_map, DATA_PT_EEVEE_shadow_contact, - DATA_PT_area, DATA_PT_spot, DATA_PT_falloff_curve, DATA_PT_custom_props_light, _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs