Page MenuHome

Operator log serialization broken for sets
Closed, ResolvedPublic

Description

Blender Version
Broken: blender-2.69-testbuild1 (r60355)
Worked: blender-2.67-r58051

Short description of error
Operators log properties wrong for sets, they will end with syntax errors if copy and pasted to script/pyconsole.

Exact steps for others to reproduce the error

  1. Open default scene
  2. Enter edit mode
  3. Sort mesh elements
  4. See operator log
  5. Shift+Click in redo panel to select multiple elements
  6. See operator log again

2.67:

bpy.ops.mesh.sort_elements(type='MATERIAL', elements={'VERT'}, reverse=True, seed=0)
bpy.data.window_managers["WinMan"].(null) = {'VERT', 'EDGE'} # Note: this shouldn't be logged at all I guess?
bpy.ops.mesh.sort_elements(type='MATERIAL', elements={'VERT', 'EDGE'}, reverse=True, seed=0)

2.69:

bpy.ops.mesh.sort_elements(type='VIEW_XAXIS', elements={, 'VERT'}, reverse=True)
bpy.data.window_managers["WinMan"].(null) = {, 'VERT', 'EDGE'}
bpy.ops.mesh.sort_elements(type='VIEW_XAXIS', elements={, 'VERT', 'EDGE'}, reverse=True)

# Another example:
bpy.data.window_managers["WinMan"].addon_support = {, 'OFFICIAL', 'COMMUNITY', 'TESTING'}

The elements-set starts with a comma in 2.69!

Event Timeline

codemanx created this task.Dec 20 2013, 9:07 PM
codemanx raised the priority of this task from to 90.
codemanx updated the task description. (Show Details)
codemanx edited a custom field.
codemanx added a subscriber: codemanx.
Bastien Montagne (mont29) changed the task status from Unknown Status to Resolved.Dec 20 2013, 11:37 PM

Closed by commit rB14c9899a69c2.