Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-10Fix sequencer Slip tool skipping offset=0 caseCampbell Barton
The slip tool wasn't being applied when the offset was zero. This caused modal operation to skip applying this offset while dragging.
2020-03-10Cleanup: replace term 'terrible' from sequence slipCampbell Barton
Joke from branch name, makes comments unclear.
2020-03-09UI: rename View Frame to Go to Current Frame in video sequencerEitan
For consistency with other editors. Differential Revision: https://developer.blender.org/D7025
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06CodeCleanup: Added enums to opengl render functionsJeroen Bakker
Motivation the functions get 3 different kind of flag parameters (ImBuf, DrawType, OffscreenRendering) the naming of the flags were not clear, leading to mistakes and unnecessary time spend debugging.
2020-03-04UI: rename View Selected" to "Frame Selected"Asad-ullah Khan
Addresses T74331
2020-03-04Cleanup: replace CLAMP macros with functionsCampbell Barton
2020-03-02Fix T74334: VSE can't import multiple movie filesRichard Antalik
Add `directory` RNA property to add operators. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6986
2020-03-02Fix T74320: Sound strip waveforms drawing allows negative volume valuesRichard Antalik
While animating sound strips volume within the graph editor, it is possible to set keyframes to negative values. The drawing code of waveforms wasn't clamping these values to zero and was instead drawing an "inverted" curve Author: a.monti Reviewed By: iss Differential Revision: https://developer.blender.org/D6971
2020-02-19Cleanup: assign Main, use existing assignmentsCampbell Barton
Avoid accessing inline since it's often used multiple times. In some cases it was already defined.
2020-02-17Fix T70229: Show Cache On will cause a lower fpsRichard Antalik
Use gpu batch drawing for cache content in VSE. Immediate drawing caused significant dorp in framerate. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6835
2020-02-17Fix T68749: BPY: Deprecate height of popupJeroen Bakker
`invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694
2020-02-17Keymap: minor tweaks so box-select shortcuts show in the menuCampbell Barton
2020-02-17Keymap: add sequencer box select with handlesCampbell Barton
Use Ctrl-B, include in menu, rename property to match graph editor.
2020-02-16Rename Sequencer 'Cut' to 'Split'William Reynish
This avoids the ambiguity with the Cut operator in the Sequencer, which could be confused with Cut/Copy/Paste. Use 'Split' for the operator and 'Blade' for the active tool. Patch by Nathan Lovato, with edits Differential Revision: https://developer.blender.org/D5542
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2020-02-09VSE: Add option to select handles with box selectionRichard Antalik
Patch adds an "Handle" option to the `SEQUENCER_OT_box_select` operator, that allows to select the handles instead of whole strips. Feature is mapped to Alt key modifier A difference from the proposed design in T70730 is that covering the entire strip with the box actually selects both handles. Reviewed By: iss Differential Revision: https://developer.blender.org/D6372
2020-02-08Cleanup: remove old VSE prefetching code.Richard Antalik
Reviewed By: brecht Differential Revision: https://developer.blender.org/D6774
2020-01-27Fix T73428: Editor type dropdown menu missing in VSEJulian Eisel
Mistake in 6a49161c8c60, the tool-header region was not created when creating a new VSE editor (as opposed to an existing one in some workspace). There was also no way to get the tool-header to show in such cases.
2020-01-23Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-23CMake: Refactor external dependencies handlingSergey Sharybin
This is a more correct fix to the issue Brecht was fixing in D6600. While the fix in that patch worked fine for linking it broke ASAN runtime under some circumstances. For example, `make full debug developer` would compile, but trying to start blender will cause assert failure in ASAN (related on check that ASAN is not running already). Top-level idea: leave it to CMake to keep track of dependency graph. The root of the issue comes to the fact that target like "blender" is configured to use a lot of static libraries coming from Blender sources and to use external static libraries. There is nothing which ensures order between blender's and external libraries. Only order of blender libraries is guaranteed. It was possible that due to a cycle or other circumstances some of blender libraries would have been passed to linker after libraries it uses, causing linker errors. For example, this order will likely fail: libbf_blenfont.a libfreetype6.a libbf_blenfont.a This change makes it so blender libraries are explicitly provided their dependencies to an external libraries, which allows CMake to ensure they are always linked against them. General rule here: if bf_foo depends on an external library it is to be provided to LIBS for bf_foo. For example, if bf_blenkernel depends on opensubdiv then LIBS in blenkernel's CMakeLists.txt is to include OPENSUBDIB_LIBRARIES. The change is made based on searching for used include folders such as OPENSUBDIV_INCLUDE_DIRS and adding corresponding libraries to LIBS ion that CMakeLists.txt. Transitive dependencies are not simplified by this approach, but I am not aware of any downside of this: CMake should be smart enough to simplify them on its side. And even if not, this shouldn't affect linking time. Benefit of not relying on transitive dependencies is that build system is more robust towards future changes. For example, if bf_intern_opensubiv is no longer depends on OPENSUBDIV_LIBRARIES and all such code is moved to bf_blenkernel this will not break linking. The not-so-trivial part is change to blender_add_lib (and its version in Cycles). The complexity is caused by libraries being provided as a single list argument which doesn't allow to use different release and debug libraries on Windows. The idea is: - Have every library prefixed as "optimized" or "debug" if separation is needed (non-prefixed libraries will be considered "generic"). - Loop through libraries passed to function and do simple parsing which will look for "optimized" and "debug" words and specify following library to corresponding category. This isn't something particularly great. Alternative would be to use target_link_libraries() directly, which sounds like more code but which is more explicit and allows to have more flexibility and control comparing to wrapper approach. Tested the following configurations on Linux, macOS and Windows: - make full debug developer - make full release developer - make lite debug developer - make lite release developer NOTE: Linux libraries needs to be compiled with D6641 applied, otherwise, depending on configuration, it's possible to run into duplicated zlib symbols error. Differential Revision: https://developer.blender.org/D6642
2020-01-22VSE: Tool system integrationRichard Antalik
Add toolbar to sequencer regions. A bit of refactoring has to be done in RNA space. Currently there is only cut tool implemented to serve as template for anybody who would like to add more.
2020-01-22VSE: Add Adjust Last Operation panel to the video sequencerRichard Antalik
Add Adjust Last Operation panel to Sequencer. `OPTYPE_REGISTER` was removed form some operators and few properties were hidden So they don't show up on the panel Author: a.monti Reviewed By: ISS Differential Revision: http://developer.blender.org/D6210
2020-01-22Merge branch 'blender-v2.82-release'Richard Antalik
2020-01-22Fix T70415 100% proxy files playing with poor performanceRichard Antalik
Refactor code to use `eSpaceSeq_Proxy_RenderSize` or corresponding `IMB_Proxy_Size` enum items directly. `SEQ_PROXY_RENDER_SIZE_100` has assigned value 99 to distinguish from `SEQ_PROXY_RENDER_SIZE_FULL`. This caused error in image size calculation and because of that image had to be scaled. Author: EitanSomething Reviewed By: ISS Differential Revision: http://developer.blender.org/D6368
2020-01-20Merge branch 'blender-v2.82-release'Philipp Oeser
2020-01-20Fix T72546: Video Sequencer: Select grouped 'OVERLAP' operator wrongPhilipp Oeser
selection False positive when a sequences end would be the same as active sequences start. Also thx @sybren for the heads up to make this more readable. Maniphest Tasks: T72546 Differential Revision: https://developer.blender.org/D6451
2020-01-14Merge branch 'blender-v2.82-release'Clément Foucault
2020-01-14Fix T72255: VSE video addition broken when using recursive filebrowser view.Bastien Montagne
Fairly straight-forward issue, multi-files selection already feature the root directory to use, no need to extract it again from a full path...
2020-01-10Cleanup: ARegion.sizex/y should not be used to access region sizeJulian Eisel
This should only be used to change and recalculate region sizes in a DPI independent way. To get the size with DPI applied, ARegion.winx/y should be used instead. Added note on this in comment.
2019-12-02Overlay Engine: Refactor & CleanupClément Foucault
This is the unification of all overlays into one overlay engine as described in T65347. I went over all the code making it more future proof with less hacks and removing old / not relevent parts. Goals / Acheivements: - Remove internal shader usage (only drw shaders) - Remove viewportSize and viewportSizeInv and put them in gloabl ubo - Fixed some drawing issues: Missing probe option and Missing Alt+B clipping of some shader - Remove old (legacy) shaders dependancy (not using view UBO). - Less shader variation (less compilation time at first load and less patching needed for vulkan) - removed some geom shaders when I could - Remove static e_data (except shaders storage where it is OK) - Clear the way to fix some anoying limitations (dithered transparency, background image compositing etc...) - Wireframe drawing now uses the same batching capabilities as workbench & eevee (indirect drawing). - Reduced complexity, removed ~3000 Lines of code in draw (also removed a lot of unused shader in GPU). - Post AA to avoid complexity and cost of MSAA. Remaining issues: - ~~Armature edits, overlay toggles, (... others?) are not refreshing viewport after AA is complete~~ - FXAA is not the best for wires, maybe investigate SMAA - Maybe do something more temporally stable for AA. - ~~Paint overlays are not working with AA.~~ - ~~infront objects are difficult to select.~~ - ~~the infront wires sometimes goes through they solid counterpart (missing clear maybe?) (toggle overlays on-off when using infront+wireframe overlay in solid shading)~~ Note: I made some decision to change slightly the appearance of some objects to simplify their drawing. Namely the empty arrows end (which is now hollow/wire) and distance points of the cameras/spots being done by lines. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6296
2019-11-30UI: allow to hide markers region per editorAlessio Monti di Sopra
Instead of having the option to show marker lines, make the marker region optional. - Added a Show Markers entry in the View menu of the animation editors. - If the markers region is not active then the Marker menu gets hidden. - Removed marker menu from the driver editor and don't allow to use marker operators.
2019-11-18WM: remove view operators from the undo stackAlessio Monti di Sopra
2019-11-11VSE: open file browser sidebar by default when adding external stripsAlessio Monti di Sopra
Open the file browser sidebar by default when adding Movie/Sound/Image Sequence Strips, to show the operator options. Differential Revision: https://developer.blender.org/D6212 Reviewed by: William Reynish, Julian Eisel
2019-11-03Fix errors in fix for T68018Campbell Barton
2019-11-03VSE: add a Set frame range to Strips operatorAlessio Monti di Sopra
Add operator that sets the frame range, with an option to choose the regular or the preview one, around the selected strips. Reviewed By: ISS Differential Revision: https://developer.blender.org/D6078
2019-11-03UI: Fix preview frame range drawing in sequencer and driver editorsAlessio Monti di Sopra
Draw preview range overlay in the video sequencer in the same way as in the other animation editors Add color control in the theme. Prevent overlay to be drawn in the driver editor. Reviewed By: ISS Differential Revision: https://developer.blender.org/D6074
2019-11-03Merge branch 'blender-v2.81-release'Richard Antalik
2019-11-03Fix T68018: Crash on building movie proxyRichard Antalik
Skip building proxy if directory can not be created. Crash happens, when setting custom dir to location of source file itself. This results in attempt to create directory with the same name as source file. Differential Revision: https://developer.blender.org/D6148 Reviewed By: sergey
2019-11-01Cleanup: correct logical error in last commitCampbell Barton
Worked because: -INT_MIN == INT_MIN
2019-11-01Sequencer: use all selected strips for select side operatorCampbell Barton
D6127 by @a.monti with edits.
2019-10-08Fix T70626: VSE: Slip Strip Operator doesn't refresh audio on confirmPhilipp Oeser
Maniphest Tasks: T70626 Reviewed By: ISS, sergey Differential Revision: https://developer.blender.org/D6016
2019-10-04UI: Move all Selected Strips and Strip Handles when DraggingJulian Eisel
Part of T57918. Selecting and dragging items were previously conflicting actions when both were using the same mouse button. This avoids the conflict. See 056fcdfe7bbed3 for details on behavior.
2019-09-30Fix T69334: VSE Very low framerateRichard Antalik
Revert "Sequencer: use Alpha Over blend mode by default" This reverts commit 7c6c5b40cae47e2ecb0e2ef2a5ca1883270c0023. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5943
2019-09-26Fix sequencer Metadata panel sidebar panel to show at the bottom, not the topBrecht Van Lommel
2019-09-22Fix T69564: Empty fcurve prevents waveform drawingRichard Antalik
Add check if fcurve is empty to skip fcurve evaluation. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D5805
2019-09-14VSE: prefetchingRichard Antalik
When enabled prefetching(preview panel>view settings), a pernament running job is created, that will render frames in the background until the cache is full. If the cache is not filled fast enough, prefetch job suspends itself at the last moment and will wait until it has chance to "catch up". Effectively this will decouple rendering to separate thread, so rendering itself is a bit faster. Cache recycling behavior will be changed to "free furthest frame to the left of playhead if possible, otherwise rightmost frame". Reviewed By: brecht Differential Revision: https://developer.blender.org/D5386
2019-08-25Cleanup: redundant struct declarationsCampbell Barton
2019-08-24UI: Various tooltip corrections and fixesWilliam Reynish
Patch by Yevgeny Makarov (jenkm) Differential Revision: D5514
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558