Bmesh select history not work well

if i select some faces with script, its not save the selection in the bmesh select history.
so how can i select faces with code and save the selection in the history of the bmesh selection?

You need to use select_history.add() if you want faces selected with a script to be saved to the selection history.

So if you have a list of faces called my_faces you’d do something like this:

for f in my_faces:
    bm.select_history.add(f)
1 Like