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
2022-07-22Cleanup: add BKE_image_find_nearest_tile_with_offsetCampbell Barton
Every caller BKE_image_find_nearest_tile was calculating the tile offset so add a version of this function that returns the offset too.
2022-07-22Fix crash loading factory settings in image paint modeCampbell Barton
Loading factory settings left the region NULL, causing the brushes poll function to crash.
2022-07-22Cleanup: quiet nonull-compare warnings with GCCCampbell Barton
2022-07-22UV: Edge support for select shortest path operatorSiddhartha Jejurkar
Calculating shortest path selection in UV edge mode was done using vertex path logic. Since the UV editor now supports proper edge selection [0], this approach can sometimes give incorrect results. This problem is now fixed by adding separate logic to calculate the shortest path in UV edge mode. Resolves T99344. [0]: ffaaa0bcbf477c30cf3665b9330bbbb767397169 Reviewed By: campbellbarton Ref D15511.
2022-07-22Fix T99884: Crash when converting to old curve typeHans Goudey
The conversion from Curves to CurveEval used an incorrect type for one of the builtin attributes. Also, an incorrect default was used for reading the nurbs_weight attribute.
2022-07-22Cleanups: Small changes to armature deformHans Goudey
Use const pointers, remove unused data member for parallel callback, use listbase macro.
2022-07-21Fix T99854: Crash converting legacy NURBS curves to new typeHans Goudey
Creating the attributes was done inside a parallel loop. Also correct a typo for the parallel grain size, which was meant to be a power of two.
2022-07-21Cleanup: compiler warningBrecht Van Lommel
2022-07-21Fix crash in some very rare case in remapping code.Bastien Montagne
Actualy 'safe' building of the base has in view layers (as part of `BKE_main_collection_sync_remap`) would only happen when there was already an existing one, otherwise it was skipped, and rebuilt later (without the support for doublons) in collection sync code. Very odd that that error was never spotted before, issue in code has been there for a long time already. Probably only happens in rare cases (specific conjuction of factors during remapping of old ID into itelf new id)? Reported by @hjalti from Blender studio. Reproducing case: `heist/pro/shots/050_alarm/050_0160/050_0160.anim.blend`, r1407
2022-07-21DRW: Volume: Fix crash in command line render caused by null texturesClément Foucault
This was caused by the world volume shader needing placeholder textures that were not available until cache populate begins. Adding a check and creating on the fly fixes the issue.
2022-07-21EEVEE-Next: Add back option to disable TAA (Viewport DenoisingClément Foucault
2022-07-21Fix crash due to improper handling of new library runtime name_map data on ↵Bastien Montagne
read/write. Code handling read/write of libraries is still particular... but trying to call `library_runtime_reset` on a random address at readtime was an obvious mistake I should have caught during review :( Regression from rB7f8d05131a77.
2022-07-21Spreadsheet: Implement selection filter for curves sculpt modeHans Goudey
The spreadsheet can retrieve the float selection using the same utilities as curves sculpt brushes. Theoretically this can work in original, evaluated, and viewer node modes, at least when the sculpt selection attributes are able to be propagated. Differential Revision: https://developer.blender.org/D15393
2022-07-21GPU: Fix compilation with WITH_GPU_BUILDTIME_SHADER_BUILDER optionClément Foucault
2022-07-21EEVEE-Next: Filter NaN at output to avoid propagation.Clément Foucault
2022-07-21Cleanup: DRW: common_math_geom_lib.glsl: Fix variable name styleClément Foucault
2022-07-21EEVEE-Next: Add Temporal-AntiAliasingClément Foucault
The improvements over the old implementation are: - Improved history reprojection filter (catmull-rom) - Use proper velocity for history reprojection. - History clipping is now done in YCoCg color space using better algorithm. - Velocity is dilated to keep correct edge anti-aliasing on moving objects. As a result, the 3x3 blocks that made the image smoother in the previous implementation are no longer visible is replaced by correct antialiasing. This removes the velocity resolve pass in order to reduce the bandwidth usage. The velocities are just resolved as they are loadded in the film pass.
2022-07-21DRW: common_math_geom_lib.glsl: Add line_aabb_clipping_distClément Foucault
2022-07-21Fix build error in tests binary after previous commitHans Goudey
Also remove an unused include and add a comment, const, use the math namespace.
2022-07-21Cleanup: Rename length parameterization interpolation functionHans Goudey
The name makes more sense as an action, other interpolation methods besides linear probably don't make sense here anyway.
2022-07-21Cleanup: Remove debug print in testHans Goudey
2022-07-21Cleanup: Simplify relation flags assignmentSergey Sharybin
2022-07-21Geometry Nodes: add debug check for whether AttributeWriter.finish is calledJacques Lucke
Calling `finish` after writing to generic attributes is currently necessary for correctness. Previously, this was easy to forget. Now there is a check for this in debug builds.
2022-07-21Curves: fix applying materials when applying modifierJacques Lucke
The issue was that geometry nodes was run on the original curves, and set a pointer to an evaluated material id on it. The fix is to not mix up original and evaluated data by making sure that geometry nodes does not modify the original data.
2022-07-21Cleanup: Make automated code check happy.Bastien Montagne
- Assert that one of the thwo branches in `id_override_library_create_hierarchy` are always processed. - Init success value regardless.
2022-07-21Cleanup: Unused forward declarationSergey Sharybin
2022-07-21Fix T99885: Invalid dependency graph state when curves surface is invisibleSergey Sharybin
Differential Revision: https://developer.blender.org/D15510
2022-07-21LibOverride: support 'make override' for all selected items.Bastien Montagne
This commit allows to select several data-blocks in the outliner and create overrides from all of them, not only the active one. It properly creates a single hierarchy when several IDs from a same hierarchy root data are selected. Reviewed By: Severin Differential Revision: https://developer.blender.org/D15497
2022-07-21Fix T99733: Objects with driven visibility are evaluated when not neededSergey Sharybin
The issue was caused by the fact that objects with driven or animated visibility were considered visible by the dependency graph evaluation. This change makes it so the dependency graph evaluation is aware of visibility which might be changing. This is achieved by evaluating the path of the graph which affects objects visibility and adjusts to it before evaluating the rest of the graph. There is some time penalty to this, but there does not seem to be a way to fully avoid this penalty. With the production shot from the heist project the FPS drops by a tenth of a frame (~9.4 vs ~9.3 fps) when adding a driver to an object which keeps it visible. Note that this is a bit hard to measure since the FPS fluctuates quite a bit throughout the playback. On the other hand, having a driver on a visibility of a heavy object from character and setting visibility to false gives big speedup. Also worth noting that there is no penalty at all when there are no animated visibilities in the scene. Differential Revision: https://developer.blender.org/D15498
2022-07-21Depsgraph: Clear operation evaluation flags early onSergey Sharybin
The goal is to make it possible to evaluate the graph in multiple passes without evaluating the same node multiple times. Currently should not be any functional changes.
2022-07-21Cleanup: formatCampbell Barton
2022-07-21Cleanup: add ISMOUSE_MOTION macroCampbell Barton
Replace verbose ELEM(..) usage, now each kind of mouse event has it's own macro.
2022-07-21Fix WM_event_type_mask_test ignoring wheel and gesture eventsCampbell Barton
WM_event_type_mask_test checks assumed ISMOUSE macro worked for any kind of mouse event when it only accepted buttons & motion. Now ISMOUSE checks for any kind of mouse event, use ISMOUSE_BUTTON/WHEEL/GESTURE for more specific checks.
2022-07-21WM: replace ISMOUSE with ISMOUSE_BUTTONCampbell Barton
The ISMOUSE macro was used in situations only button events needed to be checked. The only functional difference would be MOUSEMOVE events were previously accepted for these checks.
2022-07-21WM: categorize smart-zoom as a gestureCampbell Barton
Event handling and the enum definition documents MOUSESMARTZOOM as a gesture however it wasn't accepted by ISMOUSE_GESTURE, instead it was added to the ISMOUSE macro. Move the type check to ISMOUSE_GESTURE.
2022-07-21Fix failing cycles test from previous commitChris Blackbourn
Deprecated custom data type CD_MTEXPOLY has inconsistent data usage. Reviewed By: Campbell Barton
2022-07-21Fix T90620: Ignore missing UV data caused by corrupt .blend fileChris Blackbourn
Add crash protection and partial recovery for corrupt .blend files, particularly for missing UV data. Differential Revision: https://developer.blender.org/D15489
2022-07-21Cleanup: spelling in comments, typos in tool-tipsCampbell Barton
2022-07-21Fix T99678: Crash applying non-existent modifiersCampbell Barton
Regression in [0] accessed the modifier type before NULL check. [0]: 78fc5ea1c398f70d22cda72be33c105146c0d542
2022-07-21Fix T99687: Cloth filter crashJoseph Eagar
The code was failing to exclude the sculpt object from the list of collision objects.
2022-07-21Fix T99878: Deleting curves or points removes anonymous attributesHans Goudey
Use the attribute API instead of the CustomData API, to correctly handle anonymous attributes and simplify the code. One non-obvious thing to note is that the type counts are recalculated by the "finish" function of the `curve_type` attribute, so they don't need to be copied explicitly. Also, the mutable attribute accessor cannot be an reference if we want to give it an rvalue, which is convenient in this case.
2022-07-20Cleanup: Remove unused functionHans Goudey
2022-07-20Cleanup: Remove unnecessary handling of normals for fluid collidersHans Goudey
The normals are transformed, but not used. It looks like this logic was just copied from below where the mesh is transformed for creating emitters, which do use vertex normals.
2022-07-20Fix T99340: Image.frame_duration returning wrong value when image not loadedBrecht Van Lommel
The logic here was broken in d5f1b9c, it should load the image first.
2022-07-20UI: Remove redundant view reference in view itemsJulian Eisel
The new view item base class already holds a reference to the view, no need to have one in the derived class as well.
2022-07-20Fix missing registration of grid view items in the viewJulian Eisel
2022-07-20Cleanup: use BLI_strncpy instead of strcpyJacques Lucke
Using `strcpy` resulted in `stringop-truncation` warnings for me.
2022-07-20Cleanup: remove unused get_cage_mesh parameterJacques Lucke
All callers passed `false` for this parameter, making it more confusing than useful. If this functionality is needed again in the future, a separate function should be added. Differential Revision: https://developer.blender.org/D15401
2022-07-20Fix T99667: regression in Delete Geometry nodeWannes Malfait
Differential Revision: https://developer.blender.org/D15445
2022-07-20Fix T99869: Edge crease no longer workingGermano Cavalcante
Missed in d14c2d549b2fdde2a116f6a37837a1e3776da3cb