Page MenuHome

Unable to override Timeline buttons after moving the timeline to be a dopesheet editor mode
Closed, ArchivedPublic

Description

System Information
Operating system: Debian Linux
Graphics card: gtx 1060

Blender Version
Broken: 2.80, latest 2.8 Git branch
Worked: 2.79b release

Short description of error

In Blender 2.8 it's not possible anymore to override the space_time.py file.

Exact steps for others to reproduce the error
Move on any button of the panel header (timeline) and edit source to open the space_time.py.
Any changes made on the file are not visible.

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 30.Feb 13 2019, 4:49 PM

I can edit space_time.py and the changes are visible on the next startup.
Do you mean that the changes are not saved to the space_time.py file for you?

I mean changes are not visible live. At startup yes, it works.
While digging into it I discovered the python override has other bugs.
If you try, for example to override the text in the render sampling, and hit run script, it's going to fail because it doesn't find

from .space_view3d import (
    VIEW3D_PT_shading_lighting,
    VIEW3D_PT_shading_color,
    VIEW3D_PT_shading_options,
)

Changing it to:

from bl_ui.space_view3d import (
    VIEW3D_PT_shading_lighting,
    VIEW3D_PT_shading_color,
    VIEW3D_PT_shading_options,
)

works and the change is visible live (after clicking run script) but get anyway another error:

RuntimeError: Error: Registering panel class: parent 'RENDER_PT_eevee_volumetric' for 'RENDER_PT_eevee_volumetric_shadows' not found

I guess this bug report title should be changed to something more generic as this issue happens (almost) everywhere with Blender 2.8

Brecht Van Lommel (brecht) lowered the priority of this task from 30 to Low.Feb 13 2019, 6:01 PM

Seems like an unintentional change to me.

Richard Antalik (ISS) changed the task status from Confirmed to Needs Information from User.Jan 24 2020, 12:01 AM

I have re-triaged this report and can not reproduce it. Assuming, that issue was, that after running Reload Scripts operator, UI wasn't updated.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

The issue with space_time.py is unavoidable, as these functions are called indirectly. The second issue you mention here: T61448#619916 has been resolved.