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
path: root/source
AgeCommit message (Collapse)Author
2021-04-29Fix T87863: Bisect fails when edges of an N-gon lie on the planeCampbell Barton
Logic for bisect handled edges in the face crossing the plane, but not concave N-gons containing multiple edges that lie on the plane.
2021-04-28Fix T87718: Fill triangles wrongly calculatedFalk David
The algorithm that calcualted the direction (inside/outside) of the polyline was not always returing the correct result. This mean that the polyline was filled "inside-out". The fix uses the winding number to calculate the inside and outside. Reviewed By: antoniov, pepeland Maniphest Tasks: T87718 Differential Revision: https://developer.blender.org/D11054
2021-04-28VSE: Fix slow prefetching when strips are animatedRichard Antalik
Issue was caused by anim handle being reset by `DEG_evaluate_on_framechange()` Preserve anim handle by backing it up in `blender::deg::SequenceBackup` Reviewed By: sergey Differential Revision: https://developer.blender.org/D11059
2021-04-28VSE: Fix colorbleed on scaled imagesRichard Antalik
When frame is rendered to file, bilinear interpolation on scaled images caused blurred edges. This is fixed by not doing interpolation with pixels outside of source buffer. Such fix doesn't cover cropped images which are currently cropped by filling area of image with black transparent color, because image buffer has bigger size than visible image area. This is fixed by offsetting range used in previous fix by amount, that would correspond to crop distance. Because of this, image area doesn't even need to be filled with transparency. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11058
2021-04-28Fix T87832: Incorrect FOV in line art when sensor fit is not Auto.YimingWu
Reviewed by Sebastian Parborg https://developer.blender.org/D11095
2021-04-28Fix T86881: Curve Edit handle offset when snappingFalk David
When an aligned (or auto) handle was snapped with only the control point selected, it would not snap to the correct point, but offset. This was because the handles were not considered selected. The `TD_SELECTED` flag was not being set. The fix makes sure that we include the handles in the selection when the handle is aligned or auto. Reviewed By: antoniov Maniphest Tasks: T86881 Differential Revision: https://developer.blender.org/D11111
2021-04-28Fix T87464 EEVEE: Crash with deformation Motion BlurClément Foucault
This was caused by the new depsgraph persistence. The GPUbatches we got from the cache being the same for each frame means that we need to be more careful about cleanning the additional VBOs references. Moving the `EEVEE_motion_blur_swap_data` function call at the end of the loop makes sure the references are cleaned.
2021-04-28Fix T87767: spreadsheet not updating on texture changesJacques Lucke
Differential Revision: https://developer.blender.org/D11108
2021-04-28Fix T87876: vertex groups missing when mesh is in edit modeJacques Lucke
Differential Revision: https://developer.blender.org/D11107
2021-04-28Fix T87526: poor contrast in attribute searchJacques Lucke
Differential Revision: https://developer.blender.org/D11106
2021-04-28Fix Compositor: WorkScheduler task model deletes worksManuel Castilla
WorkScheduler task model deletes work packages after executing them. The other models don't do so. All models should handle packages the same way. Reviewed By: #compositing, jbakker Differential Revision: https://developer.blender.org/D11102
2021-04-28Fix T87864: Context is None for draw methodCampbell Barton
Use WM_operator_properties_create_ptr so the owner_id is set to the window manger which is now required. Regression in 919558854d624f5db40acfa9f5674ac8c94873b6.
2021-04-28Fix T87165: Join geometry node doesn't copy instance IDsHans Goudey
This makes motion blur work incorrectly. With a similar fix to rBf2d70c02f88cc00, just copy over the instance IDs in this case.
2021-04-28Add NULL check to Object.pose from 6eb2f71875c69f5f6073fed2d285fe8ef662ba03Campbell Barton
2021-04-28Remove include accidentally added in 6eb2f71875c69f5f6073fed2d285fe8ef662ba03Campbell Barton
2021-04-28Fix T87631: Crash undoing edit-mode bone duplicationCampbell Barton
Edit mode could leave pose channels in the object that didn't have an associated bone. These are now cleared when freeing edit-mode data.
2021-04-27Fix T87474: Face Set visibility updates failing with single face loopPablo Dobarro
Face set visibility is already flushed to all mesh elements in the right way in SCULPT_visibility_sync_all_face_sets_to_vertices, calling BKE_mesh_flush_hidden_from_verts is legacy code from the previous visibility system that was causing the vertex visibility to take priority over face sets. When hidding a single loop, all vertices of those faces are still visibile, so this line was tagging all loop faces visible. This was leaving mesh/face set visibiltiy in an unconsistent state. Reviewed By: JacquesLucke Maniphest Tasks: T87474 Differential Revision: https://developer.blender.org/D11008
2021-04-27Fix T87596: Pose brush not using automasking optionsPablo Dobarro
Automasking cache factors were missing in the pose brush deform function. Reviewed By: JacquesLucke Maniphest Tasks: T87596 Differential Revision: https://developer.blender.org/D11005
2021-04-27Fix T87815: Sculpt: Curve stroke scene spacing not workingPhilipp Oeser
This was just not implemented for curve strokes when world spacing was introduced in rB87cafe92ce2f. Now do the equivalent of what was done in said commit in 'paint_space_stroke', now in 'paint_line_strokes_spacing' as well. Maniphest Tasks: T87815 Differential Revision: https://developer.blender.org/D11098
2021-04-27Fix T85889: recursive instances result in crashJacques Lucke
Generally, it would be good to not allow this from happening in the first place but that is quite tricky because an object does not know which other object instances it. Similar checks might be necessary in other places, but this fixes the bug already. Differential Revision: https://developer.blender.org/D11086
2021-04-27Fix T87749: Fix text jitter in buttons with iconsHans Goudey
This patch fixes the remaining issues described in T87749. The jitter was caused by inconsistent rounding when using the floats icon_size and icon_padding to offset the bound for the text drawing. Using `round_fl_to_int` leads to consistent results and fixes the jitter that remained in some buttons with icons, UI lists, and breadcrumbs. Differential Revision: https://developer.blender.org/D11062
2021-04-27Fix T87401: Drop-down can apply the wrong modifierHans Goudey
The trouble was that there was a context pointer "modifier" in the property editor context that returned the active modifier. But the "modifier" variable was already used in many places, for pointers that are *not* equivalent to the active modifier. The context pointer for the active modifier was unecessary anyway. If we need to access a context pointer for the active modifier in the property editor then we can add it. Until then it only adds confusion.
2021-04-27Fix T87702: Cannot generate one point with line node in end points modeHans Goudey
Counts of less than one weren't allowed in end points mode mostly to avoid a division by zero when calculating the delta. It's trivial to allow a count of one, so this commit does that, with the point placed at the start location.
2021-04-26Fix: crash after recent commitJacques Lucke
This was a mistake in rBb67fe05d4bea2d3c9efbd127e9d9dc3a897e89e6.
2021-04-26Fix T87771: Immediate Crash on "Edit Source" in CompositorPhilipp Oeser
Caused by {rB278011e44d43}. Framebuffer management since above commit now seems to require region bind/unbind in for the operator to be able to redraw correctly without using the same framebuffer in multiple contexts. Maniphest Tasks: T87771 Differential Revision: https://developer.blender.org/D11084
2021-04-26Depsgraph: support depending on collection geometryJacques Lucke
This fixes T87666 and T83252. The boolean modifier and geometry nodes can depend on the geometry of an entire collection. Before, the modifiers had to manually create relations to all the objects in the collection. This worked for the most part, but was cumbersome and did not solve all issues. For example, the modifiers were not properly updated when objects were added/removed from the referenced collection. This commit introduces the concept of "collection geometry" in the depsgraph. The geometry of a collection depends on the transforms and geometry of all the objects in it. The boolean modifier and geometry nodes can now just depend on the collection geometry instead of creating all the dependencies themselves. Differential Revision: https://developer.blender.org/D11053
2021-04-26Spreadsheet: combine vector/color spreadsheet columnsJacques Lucke
Differential Revision: https://developer.blender.org/D11056
2021-04-26Fix (unreported): Geometry nodes instance ids not copied or clearedHans Goudey
Though to my knowledge we haven't had a report about this yet, this looks like a clear oversight-- the ids are just more data stored by the instances component, and should be cleared and copied like other data. This might have resulted in incorrect random IDs for instances in renderers in some cases where the component had to be copied.
2021-04-26Fix T87170 Multi-Input socket activation zone error with lots of inputsFabian Schempp
Calculation of bounding rect for multi-input socket was wrong. Reviewer: Hans Goudey (HooglyBoogly) Differential Revision: https://developer.blender.org/D11077
2021-04-25Fix unreported "Convert Mesh to Gpencil" when fill material already existsErik Abrahamsson
If an object named for example `Suzanne` is converted to Gpencil, a material called `Suzanne_Fill` will be created for the gpencil fill. When this material already exists, the new material will be called `Suzanne_Fill.001` and the operator will not see that this material is already present the next iteration. This leads to a new material being created for every polygon. This commit changes the code to search for a material starting with `ObjectName_Fill` instead of being equal to. Reviewed By: filedescriptor, antoniov Differential Revision: https://developer.blender.org/D11067
2021-04-24Fix T87682 Boolean Exact crash.Howard Trickey
The triangulator I made (using CDT) doesn't work if the face self-intersects. Fall back to the polyfill triangulator when that happens.
2021-04-24Fix T85567: Crash accessing gizmo group on `__del__`Campbell Barton
- Re-order freeing so an instances __del__ method runs before the `ExtensionRNA` has been freed. - "remove" functions no longer free the gizmo/gizmo-group memory, needed so the identifier used when freeing the extension doesn't use the freed identifier.
2021-04-23macOS: Fix unknown -Wsuggest-override warningAnkit Meel
Added in rB7cef01b090c4c2d2703274edb91886ae37d3ce82 and rB87bfa2b207b90b5e34ebd835a23c2a82afbed878 Reviewed by: jbakker, #platform_macos Differential Revision: https://developer.blender.org/D11012
2021-04-23Fix T87749 (partially): Text jitter in buttons and spreadsheet editorLeon Leno
This patch fixes jittering text when resizing regions of the UI as described in T87749. The jitter was caused by the text padding being stored as an integer which lead to inconsistent rounding. Most notably this patch fixes the jitter in the new spreadsheet editor, but not all occurrences of jitter described in T87749 (e.g. in UI lists) are addressed. Differential Revision: https://developer.blender.org/D11060
2021-04-23Fix bug/crash in ID bulk deletion code.Bastien Montagne
This is complex situation. Tagged ID deletion (used to delete several data-blocks at once) removes IDs to be deleted from Main. But when we remove deleted IDs' usages of other IDs (using `BKE_libblock_relink_ex`), some specific post-process is required on some types, like Collections. Those post-processes would in some cases rely on data actually being in Main. That failing condition would lead in existing code on missing processing the very ID (collection) we were working on, leading to missing removing some child collection pointers, leading to the crash (later on in LayerCollection resync process). For now we go with an optimization & fix that avoids processing all collections in Main when we actually know which one we are working one (case of `BKE_libblock_relink_ex`, but not of `BKE_libblock_remap_locked`). This is however yet another demonstration of the need to rework that whole collection/layer resync process, since it is not only extremely inneficient currently, but it also requires valid Main/ID state way too deep into the remapping code. NOTE: This fix may very well not catch/address all possible fail cases here, dealing with the double parent/child relationships of collections is challenging... Issue reported by @eyecandy from the studio, thanks.
2021-04-23Fix T87582: incorrect interpolation from edge to corner domainJacques Lucke
2021-04-23Fix T78845: Eevee wrong material selection.Jeroen Bakker
In cases where the same node tree is used in different materials with small changes, the wrong material could be selected. Cause: Hair shaders GPU resources weren't updated and used the previous bound data. Reviewed By: fclem Differential Revision: https://developer.blender.org/D11036
2021-04-23Fix T86765: Custom properties are included in `__dir__`Campbell Barton
Remove custom properties from `__dir__` method result since these can't be accessed using `__getattr__`. Introduced in the 2.5x Python API update.
2021-04-23Fix for building with MSVCCampbell Barton
2021-04-23Fix T86170: Memory leak clearing the Python instance for COW id dataCampbell Barton
As Python can access COW ID's, ensure it's instance is kept on update. This could happen when the "Use Self" argument was enabled for a driver.
2021-04-23Cleanup: quiet clang-tidy warningCampbell Barton
2021-04-22Fix T87701: debug assert generating scene preview renderBrecht Van Lommel
2021-04-22Fix missing includeGermano Cavalcante
2021-04-22Fix T87615: No snapping to objects instanced by Geometry nodesGermano Cavalcante
The code of the snapping system to interact the objects in the scene only considers instances what comes from "DUPLI" objects. This commit adds instances coming from Geometry nodes. Differential Revision: https://developer.blender.org/D11020
2021-04-22Fix T87090: VSE scrubbing locks up blenderRichard Antalik
Speed effect caused, that some raw frames are re-used for multiple final frames. When cached final frame is freed due to memory being full, it tried to free also lower level cached frames that were used during compositing. Some lower level cached frames were already freed by different final frame and `BLI_ghash_remove()` failed. Check if key still exists in hash or if linked keys were overwritten before removing them. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10909
2021-04-22Fix: geometry nodes logs incorrect preview dataJacques Lucke
Under some circumstances, modifiers are evaluated more than once. One time to compute the actual output geometry and another time with `MOD_APPLY_ORCO`. This design probably has to be revisited at some point in the context of geometry nodes. However, that would be much more involved than a bug fix. The issue was that during the second evaluation, the node tree is evaluated based on a slightly different input geometry. The data generated during the second evaluation overwrote the cached data from the first evaluation, resulting in incorrect data that is shown in the spreadsheet. The fix for now is to simply not log any data in the second evaluation.
2021-04-22Fix T85051: Add bisect distance as a parameter to the mirror modifierFalk David
The `bisect_distance` in the mirror modifier was hard-coded to `0.001`. This would result in some unexpected behavior like vertices close to the mirror plane being deleted or merged. The fix now adds a parameter to the mirror modifier to expose the bisect distance to the user. The default is set to the previous hard-coded value to not "change" previous files. Ref D10201
2021-04-22VSE: Fix movies are reloaded after invalidationRichard Antalik
When cache is strip is invalidated, movie file was reloaded even if it isn't necessary. This caused significant performance issues when strip is being dragged under playhead. This was caused by calling `SEQ_relations_sequence_free_anim()` and it was introduced as fix for T36124. When it is necessary to reload file because another API holds reference to ImBuf, do this explicitly besides cache invalidation. In `rna_ColorManagedColorspaceSettings_reload_update()` this was already done, so no change is needed there. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11024
2021-04-22Fix T87337: Text strip draws white outlineRichard Antalik
Math for drawing font over byte buffer was incorrect. Effect can be seen when target buffer is fully black and transparent - this results in font color being effectively premultiplied, which causes problems when image is composited further. Use `blend_color_mix_byte()` and `blend_color_mix_float()` for blending. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11035
2021-04-22Fix T86682: Scene strip DOF not evaluated correctlyRichard Antalik
Camera object used for rendering reffered to original not evaluated data. Use `DEG_get_evaluated_object()` to get evaluated camera. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11039