Page MenuHome

Wrong scene when adding a scene strip - bpy.ops.sequencer.scene_strip_add
Closed, ResolvedPublic

Description

Blender Version
Broken: master branch

Given scenes: Scene, Scene.001, and Scene.002, when user sets the active scene to Scene and adds a scene strip with Scene.002 in Video Sequence Editor (bpy.ops.sequencer.scene_strip_add), Scene.001 gets added instead. Similarly, adding Scene.001 adds Scene to itself, even though Scene wasn't listed at all.

This function might be relevant:
https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/17793a66c684aa86559de90d4cb5af7e65a06f66:/source/blender/windowmanager/intern/wm_operators.c#l3876

Adding i++ before continue on line 3888 fixes the bug.