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-04-01Curve: Remove 'CU_2D' flag used for nurbsGermano Cavalcante
This fixes T86440 As the CU_2D flag is set for nurbs, a Curve can have 2D nurbs mixed with 3D. But the UI does not allow this mixing. It updates all nurbs to 2D or 3D when set. So remove this specific flag for nurbs. This may break old files, since 2D curves with mixed 3D are now set as 3D. Differential Revision: https://developer.blender.org/D10738
2021-04-01Cleanup: use bool instead of intJacques Lucke
2021-04-01Cleanup: Remove unused codeHans Goudey
There was a note about reusing this for "texture nodes", but that will probably not be implemented in this way anyway.
2021-04-01Cleanup: move node_exec.c to c++Jacques Lucke
Doing this, because it might make it easier to replace the implementation of `bNodeInstanceHash`.
2021-04-01Nodes: separate node name and display name in bNodeTreePathJacques Lucke
Previously, `node_name` was rarely actually a name of a node. It is set correctly as node name in `ED_node_tree_push`. However, later on it was overwritten by the name of an id data block in `node_draw_space`. Now, the node_name stays the name of the "parent" node. Whereas display_name is the name that will be displayed in the breadcrumbs. With this change, the `node_name` can be used to reconstruct the actual path from the root node tree to the currently visible tree. Differential Revision: https://developer.blender.org/D10874
2021-04-01Cleanup: spellingCampbell Barton
2021-04-01Geometry Nodes: add socket value logging capabilityJacques Lucke
The node tree evaluator now calls a callback for every used socket with its corresponding value(s). Right now the callback does nothing. However, we can use it to collect attribute name hints, socket values for debugging or data that will be displayed in the spreadsheet. The main difficulty here was to also call the callback for sockets in nodes that are not directly executed (such as group nodes, muted nodes and reroutes). No functional changes are expected.
2021-04-01BLI: add call_safe method for FunctionRefJacques Lucke
This is useful to avoid nullity checks in some places.
2021-04-01BLI: return early when copying empty arrayJacques Lucke
2021-04-01LineArt: Remove "soft selection" option.YimingWu
After some back and forth with the GP module and some artists, this option was deemed not that useful. The use case was considered too obscure so we'll remove it. It is still posible to have this functionality by using the vertex weight modiifers or manually clamping the weights.
2021-04-01LineArt: Remove resampling settings.YimingWu
This can be done with an other GP modifier already.
2021-04-01Fix T50103: Transform not working if scale is zeroCampbell Barton
If any axis of the scale of an object was zero, transforming failed. This was because `td->smtx` was set to a zero matrix. orthogonalize_m3_zero_axes is used to fill in the zeroed axes. Thanks to @filedescriptor for the initial fix: D10869.
2021-04-01BLI_math: add orthogonalize_m#_zero_axesCampbell Barton
Expose a this function to initialize any zeroed axes to an orthogonal vector based on other non-zeroed axes. This functionality already existed for `invert_m#_m#_safe_ortho`, expose as a public function as it's useful to be able to fill in zeroed axes of transformation matrices since they may be used in matrix multiplication which would create degenerate matrices.
2021-04-01Cycles: add a spread setting for area lightsMatteo Falduto
This simulates the effect of a honeycomb or grid placed in front of a softbox. In practice, it works by attenuating rays coming off-angle as a function of the provided spread angle parameter. Setting the parameter to 180 degrees poses no restrictions to the rays, making the light behave the same way as before this patch. The total light power is normalized based on the spread angle, so that the light strength remains the same. Differential Revision: https://developer.blender.org/D10594
2021-04-01Fix: incorrect versioning code for lights propertiesBrecht Van Lommel
Due to T64791 we must still use the old Lamp name rather than Light, work around that for now.
2021-04-01Fix T87056: Segfault in GPU_batch_clear() involing Lattice evaluationSybren A. Stüvel
Fix a segfault by setting the `batch_cache` pointer to `NULL` when copying a Lattice. That way the copy can get its own batch cache when needed, preventing a use-after-free.
2021-04-01Fix condition for ffmpeg seek workaroundRichard Antalik
This condition was in contradiction with comment for function `ffmpeg_generic_seek_workaround()`. I have noticed, that formats that seeked well used this workaround. Problem was that I misunderstood code from `av_seek_frame()` - formats with `read_seek()` function stil don't use generic seeking method. This is defined in `seek_frame_internal()`
2021-04-01Fix T87037: Add tooltip for "Paste Flipped"Falk David
The "Paste Flipped" operator was missing its own tooltip. This patch adds the tooltip by implementing the `get_description` callback for `GRAPH_OT_paste` and `ACTION_OT_paste`. Reviewed By: sybren Maniphest Tasks: T87037 Differential Revision: https://developer.blender.org/D10859
2021-04-01Fix freezed proxy framesRichard Antalik
`ffmpeg_generic_seek_workaround()` applied negative offset for seqrched packet timestamp, but proxies always start from 0 and timestamp can be negative. Limit timestamp value to 0, because `av_seek_frame()` doesn't accept negative timestamps and returns with error. This prevents seeking from working correctly.
2021-04-01Fix T86331: Preferences menu inaccessible until window resizeHarley Acheson
The RGN_TYPE_EXECUTE region was zero height - with the "Load & Save" button drawing outside of those bounds - so it didn't respond to events. This is because the region started off this size and does not change with simply adding the buttons. Although it has RGN_FLAG_DYNAMIC_SIZE, delayed reinit of regions is only currently supported on headers. This gives the execute region an initial (minimum) vertical size but also makes the region **hidden** by default. - Showing Prefs as an editor among others it will show the header but not the execute region. - Showing the Prefs in a popup window, hides the header region and shows the execute region. Ref D10636
2021-04-01Cleanup: method naming.Jeroen Bakker
2021-04-01Cleanup: Split up methods.Jeroen Bakker
2021-04-01Cleanup: clang formatCampbell Barton
2021-04-01Cleanup: Use const arguments in curve codeHans Goudey
2021-03-31Cleanup: Remove remaining unused code for DispList "bevel_split"Hans Goudey
This was added in rB93aeb6b318a7, last changed in rB8f0a44a5d55d, and removed in rB51b796ff1528. I assume it was a way for curves to have split edges at corners. As far as I can tell it only ever worked in Blender Internal, and that has been gone for years. Another possible route here would be restoring this functionality, but it's generally preferrable to reduce complexity in this area of curve code than adding it back, especially in the context of other improvements planned related to curves in geometry nodes. Differential Revision: https://developer.blender.org/D9966
2021-03-31Fix T87094: Transforming geometry instances component is brokenHans Goudey
Caused by an incorrect transformation order in cleanup commit rBd037fef3bd1dc2e. The fix is to simply reverse the order.
2021-03-31Geometry Nodes: Rename "Grid" to "Density"Hans Goudey
For other "Attribute Name" fields we usually give a more specific name that relates to what the attribute is actually used for, like "Mask" in the point separate node. This is a similar situation, and would also be consistent with the naming planned in D10506.
2021-03-31Fix T87087: attributes were removed automatically even though they are still ↵Jacques Lucke
needed The geometry nodes modifier did not specify that it needs all custom data layers. Therefore the modifier evaluation code tagged some layers so that they will not be copied later on by calling `mesh_set_only_copy` in `mesh_calc_modifiers`.
2021-03-31GPencil: Avoid LineArt modifier uses negative material indexAntonio Vazquez
In some situations the material index could be negative, and this is wrong.
2021-03-31Fix compiler error in Windows Antonio Vazquez
C7555 use of designated initializers requires at least '/std:c++latest' This is not supported by the current Windows compiler version.
2021-03-31GPencil: Remove flag PROP_ID_SELF_CHECK from materialsAntonio Vazquez
This flag was used by error when the code of RNA object was used as base, but it's not logic in materials.
2021-03-31Fix T86879 Boolean exact crash with dependency loop.Howard Trickey
When boolean's Object also has a modifier that depends back on the target Object, a crash occurred. In a case like this, BKE_modifier_get_evaluated_mesh_from_evaluated_object returns NULL, so just have to protect against that case.
2021-03-31Cleanup: naming for edit-mesh nearest distance valuesCampbell Barton
- Don't use `r_` prefix for an argument that's also read from (this is meant for return only arguments). - Rename variables to make it clear the distance is pixels, using manhattan length measurement.
2021-03-31Cleanup: Removed Unused Definition.Jeroen Bakker
2021-03-31Fix: Cryptomatte Picker on Legacy Node Failing.Jeroen Bakker
The new Cryptomatte workflow assumes that the picker is used in the new workflow. The legacy node wasn't working as it would never find a correct cryptomatte layer. This fix will use the color sampling like we used to do.
2021-03-31Compositor: Keep WorkPackages and Data Around.Jeroen Bakker
WorkPackages struct was created when scheduled. This patch keeps the WorkPackages around and stores additional data with the workpackages. The speedup is to small to notice, but it is needed as preparation to introduce a faster scheduling method.
2021-03-31Fix T87080: Select shortest path fails in face modeCampbell Barton
Regression in 80cbbd2843c2358879b1a710d81a3b41e1468327. Unfortunately keeping selection picking behavior as well as supporting finding the nearest face within a radius requires an inconsistency between x-ray and back-buffer selection that doesn't work well using the current arguments. Resolve by adding an argument that causes the input distance to be ignored for back-buffer selection. This is used by selection picking but not the knife tool. This changes behavior for path-selection in face mode, which now uses a margin for back-buffer selection. From my own testing this doesn't seem to be a problem like it could be for regular selection picking.
2021-03-31Fix T86947: Drag & Drop tooltip in Scene modeFalk David
The tooltip while dragging a collection in Scene mode in the Outliner was always "Link inside Collection" even if the action performed was different. This was because the `collection_drop_init` set the `from_collection` always to `NULL` if the Outliner display mode was currently set to Scene. Commit that introduced this issue: rB0f54c3a9b75be8f8db9022fb0aeb0f8d0d4f0299 The fix removes the check of the display mode and only sets the `from_collection` to `NULL` if the ctrl (linking) key is held. Reviewed By: JacquesLucke Maniphest Tasks: T86947 Differential Revision: https://developer.blender.org/D10864
2021-03-31Fix T87082: Smooth thickness not workingFalk David
When using the smooth operator, the thickness would not be smoothed on the first iteration. This was becasue the inner loop was set to run `r * 20` times but `r` starts at 0. The fix makes sure that "Smooth Thickness" works on the first iteration by using a fixed value of `20` as the loop limit. This makes sure that for every iteration, we run the smoothing of the thickness 20 more times. Reviewed By: antoniov Maniphest Tasks: T87082 Differential Revision: https://developer.blender.org/D10867
2021-03-31Cleanup: Fix warningsRichard Antalik
Introduced in b128ffd53970
2021-03-31Cleanup: use constexpr for num channels.Jeroen Bakker
Don't assume all compilers are smart. MSVC doesn't inline the call away like CLANG and GCC did.
2021-03-31Fix build error on windowsRichard Antalik
Error was caused by using `#if` directive in `PyDoc_STRVAR` macro. This partially reverts 1e4c35d910e18858c41924f9e27ef8e1070cbd0a
2021-03-31Cleanup: Remove SEQ_CURRENT_BEGIN macroRichard Antalik
Use LISTBASE_FOREACH instead. SEQ_CURRENT_BEGIN did null checks, so now these must be explicit. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D10823
2021-03-31PyDoc: correct sphinx syntax for gpu.state.blend_setCampbell Barton
2021-03-31Cleanup: use early return for imbuf image loader functionsCampbell Barton
Most imbuf loaders already did this, use early exit for the remaining loaders that didn't.
2021-03-31Cleanup: improve navigation gizmo flag useCampbell Barton
Flag check for V3D_LOCK_CAMERA used boolean style assignment to a char, which worked with this flag but could fail if other flags are added that use this convention in the future. - Add static type checks for values so any change to DNA types will need to be made in the navigation gizmo too. - Move camera lock check from `rv3d` to `v3d`, as this isn't stored in the region data.
2021-03-31UI: Gizmo Button to Lock Camera to ViewHarley Acheson
2D gizmo navigation button that toggles 'Lock Camera to View' while in Camera View. Differential Revision: https://developer.blender.org/D10835 Reviewed by Campbell Barton
2021-03-30Cleanup/Refactor: Unify functions that redraw the depth bufferGermano Cavalcante
Now `ED_view3d_backbuf_depth_validate`, `ED_view3d_draw_depth` and `ED_view3d_draw_depth_gpencil` are unified in `ED_view3d_depth_override`. This new function replaces `ED_view3d_autodist_init`. Also, since `ED_view3d_depth_update` depends on the render context, and changing the context is a slow operation, that function also was removed, and the depth buffer cached is now updated inside the new unified drawing function when the "bool update_cache" parameter is true. Finally `V3D_INVALID_BACKBUF` flag has been renamed and moved to `runtime.flag`. Differential revision: https://developer.blender.org/D10678
2021-03-30UI: Skip undo steps when changing properties of the 3d cursorGermano Cavalcante
Differential revision: https://developer.blender.org/D10695
2021-03-30Fix: buttons whose property contains an 'owner_id' ignore rna undo checkGermano Cavalcante
Introduced in rBce462fa1 but harmless since curretly only `StructRNA` without `owner_id` have the `STRUCT_UNDO` flag cleared. So this commit does not bring any functional changes but it will be useful for {D10695}.