4fc85a202bd81bcaee40729758164a4eda7f570e
Start frame and especially channel picking algorithm was sub optimal. It is much better to leave final strip placement decision up to the user in a form of modal operation. Move Strips property is added to strip add operators. When enabled, strip is added to position of mouse cursor, strip overlap is allowed and strip position then can be changed during modal seq_slide operation, which is invoked automatically. This property is saved and drag and drop operations do not change it, thanks to store/restore hack facilitated by operator customdata. If translation after strips are added is canceled, added strips are removed. Effects with inputs do not use this feature, as their placement is restricted in X axis and 99% of time, it would be placed directly above the input strip. Since the strips are to be placed to mouse position after "modal" filebrowser is closed, `eventstate->xy` of `wmWindow` is used to read mouse cursor position in operator exec function. The seq_slide operator is invoked using `WM_operator_name_call_ptr()`, as macros or other schemes do not fit this use-case. Ref: #136515 Pull Request: https://projects.blender.org/blender/blender/pulls/138382
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
