fix [#31661] Custom properties do no respect min/max values
[blender.git] / source / blender / windowmanager / intern / wm.c
index fa00ec63b31446e0826163e6453d139dc7694f45..8fe387765ce0e3634d523f4e96f9175f290af839 100644 (file)
@@ -78,7 +78,7 @@ void WM_operator_free(wmOperator *op)
        if (op->py_instance) {
                /* do this first in case there are any __del__ functions or
                 * similar that use properties */
        if (op->py_instance) {
                /* do this first in case there are any __del__ functions or
                 * similar that use properties */
-               BPY_RNA_DECREF_INVALIDATE(op->py_instance);
+               BPY_DECREF_RNA_INVALIDATE(op->py_instance);
        }
 #endif
 
        }
 #endif