System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13
Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-15 16:34, hash: rB17cb32c7bc7c
Worked: (optional)
Short description of error
Blender crashes after you call a pie menu that contains:
pie.prop_enum(context.scene.transform_orientation_slots[1], "type", value="GLOBAL")
It crashes with:
context.scene.transform_orientation_slots[1] context.scene.transform_orientation_slots[2] context.scene.transform_orientation_slots[3]
For Move, Rotate and Scale orientations.
It works fine with LOCAL, NORMAL, GIMBAL, CURSOR and DEFAULT, but not with GLOBAL.
Exact steps for others to reproduce the error
- Create a pie menu that contains the item mentioned above. For example:
import bpy
from bpy.types import Menu
class CRASH_MT_pie_menu(Menu):
bl_label = "Crash Blender"
def draw(self, context):
layout = self.layout
obj = context.object
pie = layout.menu_pie()
# This is the reson for the crash. It happens only with "GLOBAL".
# Works fine with LOCAL,NORMAL etc.
pie.prop_enum(context.scene.transform_orientation_slots[1], "type", value="GLOBAL")
classes = (
CRASH_MT_pie_menu,
)
register, unregister = bpy.utils.register_classes_factory(classes)
if __name__ == "__main__":
register()- Assign a key to run the pie menu (CRASH_MT_pie_menu).
- Run it in the 3D View.