Page MenuHome

Cycles UI breaks when pushing F8
Closed, ResolvedPublic

Description

System Information
Windows 10 64 bit
GTX 980ti

Blender Version
Broken: 9bea39c (28 Nov), but probably eariler. Current master is still broken
Worked: 2.78 release

Short description of error
When pushing F8 to reload scripts, a lot of the Cycles UI disappears. Check the World setting for most obvious change.

Exact steps for others to reproduce the error

  1. Open blender
  2. Reload factory settings if you want
  3. Switch to Cycles renderer
  4. Look at all the pretty panels in the world settings
  5. Press F8
  6. Watch your world disappear into a black hole

Event Timeline

Vuk Gardašević (lijenstina) triaged this task as Confirmed, Medium priority.

I can confirm the issues with the latest builds on Windows 7 too.
Win 64 Build from 14th November fc9fa07 doesn't mess up on reload.

Using an operator to generate a list of all the Menus and Panels on a factory startup, seems that 42 of them are missing - all Cycles related.

Here is a diff comparison between the two:

EDIT: I can confirm the issue on Linux Arch Antergos 64 bit too
build 82187a58f5

Issue is in bpy.utils.register_module(), on first run it registers all classes, including those from sub-modules, while when called again during reload process it only register classes in module (__init.py__ file).