Commit graph

4 commits

Author SHA1 Message Date
Brecht Van Lommel
3581d96afb Fix: Running operator_function_py_api test clears recent files
I noticed my recent files list was getting randomly cleared, and traced
it to running this test. Use wm.previews_clear instead.

Issue introduced in 216c095d5d.

Pull Request: https://projects.blender.org/blender/blender/pulls/157483
2026-04-17 13:35:05 +02:00
Campbell Barton
9afe6f3b51 Fix #155928: Undo argument can no longer be passed to the operator
Resolve regression in [0] which didn't account for a single positional
boolean argument.

[0]: 877283a09a

Ref !155997
2026-03-20 19:33:43 +11:00
Campbell Barton
177ce52e34 Fix #155996: Crash calling operators with non-string keywords
Resolve regression in [0] which didn't account for the move to our
own callable type needing to validate the key types in the keyword dict.

Add `PyC_Dict_CheckKeysAreStrings` utility to allow reuse for
callable types in the future.

[0]: 877283a09a

Ref !155997
2026-03-20 19:33:10 +11:00
Campbell Barton
216c095d5d Tests: add tests for sub-classing & calling operators from Python
Add two tests, one to check that sub-classing works as expected,
another for the operators callable types.

Written to validate fixes for #155928 & #155996 and ensure
there are no further regressions.

Ref !155994
2026-03-20 18:10:22 +11:00