Page MenuHome

A modifiers `ui_expand_flag` / `show_expanded` is missing an update (breaking *Modifier tools* add-on functionality)
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 965M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 398.36

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-08 15:55, hash: rB9f7d84b656fb
Worked: 2.83

Short description of error
from the default file:

  • add two modifiers to the default cube (e.g. SurfaceDeform)
  • C.active_object.modifiers['SurfaceDeform'].show_expanded = False
  • C.active_object.modifiers['SurfaceDeform'].show_expanded = True
  • missing layout update

Original report:

Short description of error
Clicking on the "Toggle Stack" button in the *Modifier tools* add-on doesn't expand or collapse the modifiers.

Exact steps for others to reproduce the error
Based on the default startup
Go to Preferences>Add-ons>Interface> enable "Modifier Tools" add-on; create any object, go to "modifier properties" and add a couple of modifiers; go up to the 4 buttons of the *modifier tools* and click "Toggle Stack."

Event Timeline

slowk1d (Geronimooo) renamed this task from "Toggle stack" option of *modifier tools* add-on doesn't work to "Toggle stack" option bug in built-in "Modifier tools" add-on.Jun 9 2020, 6:13 PM
Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Jun 10 2020, 1:48 PM
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".

Yep, since rB9b099c86123f: UI: Drag and Drop Modifiers, Layout Updates, the modifiers ui_expand_flag / show_expanded is missing an update [it does open and close, but doesnt refresh the UI properly]

CC @Hans Goudey (HooglyBoogly)

Philipp Oeser (lichtwerk) renamed this task from "Toggle stack" option bug in built-in "Modifier tools" add-on to A modifiers `ui_expand_flag` / `show_expanded` is missing an update (breaking *Modifier tools* add-on functionality).Jun 10 2020, 1:51 PM
Philipp Oeser (lichtwerk) updated the task description. (Show Details)

It looks like changing the modifier expansion has to activate panel animation somehow. I'll look into it.