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
2022-11-13Always ensure bool layers for pyhton api.refactor-mesh-uv-map-genericMartijn Versteegh
When verifying a uv layer from the pytho api, always ensure the associated bool layers. We can't lazily allocate them because allocating CustomData layers on a BMesh reallocates layers thereby invalidating existing python objects.
2022-11-13Fix alignment of DisplaceModifierData.Martijn Versteegh
The start of DisplaceModifierData needs to have the exact same layout as MappingInfoModifierData because it gets cast to that.
2022-11-12Cleanup: clang-formatMartijn Versteegh
2022-11-12Cleanup: fix typos in comments. make diff minimal for layout.Martijn Versteegh
2022-11-12Fix some more mistakes found when checking the whole diff.Martijn Versteegh
2022-11-11Merge branch 'master' into refactor-mesh-uv-map-genericMartijn Versteegh
2022-11-11Fix merge error of release/scripts/addonsMartijn Versteegh
2022-11-11Fix some mistakes after reviewing half of the patch.Martijn Versteegh
Turns out I forgot to merge with master before reviewing the diff(to master). Halfway I encountered unmerged code, so the second half of the review will happen after the merge. ;-)
2022-11-11Cycles: Cache only up to 5 kernels of each type on MetalMichael Jones
This patch adapts D14754 for the Metal backend. Kernels of the same type are already organised into subdirectories which simplifies type matching. Reviewed By: brecht Differential Revision: https://developer.blender.org/D16469
2022-11-11Merge branch 'blender-v3.4-release'Brecht Van Lommel
2022-11-11Fix CMake error when pkg-config is not installedBrecht Van Lommel
Don't assume xxx_FOUND variables are defined.
2022-11-11Fix T96481: make color picker RGB display consistentHallam Roberts
Show RGB value "1.000" instead of "1", jus like HSV mode. Also uses full labels "Red", "Green" and "Blue" rather than the shortened labels "R", "G" and "B", for both RGB and HSV. Differential Revision: https://developer.blender.org/D14387
2022-11-11Fix broken Cycles rendering with recent OSL versionsPatrick Mours
Commit c8dd33f5a37b6a6db0b6950d24f9a7cff5ceb799 in OSL changed behavior of shader parameters that reference each other and are also overwritten with an instance value. This is causing the "NormalIn" parameter of a few OSL nodes in Cycles to be set to zero somehow, which should instead have received the value from a "node_geometry" node Cycles generates and connects automatically. I am not entirely sure why that is happening, but these parameters are superfluous anyway, since OSL already provides the necessary data in the global variable "N". So this patch simply removes those parameters (which mimics SVM, where these parameters do not exist either), which also fixes the rendering artifacts that occured with recent OSL. Maniphest Tasks: T101222 Differential Revision: https://developer.blender.org/D16470
2022-11-11Merge branch 'blender-v3.4-release'Hans Goudey
2022-11-11Fix T102404: Behavior change in CustomData APIHans Goudey
Previously the `CustomData_add_layer` function always returned the existing layer data when used for types that can only have one layer. This made it work like an "ensure layer exists" function for those types. That was used in various places to make code more concise. 0a7308a0f149 changed that to always "recreate" the layer even when it existed. Maybe this is more logical for an "add layer" function, but that's not clear, and it breaks a bunch of existing code that relied on the current behavior. Rather than spending a bunch of time going through uses of the CustomData API, this patch resets the behavior to what it was before, but adds an assert and a comment to help avoid memory leaks and other issues. We should focus on moving to the attribute API instead. Differential Revision: https://developer.blender.org/D16458
2022-11-11Fix T100706: Object instances with different geometry type invisibleHans Goudey
Code in `deg_object_hide_original` uses the dupli object type to decide whether to hide the original object. The geometry component system changed the dupli object generator types, which made this not work. To maintain existing behavior, maintain a stack of non-geometry-nodes generator types while building the dupli list, and assign that to the dupli object instead. I think this code is on its last legs. It can't handle too many more hacky fixes like this, and should be replaced soon. Hopefully that is possible by using a `bke::Instances` type instead. However, this bug is bad enough that it's worth fixing like this. Differential Revisions: https://developer.blender.org/D16460
2022-11-11Cleanup: Improve curves sculpt code section namesHans Goudey
2022-11-11Addons submodule version bumpdemeterdzadik@gmail.com
(Previous attempt was accidentally 4 days outdated)
2022-11-11Fix T101270: Object Info > Random not unique for nested instances and curvesBrecht Van Lommel
This random number is intended to be unique for every instance, however for some cases with more than one level of nesting this was failing. This also affected curves after they were refactored to use geometry sets. For simple cases the random number is the same as before, however for more complex nesting it will be different than before, changing the render result.
2022-11-11Merge branch 'blender-v3.4-release'Philipp Oeser
2022-11-11Fix: Curves sculptmode: paintcurve stroke points cannot be transformedPhilipp Oeser
As part of rB3f91540cef7e, we already made `OB_MODE_SCULPT_CURVES` to be allowed in `paint_curve_poll` (alongside `OB_MODE_ALL_PAINT`). Now, to get the paintcurves transform systems to work with curves sculptmode as well, we introduce this "additional case" in the appropriate place in the transform system as well. NOTE: as a next step, considering `OB_MODE_SCULPT_CURVES` to be generally part of `OB_MODE_ALL_PAINT` is to be done (this might fix another couple of bugs, but also has to be carefully checked in many places, so this patch is just fixing this very specific case) Fixes T102204. Maniphest Tasks: T102204 Differential Revision: https://developer.blender.org/D16466
2022-11-11Addons submodule version bumpdemeterdzadik@gmail.com
2022-11-11Merge branch 'blender-v3.4-release'Jacques Lucke
2022-11-11Fix T102386: crash when trying to link sockets from different node treesJacques Lucke
This was caused by rBc39eb09ae587e1d9. The optimization broke the case when the socket is not in the provided node tree. Now there are two separate functions, one that always does the slow check to see of the socket is really in the node tree and a potentially much faster version when we are sure that the socket is in the tree.
2022-11-11Merge branch 'blender-v3.4-release'Jacques Lucke
2022-11-11Fix T102406: OSL script node no longer updates its in and outputsJacques Lucke
This special case was missing in rB52bd198153ede3c7131df.
2022-11-11Merge branch 'blender-v3.4-release'Jeroen Bakker
2022-11-11Fix T100969: Memory leak GPU subdivision during rendering.Jeroen Bakker
The viewport cleans up old subdivision buffers right after drawing. During rendering this was not done and when rendering many frames this lead to memory issues. This patch will also clear up the GPU Subdivision buffers after any offscreen render or final render. There is already a mutex so this is safe to be done from a non main thread. Thanks to @kevindietrich to finding the root cause.
2022-11-11Cleanup: Remove unused navigation widget struct membersAaron Carlisle
The `region_size[2]` was set to -1 but was never accessed.
2022-11-11Cleanup: Use string argument for attribute API functionHans Goudey
Instead of CustomDataLayer, which exposes the internal implementation more than necessary, and requires that the layer is always available, which isn't always true.
2022-11-11Cleanup: Clarify and deduplicate attribute convert implementationHans Goudey
The ED level function is used for more code paths now, and it has been cleaned up. Handling of the active attribute is slightly improved too.
2022-11-11Mesh: Convert color attribute operatorRamil Roosileht
Implements an operator to convert color attributes in available domains and types, as described in T97106. Differential Revision: https://developer.blender.org/D15596
2022-11-10Merge branch 'blender-v3.4-release'Joseph Eagar
2022-11-10Sculpt: Fix T102209: Multiresolution levels greater than 6 crashesJoseph Eagar
pbvh->leaf_limit needs to be at least 4 to split nodes original face boundaries properly.
2022-11-10Fix mangled merge of versioning code.Martijn Versteegh
Versioning code was put in the mesh loading code, instead of versioning in an earlier version of the SoA conversions. Later it was moved to the proper place, but in the refactor-mesh-uv-as-attrib branch it remained in the original location due to a merge error.
2022-11-10Sculpt: Fix T102209: Multiresolution levels greater than 6 crashesJoseph Eagar
pbvh->leaf_limit needs to be at least 4 to split nodes original face boundaries properly.
2022-11-10Sculpt: Fix T101914: Wpaint gradient tool doesn't work with vertex maskEdward
Reviewed by: Julian Kaspar & Joseph Eagar Differential Revision: https://developer.blender.org/D16293 Ref D16293
2022-11-10Merge branch 'blender-v3.4-release'Antonio Vazquez
2022-11-10GPencil: Add warning to Outline modifer when no CameraAntonio Vazquez
The modifier needs a scene camera to work. Now if the camera is not defined, there is a warning. The optimal solution would be to use the `isDisabled` callback but the callback function hasn't the scene parameter and to pass this parameter is necessary to change a lot of things and now we are focus in the next version of GPencil 3.0 and this change not worth the work now. The optimal solution will be implemented in the 3.0 refactor. Related to T102375 Reviewed by: Pablo Vazquez, Matias Mendiola
2022-11-10Sculpt: Change symmetrize merge threshold and expose in workspace panelJoseph Eagar
The sculpt symmetrize operator's merge threshold now defaults to 0.0005 instead of 0.001, which tends to be a bit too big for metric scale. Also changed its step and precision a bit to be more usable.
2022-11-10Sculpt: Rename Show/Hide operators for consistencyJulien Kaspar
This is a minor naming update to make the box hide and show operators in sculpt mode follow current naming conventions. Reviewed by: Joseph Eagar Differential Revision: https://developer.blender.org/D16413 Ref D16413
2022-11-10Sculpt: Fix inconsistent naming for cavity_from_mask operatorJoseph Eagar
With db40b62252e5 there have been various UI adjustments and improved renaming. The Mask From Cavity menu operator didn't follow this new naming yet. Reviewed By: Joseph Eagar Differential Revision: https://developer.blender.org/D16409 Ref D16409
2022-11-10Fix abort when rendering with OSL and OptiX in CyclesPatrick Mours
LLVM could kill the process during OSL PTX code generation, due to generated symbols contained invalid characters in their name. Those names are generated by Cycles and were not properly filtered: - If the locale was set to something other than the minimal locale (when Blender was built with WITH_INTERNATIONAL), pointers may be printed with grouping characters, like commas or dots, added to them. - Material names from Blender may contain the full range of UTF8 characters. This fixes those cases by forcing the locale used in the symbol name generation to the minimal locale and using the material name hash instead of the actual material name string.
2022-11-10Sculpt: Fix T102379: Crash in dyntopoJoseph Eagar
2022-11-10Fix const-correctness for a number of F-Curve functionsColin Basnett
Reviewed By: sybren Differential Revision: https://developer.blender.org/D16445
2022-11-10Merge branch 'blender-v3.4-release'Sergey Sharybin
2022-11-10Fix T100654: Distortion node freezes on empty inputSergey Sharybin
Perform an early output when the input is empty, avoiding division by zero and attempt to run LM solver on an inf values.
2022-11-10Fix: GPU: Set the last enum in ENUM_OPERATORSMiguel Pozo
2022-11-10Merge branch 'blender-v3.4-release'Sergey Sharybin
2022-11-10Cleanup: Fix strict compiler warningSergey Sharybin