Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,27 @@ def draw_render_settings(self, context: bpy.types.Context):
self.layout.popover(F64RenderSettingsPanel.bl_idname)


# The light color is only shown in the UI in the DATA_PT_EEVEE_light panel,
# which is only shown with EEVEE enabled. The DATA_PT_light panel is shown otherwise,
# but only allows changing the light type.
# This panel extends the DATA_PT_light panel to allow setting the light color.
class LightDataPanel(bpy.types.Panel):
bl_label = "f64render light data"
bl_idname = "DATA_PT_f64render_light_data"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "data"
bl_parent_id = "DATA_PT_light"
bl_options = {"HIDE_HEADER"}

@classmethod
def poll(cls, context):
return context.scene is not None and context.scene.render.engine == Fast64RenderEngine.bl_idname

def draw(self, context):
self.layout.prop(context.light, "color")


# By default blender will hide quite a few panels like materials or vertex attributes
# Add this method to override the check blender does by render engine
def get_panels():
Expand Down