Post #4060: I tried to replicate this and it only happens when the popup dialog is in Pie Mo
📋 Metadata
- Author: Motiomancer
- Date: 2021-09-13 16:07:01
- Type:
answer - Quality Score: 8/10
- Reply to: post_04059
🏷️ Tags
popup-dialog scripting advanced solved
⚙️ Related PME Features
- 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