System Information
Windows 10.0.16299 (x64)
NVIDIA GTX460M
Blender Version
Broken: 2.79 5bd8ac9 (x64), and latest 2.79a release candidate
Worked: (optional)
Short description of error
Blender has random behavior when changing values of built in Property (IntProperty, FloatProperty, etc..) after Undo operation is performed. Random behavior:
Crash (rare)
Value Defaults to default and cannot be changed (less common)
Value Defaults to Default (most common)
Value behaves as expected (less common)
Exact steps for others to reproduce the error
- Start default blend file.
- Add or use existing cube, select it.
- Open Python console and enter:
obj = bpy.context.object bpy.types.Object.id = bpy.props.IntProperty() obj.id = 1234 obj.id
- Move the cube, place it. Move it again and place it.
- Ctrl+Z to undo last move.
obj.id - now will have random behavior. Sometimes assigning obj.id a new value or trying to print it will crash / freeze Blender. Most of the time the value will change to default. Sometimes it will stay the same.
It is even worse when storing data like so:
obj['my_id'] = 12345