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-10-05Move sequencer sources from blenkernelRichard Antalik
This is first step of refactoring task T77580. Next step will be breaking up files into smaller ones. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D8492
2020-10-05Rename eSpaceSeq_Proxy_RenderSize membersRichard Antalik
Remove word proxy from eSpaceSeq_Proxy_RenderSize members if proxy is not used with that item. Otherwise this can be a bit confusing. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8861
2020-09-19Cleanup: consistent TODO/FIXME formatting for namesCampbell Barton
Following the most widely used convention for including todo's in the code, that is: `TODO(name):`, `FIXME(name)` ... etc.
2020-09-10Cleanup: spellingCampbell Barton
2020-09-04Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fixSebastian Parborg
No functional changes
2020-09-04Cleanup: Clang-Tidy bugprone-incorrect-roundings fixesSybren A. Stüvel
Should cause no noticeable difference.
2020-08-26Cleanup: add SEQ_ALL_BEGIN, SEQ_CURRENT_BEGIN to .clang-formatCampbell Barton
These were missed in 70500121b457d which caused reformatting.
2020-08-21Cleanup: rename iterators over sequences to be more clear about what they do.Bastien Montagne
No functional changes expected.
2020-08-21Cleanup: split `BKE_scene_get_depsgraph()` into two functionsSybren A. Stüvel
Split the depsgraph allocation into a separate function `BKE_scene_ensure_depsgraph()`. Parameters are only passed to those functions that actually need them. This removes the the "if that boolean is `false` this pointer is allowed to be `NULL`" logic and more cleanly decouples code. No functional changes.
2020-08-18Cleanup: remove bmain argument from BKE_scene_graph_update_for_newframeJacques Lucke
Reviewers: sergey Differential Revision: https://developer.blender.org/D8613
2020-08-10Merge branch 'blender-v2.90-release'Jeroen Bakker
2020-08-10Fix T79346: VSE custom proxy file is brokenRichard Antalik
In last set of refactoring patches, code implementing this feature has been accidentally removed. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8449
2020-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Blenkernel, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenkernel` module. No functional changes.
2020-08-02Merge branch 'blender-v2.90-release'Richard Antalik
2020-08-02Fix T67181: Only the first added movie strip will have audio belowRichard Antalik
Find free slot first for sound strips then for movie strips. This patch also fixes issue where all strips were added to channel 2 by default. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8339
2020-07-31Merge branch 'blender-v2.90-release'Sergey Sharybin
2020-07-31Sequencer: Add session UUID check functionSergey Sharybin
Is aimed for use during development and debug, to help verifying that operations do not leave sequences with invalid UUIDs.
2020-07-31Sequencer: Add session UUID management to SequenceSergey Sharybin
This is the first step for having sequences covered with session UUID with the goal to remove code which uses original sequence pointer to match sequences. Currently this UUID is maintained on file load, allocation and leaf duplication function.There are more cases to cover and ensure UUID is re-generated or re-used when needed. It will be done as follow-up development.
2020-07-27Cleanup: Fix compiler warning about missing parenthesesSybren A. Stüvel
The code was well-defined, given that `&&` binds stronger than `||`, but still GCC warns about this. No functional changes.
2020-07-27Cleanup: quiet warningJacques Lucke
2020-07-26VSE: Refactor delete operator and APIRichard Antalik
Operator logic is limited to iterating over selection and executing same code as python API does. Functional changes: - No attempt to preserve effects is made. Dependant effects are deleted. - No attempt to change meta strip boundaries. Partially fixes T73828 Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D6892
2020-07-26Fix T74958: Infinite loop on using strip as modifier maskRichard Antalik
Add recursion check before assigning strip as a mask for modifier. Same check is used for recursion check when reassigning effect input, so it should not be possible to create recursion at all.
2020-07-26Fix T78999: Crash when adjusting sequencer propertyRichard Antalik
Sequencer was not initialized yet, and RNA update function tried to clean up cache. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8323
2020-07-20T77086 Animation: Passing Dependency Graph to DriversSybren A. Stüvel
Custom driver functions need access to the dependency graph that is triggering the evaluation of the driver. This patch passes the dependency graph pointer through all the animation-related calls. Instead of passing the evaluation time to functions, the code now passes an `AnimationEvalContext` pointer: ``` typedef struct AnimationEvalContext { struct Depsgraph *const depsgraph; const float eval_time; } AnimationEvalContext; ``` These structs are read-only, meaning that the code cannot change the evaluation time. Note that the `depsgraph` pointer itself is const, but it points to a non-const depsgraph. FCurves and Drivers can be evaluated at a different time than the current scene time, for example when evaluating NLA strips. This means that, even though the current time is stored in the dependency graph, we need an explicit evaluation time. There are two functions that allow creation of `AnimationEvalContext` objects: - `BKE_animsys_eval_context_construct(Depsgraph *depsgraph, float eval_time)`, which creates a new context object from scratch, and - `BKE_animsys_eval_context_construct_at(AnimationEvalContext *anim_eval_context, float eval_time)`, which can be used to create a `AnimationEvalContext` with the same depsgraph, but at a different time. This makes it possible to later add fields without changing any of the code that just want to change the eval time. This also provides a fix for T75553, although it does require a change to the custom driver function. The driver should call `custom_function(depsgraph)`, and the function should use that depsgraph instead of information from `bpy.context`. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D8047
2020-07-16Fix T78837: Prefetching can corrupt .blend filesRichard Antalik
This happened because of typo in seq_dupli() when duplicating effect data. Instead of duplicating data to new sequence, it was duplicated into original. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8295
2020-07-13VSE: Python API, allow creation of VSE Movie strips with missing fileSybren A. Stüvel
It was already possible to create Sound and Image strips that reference non-existing files. Now it's also possible to create Movie strips referencing missing files via the Python API call `Sequences.new_movie()`. In this case, the duration of the strip will be set to 1 frame. Note that this commit does not change anything in the user interface. The Python API of the `MovieStrip` class is extended with a function `reload_if_needed()`. This function only performs disk I/O if the movie strip cannot produce frames, that is either when its filepath points to a non-existing file, or when the video sequence editor has not been shown yet (for example because it is in an inactive workspace). This allows for the following: ``` import bpy scene = bpy.context.scene vse = scene.sequence_editor_create() filepath = bpy.path.abspath('//demo.mkv') strip = vse.sequences.new_movie("movie", filepath, channel=2, frame_start=47, file_must_exist=False) strip.frame_final_end = 327 ``` This will create a new movie strip, even when `demo.mkv` does not exist. Once `demo.mkv` has appeared at the expected location, either `strip.reload_if_needed()` or `strip.filepath = strip.filepath` will load it. Differential Revision: https://developer.blender.org/D8257 Reviewed By: Sergey, ISS
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-07-11Cleanup: remove unused functionCampbell Barton
2020-07-10Fix T78579: Proxy produces wrong preview when using Offset or CropRichard Antalik
Make sure that proxy and original images are scaled to same size before applying offset or crop. During testing, I discovered, that raw cache will lose information whether this image was proxy or not. Because of this, proxy images will not create this cache type. It would be fairly easy to implement this functionality for cache, but I have decided to not do it now, because I did not want to pass yet another mostly hard-coded bool flag to cache system. Since image is proxy, it should be fast to read anyway. In case of using offset property, code was modified to make sure we scale image only once. I also tried to make code more readable and streamlined and cleaned up surrounding functions a bit. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8203
2020-06-29VSE: Fix type mismatch introduced in rB8bcfa0d1fb9fRichard Antalik
Pass `IMB_Proxy_Size` to `seq_can_use_proxy` and remove duplicate check.
2020-06-26Fix detecting proxy images.Richard Antalik
Pass is_proxy_image to functions where images are loaded instead of comparing image size to render size. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8128
2020-06-26Silence warning introduced in f7f3b2d31823Richard Antalik
Call function `BKE_scene_multiview_view_prefix_get` to ensure ext is not NULL. This already should happen in `seq_image_strip_is_multiview_render` though. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8081
2020-06-23Cleanup: rename 'name' to 'filepath' for DNA typesCampbell Barton
Using 'name' for the full path of a file reads badly, especially when id.name is used in related code.
2020-06-18Cleanup: unused variablesCampbell Barton
2020-06-18Fix T75414: Incorrect masking in Color Balance modifierRichard Antalik
Color balance factor was infinity. Clamp to +/- `FLT_MAX` Reviewed By: sergey Differential Revision: https://developer.blender.org/D7884
2020-06-18Cleanup: Remove goto statements from strip rendering functionsRichard Antalik
Remove goto statement from `seq_render_image_strip()` and `seq_render_movie_strip()`. `seq_render_image_strip_view()` and `seq_render_movie_strip_view()` is used to render individual views in both monoview and multiview branch. I have included `seq_can_use_proxy()` for convinience Reviewed By: sybren Differential Revision: https://developer.blender.org/D7870
2020-06-18VSE: Fix assigning effect strip inputsRichard Antalik
Partialy fixes T73828 Currently all 3 effect inputs were assigned even if not all 3 were used. This causes problems with reassigning effects in python, because 3rd input is not accessible. This patch will only assign inputs that are necessary for effect to work properly. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D6868
2020-06-18Cleanup: Remove unused code from `seq_proxy_get_fname()`Richard Antalik
Reviewed By: brecht Differential Revision: https://developer.blender.org/D7868
2020-06-05Code Cleanup: fcurve function namingJeroen Bakker
2020-05-18Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-18Fix error mixing incompatible enums when generating the proxy nameCampbell Barton
2020-05-13Merge branch 'blender-v2.83-release'Richard Antalik
2020-05-13Fix T70612: Sequencer Crash on enabling PrefetchRichard Antalik
Disable (skip) preftching scene strips if they target 3D scene. Try to continue prefetching complete frame if disk cache images are found. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7514
2020-05-10Merge branch 'blender-v2.83-release'Richard Antalik
2020-05-10Fix T36263: Pasted strip doesnt have F-Curve keyframes from the originalRichard Antalik
Original code for copying strips tried to change strip name 2 times before copying and once again after pasting. Store structs in clipboard in unchanged state, so we can reference data after pasting easily. Better method would probably be storing animation data in clipboard as well, so we can copy animated strips even between scenes. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7638
2020-05-10Merge branch 'blender-v2.83-release'Richard Antalik
2020-05-10Fix T71300: Crash on rendering scene recursively from sequencerRichard Antalik
Adding recursive scenes has been disabled, but old files still can be opened. Add check if scene will render itself. Opening such file will produce warning on open and error on running render. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D7562
2020-04-30VSE: Add frame interpolation option to speed effectIsrael Medina
Do cross transition from current to next frame instead of displaying one image for n frames. Reviewed By: ISS, sergey, campbellbarton Differential Revision: https://developer.blender.org/D7417