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-08-31Version bump: 2.93.4-releasev2.93.4Jeroen Bakker
2021-08-25FFMPEG: Fix building with older versions that need ↵Sebastian Parborg
FFMPEG_USE_DURATION_WORKAROUND
2021-08-25VSE: Flush audio encode after finishing video exportSebastian Parborg
We didn't flush audio after encoding finished which lead to audio packets being lost. In addition to this the audio timestamps were wrong because we incremented the current audio time before using it. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11916
2021-08-23Pipeline: Use more explicit cuda versions.Jeroen Bakker
2021-08-23Add sanity NULL checks when loading sound sequencesSebastian Parborg
Would cause crashes in files that had lingering invalid sound sequences around. For example our tests/render/volume/fire.blend test file.
2021-08-23Fix T87967: M2T video seeking is brokenRichard Antalik
Bug caused by integer overflow in ffmpeg_generic_seek_workaround(). Function max_ii() was used to limit int_64tvalue. After fixing the issue there was another issue, where near-infinite loop was caused by requested_pos being very large and stream being cut in a way, that it was missing keyframe at beginning. This was fixed by checking if we are reading beyond file content. Reviewed By: zeddb Differential Revision: https://developer.blender.org/D11888
2021-08-23VSE: Use lines to draw waveformSebastian Parborg
Refactor and improve waveform drawing. Drawing now can use line strips to draw waveforms instead of only triangle strips. This makes us able to properly visualize thin waveforms as they would not be visible before. We now also draw the RMS value of the waveform. The waveform drawing is now also properly aligned to the screen pixels to avoid flickering when transforming the strip. Reviewed By: Richard Antalik Differential Revision: https://developer.blender.org/D11184
2021-08-23VSE: Fix audaspace not reading ffmpeg files with start offset correctlySebastian Parborg
The duration and start time for audio strips were not correctly read in audaspace. Some video files have a "lead in" section of audio that plays before the video starts playing back. Before this patch, we would play this lead in audio at the same time as the video started and thus the audio would not be in sync anymore. Now the lead in audio is cut off and the duration should be correctly calculated with this in mind. If the audio starts after the video, the audio strip is shifted to account for this, but it will also lead to cut off audio which might not be wanted. However we don't have a simple way to solve this at this point. Differential Revision: http://developer.blender.org/D11917
2021-08-23VSE: Fix seeking issues.Sebastian Parborg
The seek pts was not correctly calculated. In addition to that we were not seeking in the video pts time base. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11921
2021-08-23VSE: Fix video strip duration calculationSebastian Parborg
The video duration was not read correctly from the video file. It would use the global duration of the file which does in some cases not line up with the actual duration of the video stream. Now we take the video stream duration and start time into account when calculating the strip duration. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11920
2021-08-23VSE: Fix memory leak when adding bad image/movie stripsSebastian Parborg
If the add strip operator errored out, we wouldn't free custom data allocated Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11919
2021-08-23VSE: Fix "off by one" error when encoding audioSebastian Parborg
Before we didn't encode the audio up until the current frame. This lead to us not encoding the last video frame of audio. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11918
2021-08-23Fix: instances are made real when they shouldn't beJacques Lucke
The original assumption that the `modifyMesh` function is only called when the modifier is applied was wrong. There are still a couple of other places calling it through `BKE_modifier_modify_mesh`. Now there is an extra check that makes sure instances are only realized when the modifier is actually applied.
2021-08-23Fix T90737: VSE adding nested strips could have non-unique namesPhilipp Oeser
Caused by {rBbbb1936411a5}. When adding strips via the new SEQ_add_XXX_strip functions, the `Editing->seqbasep` pointer was passed around. Following in `seq_add_generic_update` this `seqbasep` pointer was used to ensure a unique name. But `seqbasep` is the pointer to the current list of seq's being edited (**which can be limited to the ones within a meta strip**). We need unique names across all strips though (since these are used for RNA paths, FCurves as reported), so now use the scene's `Editing- >seqbase` (**which is the list of the top-most sequences**) instead. Unfortunately this might have screwed files to a borked state, not sure if this could easily be fixed... Maniphest Tasks: T90737 Differential Revision: https://developer.blender.org/D12256
2021-08-23Fix T90719: Boost sources dowload address needed to be updated.Bastien Montagne
2021-08-23Fix FTBFS on mips64el architectureMatteo F. Vescovi
While trying to get Blender 2.93.x LTS to build fine on all release architectures in Debian, I noticed that the misleading use of "mips" as integer variable caused problems when compiling on mips64el. The patch should fix the issue. Reviewed By: fclem Differential Revision: https://developer.blender.org/D12194
2021-08-23Fix: DNA struct alignment on 32 bitRay Molenkamp
Some of the dna structs were not properly aligned for 32 bit builds causing issues for some of the 32 platforms Debian builds for. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D9389
2021-08-23Makesdna: Fix detecting 32 bit padding issues.Ray Molenkamp
Makesdna fails to detect issues in 32 bit code that can only be resolved by adding a padding pointer. We never noticed since we ourselves no longer build for 32 bit, but debian's 32 bit builds got bitten by this A rather extensive explanation on why this is alignment requirement is there can be found in this comment: https://developer.blender.org/D9389#233034 Differential Revision: https://developer.blender.org/D12188 Reviewed by: sergey, campbellbarton
2021-08-23Fix T90364: buttons (partially) behind animchannel search block searchPhilipp Oeser
When channels are scrolled to be (partially) behind the search bar, their widget buttons would still be interactive, preventing the seach buttons to be usable. We have to make sure the events are consumed from the search and dont reach other UI blocks. We can do so by flagging the block `UI_BLOCK_CLIP_EVENTS` -- but also have to make sure the bounds are calculated correctly (otherwise the check relating `UI_BLOCK_CLIP_EVENTS` in `ui_but_find_mouse_over_ex` wont trigger properly. Maniphest Tasks: T90364 Differential Revision: https://developer.blender.org/D12103
2021-08-23Fix NLA action cannot be unlinked in certain casesPhilipp Oeser
The poll for unlinking calls `nla_panel_context` without providing an adt pointer, and there is a check for this pointer in `nla_panel_context` leading to never returning true if it is not provided. (this is fine if there are tracks already, poll would succeed in this case, `nla_panel_context` goes a different code path then) Same call to `nla_panel_context` is also done in the beginning of the corresponding unlink exec function (but this time providing the pointer because it is used later), so it makes sense to do the same thing in the poll function. Equal check is also done in the panel poll function, so now these are all in sync. Part of T87681. Maniphest Tasks: T87681 Differential Revision: https://developer.blender.org/D11041
2021-08-23Fix T88498: 'Clear Parent' does not clear parent_bonePhilipp Oeser
Clearing the parent from the UI using the X (or from python) clears the `parsubstr` and set `partype` back to `PAROBJECT`. Using the Clear Parent operator would leave the `parsubstr` (and thus `parent_bone`) untouched even though this operator claims to "clear parenting relationship completely" (it also removes parent deform modifiers for example). So now, also clear `parsubstr` and set back to `PAROBJECT` [which is default]. Maniphest Tasks: T88498 Differential Revision: https://developer.blender.org/D11503
2021-08-23Fix T89805: NLA crash without active trackPhilipp Oeser
Was reported for a file which does not have an active track set in AnimData even though it was in strip twek mode (but this was accessed in is_nlatrack_evaluatable()). Root cause for this is not totally clear, but I assume the situation is described as part T87681 (and is fixed in D11052). This patch here just prevents the crash for files that are already in the borked state. Reviewers: sybren Maniphest Tasks: T89805 Differential Revision: https://developer.blender.org/D12085
2021-08-23BLI_math: Fix several division-by-zero cases.Bastien Montagne
Those were caused by various tools used on degenerate geometry, see T79775. Note that fixes are as low-level as possible, to ensure they cover as much as possible of unreported issues too. We still probably have many more of those hidden in BLI_math though.
2021-08-23Fix T88998: GPencil not projecting to the most front surfaceGermano Cavalcante
It was projecting from the stroke position. The behavior has changed in {rB5400be9ffee2}.
2021-08-23Geometry Nodes: Fix vector math project bugCharlie Jolly
Implementation is incorrect compared to Cycles/Eevee. Reported by @DrDubosc in comments of T88922. Differential Revision: https://developer.blender.org/D12029
2021-08-23PyAPI: resolve build error with Python 3.10Campbell Barton
Resolves T89931
2021-08-23Fix T90493: Undo a knife-project operation crashesCampbell Barton
The crash occurred calling because mesh_get_eval_final in edit-mode freed all derived mesh data without tagging the object for updating. However meshes in edit-mode weren't meant to be used as knife-project source-data, adding support for multi object edit-mode caused this.
2021-08-23Fix T88033: Python reference memory leaks for non main data-blocksCampbell Barton
ID data-blocks that could be accessed from Python and weren't freed using BKE_id_free_ex did not release the Python reference count. Add BKE_libblock_free_data_py function to clear the Python reference in this case. Add asserts to ensure no Python reference is held in situations when ID's are copied for internal use (not exposed through the RNA API), to ensure these kinds of leaks don't go by unnoticed again.
2021-08-23Fix T89241: 3D Text "Scale to Fit" wraps onto the second lineCampbell Barton
Disable wrapping when "scale to fit" is used, assert the error is small so an invalid scale-to-fit value wont go by unnoticed.
2021-08-23Fix memory leak in edit-mesh dissolve degenerateCampbell Barton
2021-08-23Fix T89306: GPencil selection doesn't work correctly with modifiersAntonio Vazquez
The problem was introduced with Bezier modification because the selection code was using the original stroke and not the evaluated version.
2021-08-23Fix T90791: Knife project leaks memory with curve/text cutterCampbell Barton
2021-08-23Cleanup: rename BKE_mesh_free -> BKE_mesh_free_dataCampbell Barton
It wasn't obvious this didn't free the memory of the mesh it's self leading to memory leaks.
2021-08-23Cleanup: accidentally included printfCampbell Barton
2021-08-23Fix memory leak with building springs in the cloth simulatorCampbell Barton
Error in 2788b0261cb7d33a2f6f2978ff4f55bb4987edae.
2021-08-18Version bump: 2.93.4-rcJeroen Bakker
2021-08-17Fix T88552: Cycles changing Render Passes in viewport does not workv2.93.3Sergey Sharybin
Backporting this fixes T90599.
2021-08-17Version bump: 2.93.3-releaseJeroen Bakker
2021-08-12[2.93 only] pose slide factor wrong in redo popupPhilipp Oeser
Originally this was caused by {rBc71a8e837616}. Above commit wasnt renaming RNA definitions, but not the occurances were RNA values were set. In 3.0, we had improvements to pose-sliding tools (D9054) where this was somewhat ironed out (only partially, see D12187). But since the pose-sliding improvements are not part of 2.93, we have to correct this in 2.93 ONLY. Maniphest Tasks: T89027 Differential Revision: https://developer.blender.org/D12191
2021-08-09Fix T83164: Spline IK `joint_bindings` parameter is broken.Bastien Montagne
Code freeing the array would not properly reset its length value to zero. Note that this corrupted data could also be saved in .blend files, so had to bump fileversion and add some doversion code too. Fix T90166: crash when creating a liboverride.
2021-08-09Cleanup/Fix RNA array length accessors returning non-zero values in invalid ↵Bastien Montagne
cases. This was apparently done in two places only, with a very cryptic comment (`/* for raw_access, untested */`), and... I cannot see how returning a non-zero length value for an array that does not exist or is not accessible at least, would be anything but an obvious source of issues. Note that both commits adding those lines are from stone ages (2009): rBcbc2c1886dee and rB50e3bb7f5f34.
2021-08-09Fix T89835: Crash after Instancing to Scene after making linked Collection ↵Bastien Montagne
local. Even though the ID itself remain the same after being made local, from depsgraph point of view this is a different ID. Hence we need to tag all of its users for COW update, as well as rebuild depsgraph relationships. Should be also backported to LTS 2.93 (and 2.83 if possible).
2021-08-09Fix T87041: Driver Editor not updated in realtimePhilipp Oeser
Caused by {rBbbb2e0614fc3} Since above commit only the playhead is updated as an overlay in animation playback (was moved out of drawing of the main region for perfomance reasons). The driver value "debug" visualization is very useful to have during playback though but was left in main region drawing as part of `draw_fcurve` (thus does not update in realtime anymore). Moving `graph_draw_driver_debug` into the overlay is not feasible because it requires animation filtering which has significant overhead which needs to be avoided in the overlay which is redrawn on every UI interaction. Now tag the whole main region for updates in the Driver Editor during playback instead (which will make the Drivers Editor as slow during playback as before rBbbb2e0614fc3 -- but with realtime updates of the debug visualization). Maniphest Tasks: T87041 Differential Revision: https://developer.blender.org/D12003
2021-08-09Fix T78469: Output Metadata: Strip Name no longer accessiblePhilipp Oeser
Caused by rB7fc60bff14a6. This has actually been reported and closed, but that was clearly a misunderstanding (above commit changed a checkbox to be an enum, but a second checkbox was simply removed) Maniphest Tasks: T78469 Differential Revision: https://developer.blender.org/D12084
2021-08-09Fix T88807: crash when there are multiple links between the same socketsJacques Lucke
This commit does two things: * Disallows creating more than one link from one socket to a multi socket input. * Properly count links if there happen to be more than one link between the same sockets. The new link counting should also be more efficient asymptotically. Differential Revision: https://developer.blender.org/D11570
2021-08-09Fix particle system duplication duplicates all systemsPhilipp Oeser
Followup to rB3834dc2f7b38 (where getting the proper particle system was fixed for the Adjust Last Operation panel in the Properties Editor). But since this operator can also be called from the 3DView, get a current particle system there as well. Without this, _all_ particle systems would be copied when executing from the 3DView (which was never really intended [operator description uses singular] -- it just happens to use `copy_particle_systems_to_object` internally as well -- same as the `Copy Active/All to Selected Objects` operators)). ref. T83317 Maniphest Tasks: T83317 Differential Revision: https://developer.blender.org/D12033
2021-08-09Speedup rigid body "Copy from Active" operatorJagannadhan Ravi
If there were lots of selected objects without an existing rigid body, we would add rigid bodies to them one by one. This would be slow in python, now we instead do this as a batch operation in C. On my (Intel) MacBook it used to take 60 seconds and with this change it takes about 0.3 seconds. Reviewed By: Sebastian Parborg Differential Revision: http://developer.blender.org/D11957
2021-08-09Fix T89952: GPencil channel box selection offsetYann Lanthony
The channel box selection was offset for grease pencil layers. This is a proposed fix by @yann-lty Before: {F10227973} After: {F10227974} Reviewed By: #grease_pencil, antoniov Maniphest Tasks: T89952 Differential Revision: https://developer.blender.org/D11962
2021-08-09LineArt: Occlusion accuracy fix.YimingWu
This patch fixes occlusion function to handle one specific case (when an edge shares a point with triangle) better,especially when there's overlapping edges in this case.
2021-08-09Fix memory leak with Python RNA property get callback errorsCampbell Barton
Failure to return a list of the expected size & type wasn't decrementing the value, leaking a reference. Caused by 127b5423d6203d521acb2b96b7de5534e8dbe79a a workaround for the real error that was fixed f5e020a7a6ad6451fcaf075ae14f7014b8a4faea.