Post #4060: I tried to replicate this and it only happens when the popup dialog is in Pie Mo

📋 Metadata

🏷️ Tags

popup-dialog scripting advanced solved

  • Pie Menu Editor
  • Popup Dialog Editor
  • Python Scripting

💬 Content

I tried to replicate this and it only happens when the popup dialog is in Pie Mode, for some reason it sets the C.scene.display.light_direction to (0,0,0) and that breaks it.

I tried to make something to set a direction if it breaks

Custom tab:

d = C.scene.display.light_direction; C.scene.display.light_direction = (1,1,1) if (d[0],d[1],d[2]) == (0,0,0) else C.scene.display.light_direction; L.prop(C.scene.display, 'light_direction', text='')

It should run every time you call the menu and if the vector is 0,0,0 its going set it to 1,1,1


❤️ 1 likes


🔗 View on Blender Artists