Page MenuHome

EnumProperty with 'ENUM_FLAG' option does not trigger operator redo
Open, ConfirmedPublic

Description

System Information
Operating system: Ubuntu 18.04

Blender Version
Broken: 3d013f7b10b6837ab29eccf9a203477e13d278a2

Short description of error
See title.

Exact steps for others to reproduce the error

import bpy

class TestOperator(bpy.types.Operator):
    bl_idname = "object.test"
    bl_label = "Test"
    bl_options = {'REGISTER', 'UNDO'}

    prop: bpy.props.EnumProperty(
        options={'ENUM_FLAG'}, # comment this line out
        items=[
            ("A", "A", ""),
            ("B", "B", ""),
            ("C", "C", "")])

    def execute(self, context):
        print(self.prop)
        return {'FINISHED'}

bpy.utils.register_class(TestOperator)
  1. Execute this code.
  2. Run the operator and change the redo settings -> no redo is happening.
  3. Remove the ENUM_FLAG option and run the code again.
  4. Run the operator and change the redo settings -> now the operator is executed on every change.

Details

Type
Bug