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
2021-02-05Cleanup: use 'r_' prefix for return arguments, order lastCampbell Barton
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-02-01Merge branch 'blender-v2.92-release'Richard Antalik
2021-02-01VSE: Fix proxy images have incorrect sizeRichard Antalik
This bug happens when media size doesn't match scene size and proxies are enabled. This is because some strips are rendered in preview size already - effects, mask or strips using proxies. If strip input is prescaled it needs to be known when transforming images, which does also scaling to preview size as one operation. whether image needs prescaling is defined in function `seq_need_scale_to_render_size()` Problem was introduced in 571362642201. Previously all images were scaled to fit into preview, and this was considered as baseline for further image transformation. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10183
2021-01-26Merge branch 'blender-v2.92-release'Richard Antalik
2021-01-26Fix T79922: Cache of meta strip not invalidatedRichard Antalik
Meta strip cache is not invalidated if strip inside of meta strip is invalidated. Find all metastrips that contain invalidated strip and invalidate them recursively. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10192
2021-01-25Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-25Cleanup: compiler warning, clang-format, spellingCampbell Barton
2021-01-25Merge branch 'blender-v2.92-release'Richard Antalik
2021-01-25Fix T83267: Crash prefetching scene strip in meta stripRichard Antalik
Scene strips can't be prefetched and seq_prefetch_do_skip_frame() should check if scene strip is in timeline. But it did not recurse into meta strips, which resulted in crash. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9999
2021-01-25Fix T82698: Speed effect not working on generator stripsRichard Antalik
Generator strips with zero inputs have their length set to 1 pernamently. In some cases it is useful to use speed effect on these strips because they can be animated. This can be done by using their length as is on timeline as content length. This is very simplified and temporary solution, as cutting these strips won't give expected results. Lot of code relies on length of these strips being fixed to 1, resolving this properly should be done by T59540. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10026
2021-01-25VSE: Remove skip_disk_cache argumentRichard Antalik
This argument was used to prevent infinite loop in lookups between disk and RAM cache. Code was refactored, so this can be handled internally in cache. Reviewed By: sybren, sergey Differential Revision: https://developer.blender.org/D9955
2021-01-20Cleanup: remove unused file SEQ_util.hCampbell Barton
Committed by accident when SEQ_utils.h was also created.
2021-01-13Cleanup: spellingCampbell Barton
2021-01-11VSE: store raw images in cacheRichard Antalik
Previously raw images were not cached if image wasn't preprocessed. This caused issue, that image had to be read from disk on every redraw. Effect strips must be excluded, because this would cause problem with invalidation. Effect strips can use preprocessing however. This is mainly to allow usimg modifiers on them. This change should follow rBf448ff2afe7a77, but I have wrongly assumed, that it has been implemented already. ref T80278
2021-01-10Fix sequencer disk cache not writing dataRichard Antalik
Error handling added in 512a23c3d61d caused that reading header of new file failed, since it is empty. Don't attempt to read header if file is empty. If header can not be read anyway, try to delete the file. Add asserts, as this should never happen. Reviewed By: sybren Differential Revision: https://developer.blender.org/D9954
2021-01-08Cleanup: clang formatPhilipp Oeser
2021-01-08VSE: Hide cache settings and adjust defaultsRichard Antalik
Adjust default cache settings for all files to store raw and final images. All settings are still available when developer extras option is enabled in user preferences. This is part of design task T80278 Differential Revision: https://developer.blender.org/D9745
2021-01-05VSE: Fix incorrect condition for skipping prefetch framesRichard Antalik
This error was overlooked in commit be69f23b687a.
2021-01-04Cleanup: redundant struct declarationsCampbell Barton
2021-01-04Cleanup: sort structsCampbell Barton
2020-12-29Fix T83991: Pasting sound strip not working correctlyRichard Antalik
New UUID was generated for original strip not new one. Bug caused "invisible" sound strip playing that is impossible to remove. Especially noticable when transforming pasted strips. In such case, file reload was necessary. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9912
2020-12-22VSE: handle IO errors when reading disk cache header and versionSybren A. Stüvel
Respond to return values of `fscanf()` and `fread()` to detect and handle I/O errors. Not only is error handling a good idea, this also prevents warnings from GCC that `fread()` and `fscanf()` return values are ignored. Reviewed By: ISS Differential Revision: https://developer.blender.org/D9915
2020-12-20VSE: Remove cost calculation from cacheRichard Antalik
This value was meant to be used for keeping images that are slowest to render in cache. Method of measurement was flawed, because it doesn't take UI overhead into consideration. Cache panel is to be removed because users should not have to tweak settings like this. It is not useful for development either, therefore it is removed completely.
2020-12-20VSE: Fix incorrect cache memory usage calculationRichard Antalik
If image is cached twice, it's size has been counted twice as well, but only image reference count is increased, not memory usage. Use `MEM_get_memory_in_use()` instead of size own tracking.
2020-12-19Cleanup: Split SEQ_sequencer.h fileRichard Antalik
2020-12-19Cleanup: Rename BKE_sequencer functionsRichard Antalik
API functions get SEQ_ prefix. Intern functions get seq_ prefix Functions also have appropriate category included in name.
2020-12-18Cleanup: Various clang tidy warningsHans Goudey
There are more in the new mesh fairing code and in the poisson distribution code, this commit doesn't fix those.
2020-12-17VSE: Fix crash when adding image stripRichard Antalik
Crash happens when using relative path to image in operator properties and checking image dimensions by loading image with `IMB_loadiffname()` Ensure path is absolute.
2020-12-17Fix T83869: Crash when creating Sequencer in new sceneRichard Antalik
Crash on null dereference in `SEQ_timeline_boundbox()`. This function was generalized in rB9e4a4c2e996c to work on arbitrary `seqbase`. Fixed by refactoring `SEQ_timeline_boundbox()` functions to return default sane values if `seqbase` is `NULL` Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D9878
2020-12-16VSE: Improve motion-picture workflowRichard Antalik
This commit resolves problem introduced in e1665c3d3190 - it was difficult to import media at their original resolution. This is done by using original resolution as reference for scale. All crop and strip transform values and their animation is converted form old files. To make both workflows easy to use, sequencer tool settings have been created with preset for preffered scaling method. This setting is in sequencer timeline header and add image or movie strip operator properties. Two new operators have been added: `sequencer.strip_transform_fit` operator with 3 options: Scale To Fit, Scale to Fill and Stretch To Fill. Operator can fail if strip image or video is not loaded currently, this case should be either sanitized or data loaded on demand. `sequencer.strip_transform_clear` operator with 4 options: Clear position, scale, rotation and all (previous 3 options combined). Reviewed By: sergey, fsiddi Differential Revision: https://developer.blender.org/D9582
2020-12-16Cleanup: sort struct blocksCampbell Barton
2020-12-16Cleanup: remove redundant struct declarationsCampbell Barton
2020-12-15VSE: Move remove gaps operator logic to module codeRichard Antalik
Logic was broken into finding gaps and ofsetting strips. Functions were modified so they work on explicitly defined seqbase, so they can be used as python API functions. Functional changes: - Improve performance by calculating gap length and offseting strips at once. Previously strips were offset by one frame. - Calculate gap from start frame. Previously gap was considered only inbetween strips. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9730
2020-12-15Cleanup: reduce indirect DNA header inclusionCampbell Barton
Remove DNA headers, using forward declarations where possible. Also removed duplicate header, header including it's self and unnecessary inclusion of libc system headers from BKE header.
2020-12-11Cleanup: sort cmake file listsCampbell Barton
2020-12-10Cleanup: rename BLI_strescape to BLI_str_escapeCampbell Barton
Prepare for `BLI_str_unescape` which doesn't read well without the separator.
2020-11-20Cleanup: spellingCampbell Barton
2020-11-19Cleanup: refactor sequencer_edit.c fileRichard Antalik
Move RNA enums and utility functions closer to operator definition. No functional changes.
2020-11-19VSE: Move split operator logic to module codeRichard Antalik
Code was rewritten to work on per-sequence basis returning reference to created strip. There should be no functional changes. Selection logic is left as is for now. I could simplify it, but it belongs to operator, not split logic. Reviewed By: sergey Differential Revision: developer.blender.org/D9592
2020-11-17Merge branch 'blender-v2.91-release'Richard Antalik
2020-11-17VSE: Fix prefetch initialization sequenceRichard Antalik
In 8d1978a8e013 bmain entry is updated when prefetching is started, but this must be done before seq_prefetch_update_context(). Otherwise created cache keys will be incorrect. This happens immediately after prefetch is started. When it's refreshed problem goes away. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9581
2020-11-17Merge branch 'blender-v2.91-release'Richard Antalik
Conflicts: source/blender/editors/render/render_opengl.c source/blender/sequencer/intern/effects.c
2020-11-17Fix incorrect text size with downscaled previewRichard Antalik
Use either scene render size or fixed preview scale factor. Previously scene render size was used as baseline value for text size correction. This is incorrect. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9563
2020-11-16Cleanup: spellingCampbell Barton
2020-11-16Cleanup: split sequencer.c fileRichard Antalik
Move most functions into separate files. File sequencer.c is reserved for alloc, free and duplicating functions. There should be no functional changes.
2020-11-12Cleanup: spellingCampbell Barton
2020-11-11Cleanup: use bool for imbuf save callbacksCampbell Barton
2020-11-09Cleanup: Sequencer, remove unused functionSybren A. Stüvel
Remove `static int clear_scene_in_allseqs_fn(...)`. It was a utility function for `BKE_sequencer_clear_scene_in_allseqs()`, which was removed in c063813c30e55ddc8f42ef7632d9dfa109dfddff. No functional changes.
2020-11-06Cleanup: remove unused functionsRichard Antalik