System Information
Ubuntu 17.04 64 bit + Win 10 64 bit
Blender Version
Broken: 2.79
Short description of error
Creating a UI widget to edit a pointer property that was created with type specified as a subclass of bpy.types.ID declared in Python (rather than one of the pre-existing subclasses) causes a segmentation fault when trying to edit.
Exact steps for others to reproduce the error
Run the following script. Editing the first property in the popup (points to bpy.types.NodeTree) acts as expected. Editing the second property in the popup (points to bpy.types.TestTreeType) causes a segmentation fault.
import bpy
class CustomNodeTree(bpy.types.NodeTree):
bl_idname = "TestTreeType"
bl_label = "Test tree"
bl_icon = "PLUGIN"
def draw(self, context):
self.layout.prop(context.scene, "testNodeTreeProp")
self.layout.prop(context.scene, "testCustomProp")
bpy.utils.register_class(CustomNodeTree)
bpy.types.Scene.testNodeTreeProp = bpy.props.PointerProperty(type=bpy.types.NodeTree)
bpy.types.Scene.testCustomProp = bpy.props.PointerProperty(type=bpy.types.TestTreeType)
bpy.context.window_manager.popup_menu(draw)