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-11-01Fix T82089 Boolean on empty mesh with collection fails.Howard Trickey
For the fast solver, there was an optimization carried over from the non-collection case for empty meshes which did not work in the chained boolean code for collection operands. Removed that optimization in the collection case.
2020-10-31Fix new boolean performance bug.Howard Trickey
The code that decided to use a faster double version of plane side testing forgot to take an absolute value, so half the time the exact code was being used when it was unnecessary.
2020-10-31Fix T82265: GPencil interpolate crash when next frame was NULLAntonio Vazquez
If the next frame of the layer was NULL and it was not the active layer crashed.
2020-10-30Fix T82027, T81718: Cycles crash with volume animation playbackBrecht Van Lommel
2020-10-30Fix (unreported) buffer-overflow in new lattice code.Bastien Montagne
Follow-up to rBc0beeeb5de0cbc, fixing overflow accesses on arrays introduced by rB042143440d76. It's never 'OK' to access invalid memory...
2020-10-30Fix Cycles map range node missing clamp socketBrecht Van Lommel
No effect on the Blender integration yet, but needs to be solved for the upcoming change to encapsulate sockets.
2020-10-30Parenting: fix return value when parenting object to itselfSybren A. Stüvel
Ensure parenting an object to itself is seen as error, by returning `false`. This error was introduced as part of a supposed-to-be-non-functional cleanup rBb8d4a2aff8069dd7d6fb91ad0d9427eed489b68f.
2020-10-30Outliner: use undo-group for outliner mode switchingCampbell Barton
Switching modes no longer adds multiple undo steps from a user perspective.
2020-10-30Object: use undo-group for object.switch_objectCampbell Barton
object.switch_object no longer adds multiple undo steps from a user perspective.
2020-10-30Undo System: support for grouping steps with begin/end callsCampbell Barton
This adds support for treating multiple undo steps as a single step from the user perspective. This is needed for outliner mode switching and `object.switch_object` operator which change active object and mode in a single action.
2020-10-30Fix outliner mode toggling with multi-object pose/edit modeCampbell Barton
For edit/pose modes clicking in the mode-column would include other selected objects (besides the active object), causing other objects to remain in the mode even though Control wasn't held. Also replace `ED_object_mode_generic_exit(...)` on all objects with a single call to `ED_object_mode_set(...)` so switching modes will only exit the current mode, leaving objects in other modes unchanged.
2020-10-30Fix macOS mouse positions inaccuracyBrecht Van Lommel
Don't use the current mouse position at the time the event is handled, but rather the position at the time of the event. This should make e.g. brush stroke paths more accurate. In addition, this may solve issues with other software that does mouse position smoothing. Ref T82143. Use of the current mouse position was added in 12b642062c6f as part of a large commit that also made continuous grab work. But it appears to still work getting the mouse position from the event.
2020-10-29Cycles: silence unused variable warningDalai Felinto
2020-10-29Fix T82129: Cycles "Persistent Images" incorrectly retains scene dataKévin Dietrich
The issue stems from the fact that scene arrays are not cleared when rendering is done. This was not really an issue before the introduction of the ownership system (rB429afe0c626a) as the id_map would recreate scene data arrays based on their new content. However, now that the id_maps do not have access to the scene data anymore the arrays are never created. Another related issue is that the BlenderSync instance is never freed when the persistent data option is activated. To fix this, we delete nodes created by the id_maps in their destructors, and delete the BlenderSync instance before creating a new one, so the id_maps destructors are actually called. Reviewed By: brecht Maniphest Tasks: T82129 Differential Revision: https://developer.blender.org/D9378
2020-10-29Fix Zoom to Mouse Position ignored when zooming outJulian Eisel
Own mistake in rB3a1cf838ca09. Thanks to @jenkm for pointing this out.
2020-10-29RNA properties subtypes enum: sync definitions everywherePhilipp Oeser
Some subtypes never made it to all neccessary places when they were introduced. This was throwing warnings when accessing such a properties subtype from python. The sub_type enums were also defined in 4 different places: - RNA_types.h 'PropertySubType' - rna_rna.c 'rna_enum_property_subtype_items' - rna_rna.c 'subtype_items' - bpy_props.c as multiple enums This patch syncs the definitions across all places so that they are the same everywhere. It also looks redundant to define these twice in rna_rna.c, now just use 'rna_enum_property_subtype_items' there (and get rid off 'subtype_items'). Also moved 'POWER' & 'TEMPERATURE' to number enum in bpy_props (these were defined in the array enum). Fixes T82167. Maniphest Tasks: T82167 Differential Revision: https://developer.blender.org/D9371
2020-10-29CustomData color copying: use interpolated alphaPhilipp Oeser
The alpha of the first layer was always used here since introduction in rBee4453f08369 and was not updated when customdata support for alpha was added. Now also use the interpolated alpha. thx @brecht noticing! ref T81914 Reviewers: brecht, mont29 Maniphest Tasks: T81914 Differential Revision: https://developer.blender.org/D9358
2020-10-29Fix blend_color_interpolate_byte returning wrong alpha in certain casePhilipp Oeser
When the combined alpha [the 'tmp' variable having the mixfactor applied already] - reached zero it was handled like a no-op (for the alpha as well) and just copied the first color. So e.g mixing 255/255/255/255 with 0/0/0/0 with a factor of 1.0 gave alpha of 255, which looks wrong. cases where tmp gets zero: src1 alpha:0 src2 alpha:whatever mixfactor 0.0 src1 alpha:whatever src2 alpha:0 mixfactor 1.0 src1 alpha:0 src2 alpha:0 mixfactor whatever Now set alpha to zero in that case. ref T81914 Maniphest Tasks: T81914 Differential Revision: https://developer.blender.org/D9357
2020-10-29Fix 3D smooth-view ignoring lens when exiting camera viewErik Abrahamsson
Add NULL checks for `sview->ofs`, while it's currently never NULL when a camera is set. The API allows for each member to be set independently.
2020-10-29PyAPI: point sys.executable to the Python binaryCampbell Barton
`sys.executable` is documented to be a Python interpreter or None. This was set to Blender's executable which caused the multiprocessing module to spawn new instances of Blender instead of Python on WIN32. See issue described in D7815. Deprecate 'bpy.app.binary_path_python' & warn when using. Blender's executable remains accessible via `bpy.app.binary_path`. Modified 04c5471ceefb4, setting `sys.executable` instead of using Py_SetProgramName, which is needed for a bundled Python installation.
2020-10-28Animation: Improve labels on Snap menu in NLA & DopesheetAaron Carlisle
Add "Selection to" as prefix for those menu items that move the selected keyframes to something, for both the Key → Snap menu and the Shift+S pie menu. No functional changes. This was missed in rB477d983c2e8ab298cbf638d5aadd77fad9c2f677 Differential Revision: https://developer.blender.org/D9304
2020-10-28Revert "Fix T81077 id_management test on macOS"Ankit Meel
This reverts commit 2ddecfffc3d3a3a1db4ae45e8665caa2a85ab43a. The correct fix is to compile with -fno-strict-aliasing on release/relwithdebinfo builds also. See the last commit/ {D9372}. Maniphest Task T81077
2020-10-28macOS: use -fno-strict-aliasing for all build types.Ankit Meel
The old code was added in {rBbaa4a9c7d4dd} While the hotfix committed in {rB2ddecfffc3d3a3a1db4ae45e8665ca} fixed the id_management test, the correct reason was found at https://bugs.llvm.org/show_bug.cgi?id=47984 This matches the behavior on Linux.
2020-10-28UI: Save Preferences Button Not TranslatingHarley Acheson
Ref D9338
2020-10-28Fix T82149: Blender crash when using collection user_id remapping (python).Bastien Montagne
Not sure why Collection was the only ID for which depsgraph building did not check for potential recursion? Reviewed By: sergey Maniphest Tasks: T82149 Differential Revision: https://developer.blender.org/D9365
2020-10-28Revert "PyAPI: point sys.executable to the Python binary"Campbell Barton
This reverts commit 04c5471ceefb41c9e49bf7c86f07e9e7b8426bb3. This causes Blender not to start on some systems.
2020-10-28Fix T82049: material select button now only works for active objectCampbell Barton
Include edit-mode objects from space-properties context unless there is a pinned object. Regression caused by change in 12bc34b0b81b.
2020-10-28PyAPI: point sys.executable to the Python binaryCampbell Barton
`sys.executable` is documented to be a Python interpreter or None. This was set to Blender's executable which caused the multiprocessing module to spawn new instances of Blender instead of Python on WIN32. See issue described in D7815. Deprecate 'bpy.app.binary_path_python' & warn when using. Blender's executable remains accessible via `bpy.app.binary_path`.
2020-10-27GPencil: Fix unreported Fill when use boundary and Visble layersAntonio Vazquez
The new option to filter the layers used by the Fill tool was not using the boundary strokes. The problem was the layers were skipped and any boundary stroke was not used. Now, the layer is not skipped, but the strokes that are not boundary are skipped.
2020-10-27Fix T81844: Change Bone Layers fails in Pose ModeSebastian Parborg
When selecting multiple layers, the redo operator might not correctly update the pose data. To make sure it is in a good state we have to ensure that the pose data is good. Reviewed By: Bastien Differential Revision: http://developer.blender.org/D9354
2020-10-27Fix T80819: Border zoom is isn't accurate in perspective viewErik Abrahamsson
Improved user experience by using viewport focal length to calculate the new camera distance. Also resizing the border to the same aspect ratio as the window will help not zooming in more than expected. Ref D9341
2020-10-27BLI_rect: add resize_x/y functionsCampbell Barton
Without this, it's inconvenient to resize a single axis and doesn't read very well.
2020-10-26Fix own previous commit re testing of `BLI_rel_path`.Bastien Montagne
Windows would need its own version of those tests, for now just disabling them on that platform.
2020-10-26Fix T81421: "Saving As..." a blend file with a Script node file path filled ↵Bastien Montagne
with 1023 symbols crashes Blender. Usual lack of protection against buffer overflows when manipulating strings. Also add some basic tests for `BLI_path_rel`.
2020-10-26UI: Datatransfer modifier: set mix factor inactive when not in usePhilipp Oeser
For Customdata layer copying, interpolation with the mixfactor is only done for certain mix modes, now set the UI inactive if the mixfactor is not in use. Namely, the modes are the "Above / Below Threshold" which are only used for flags, colors and normals and mixing is not supported in these cases. Spotted while looking into T81914. Differential Revision: https://developer.blender.org/D9327
2020-10-26Fix T82079: Missing viewport redraw changing volume slicing axisPhilipp Oeser
Send appropriate notifiers (via rna_Volume_update_display). Maniphest Tasks: T82079 Differential Revision: https://developer.blender.org/D9351
2020-10-26Fix: Animation, Draw active keyframe handles only when BézierSybren A. Stüvel
Draw the handles for the active keyframe only when the interpolation type is set to Bézier. This now matches the behaviour of handles of regular (non-active) keyframes.
2020-10-26Fix T81890: Active keyframe changes on deselect of keyframeSybren A. Stüvel
Activate an FCurve only on selecting, and not on deselecting a keyframe or a handle. Reviewed By: HooglyBoogly, Severin, looch, #animation_rigging Differential Revision: https://developer.blender.org/D9328
2020-10-26Fix T69911: Adaptive subdivision offscreen dicing does not work correctly if ↵Philipp Oeser
the camera is shifted Code was assuming frustrum planes are symmetrical which is not the case for shifting. This lead to a shrinking region if shift was negative (and a growing region if shift was positive) So instead of only keeping track of plane on one side (and mirroring over in code) get the actual planes after shifting and use these instead. This code corrects this for ortho and perspective cameras, it does not touch panoramic cameras. Reviewed By: brecht Maniphest Tasks: T69911 Differential Revision: https://developer.blender.org/D9342
2020-10-26Fix T81893: Cycles viewport crash changing mesh to smoke domainBrecht Van Lommel
Now that volume is a dedicated geometry type in Cycles, we need to re-allocate the geometry when a mesh changes into a volume.
2020-10-26Cleanup: compiler warningsBrecht Van Lommel
2020-10-26Fix custom-normal support for mesh editing operationsCampbell Barton
Account for custom normals for edit-mesh tools: - Limited Dissolve - Split - Split (Edges/Vertices) - Triangulate
2020-10-26Proper, cleaner fix for T81963: Random rare crashes in override code.Bastien Montagne
Use new `BKE_pose_ensure` utils, and do so for reference linked object too everywhere.
2020-10-26Pose: Add a 'pose_ensure' new utils that only rebuilds if needed.Bastien Montagne
Avoids having to spread the check logic everywhere in the code.
2020-10-26Fix T82077: Tools popup error in the image editorRyan Inch
Add check for an image space type. Ref D9347
2020-10-26LatticeDeform: PerformanceJeroen Bakker
This patch improves the single core performance of the lattice deform. 1. Prefetching deform vert during initialization. This data is constant for each innerloop. This reduces the complexity of the inner loop what makes more CPU resources free for other optimizations. 2. Prefetching the Lattice instance. It was constant. Although performance wise this isn't noticeable it is always good to free some space in the branch prediction tables. 3. Remove branching in all loops by not exiting when the effect of the loop isn't there. The checks in the inner loops detected if this loop didn't have any effect on the final result and then continue to the next loop. This made the branch prediction unpredictable and a lot of mis predictions were done. For smaller inner loops it is always better to remove unpredictable if statements by using branchless code patterns. 4. Use SSE2 instruction when available. This gives 50% performance increase measured on a Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with GCC 9.3. Also check other compilers. Before: ``` performance_no_dvert_10000 (4 ms) performance_no_dvert_100000 (30 ms) performance_no_dvert_1000000 (268 ms) performance_no_dvert_10000000 (2637 ms) ``` After: ``` performance_no_dvert_10000 (3 ms) performance_no_dvert_100000 (21 ms) performance_no_dvert_1000000 (180 ms) performance_no_dvert_10000000 (1756 ms) ``` Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D9087
2020-10-26Fix T81077 id_management test on macOSAnkit Meel
This looks like a optimizer bug where it makes wrong assumptions. The code inside lib_id_delete:264 on rBafd13710b897cc1c11b `for (id = last_remapped_id->next; id; id = id->next) {..}` is not executed in release/relwithdebinfo builds. This can be "fixed" by several ways: - Adding a line that prints the `last_remapped_id->name` right before the said for-loop starts. - Turning off optimization for the whole function `id_delete`: `#pragma clang optimize off/on` Ray Molenkamp - Marking `last_remapped_id` volatile. Julian Eisel - Marking `tagged_deleted_ids` volatile. But it adds a warning when calling `BLI_addtail`: discards volatile qualifier. Discovered by accident. Fix T81077 Reviewed By: mont29 Maniphest Tasks: T81077 Differential Revision: https://developer.blender.org/D9315
2020-10-26Fix T81963: Random rare crashes in override code.Bastien Montagne
Finaly managed to reproduce, we not only have to ensure pose data is up to date for the override armature, but also for the reference linked data.
2020-10-26Fix T81984: Crash in sculpt undo with mask extract after dyntopo toggleBastien Montagne
More operators missing the mandatory undo flag...
2020-10-26Fix Recursion when rendering scene stripRichard Antalik
Recursion happens in case when scene strip point to it's own scene indirectly by using SEQ_SCENE_STRIPS option. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9264