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-05-20Use lines as start of dilate procestemp-T97352-3d-texturing-seam-bleeding-bJeroen Bakker
2022-05-20Create mask and dilate.Jeroen Bakker
2022-05-20Remove old test cases.Jeroen Bakker
2022-05-20Able to extract islands from monkey.Jeroen Bakker
2022-05-20New method. building via faces.Jeroen Bakker
2022-05-18Added testcases.Jeroen Bakker
2022-05-17Added documentationJeroen Bakker
2022-05-17UV Island determination.Jeroen Bakker
A lot of cases aren't working. A plane and a cube should be working. More complex objects have a high change that it triggers an assert as it isn't implemented yet.
2022-05-17Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-17Fix text.as_string() adding a trailing new-lineCampbell Barton
Moving Text.as_string() from Python to C [0] added an extra new-line causing a round-trip from_string/to_string to add a new-line, this also broke the undo test `test_undo.text_editor_simple` in `../lib/tests/ui_simulate/run.py`. [0]: 231eac160ee394d41c84e0cc36845facb7594ba5
2022-05-17Cleanup: spelling in commentsCampbell Barton
2022-05-17Cleanup: use term 'filepath' for full file pathsCampbell Barton
2022-05-16Fix image saving incorrectly overrding non-color data color spaceBrecht Van Lommel
In such cases we should not automatically change the color space.
2022-05-16Refactor modifiers writing code.Bastien Montagne
This changes is needed to give more control to modifiers' writing callback when defined. It will allow to implement better culling of needless data when writing e.g. modifiers from library overrides. Ref. T97967. Reviewed By: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D14939
2022-05-16Cleanup: make functions for setting active/render layer more consistentMartijn Versteegh
The active/render layer is indexed from the first layer of that type. These functions incorrectly subtracted the layer index of *each* layer, instead of the first one. If there's only a single layer this doesn't matter, but when there are multiple layers it will set the wrong active layer for consecutive layers. I'm not aware of any actual errors caused by this, because the active and render layers are only ever queried from the first layer of that type, but it was confusing during debugging a related issue. This patch makes the behavior of CustomData_set_layer_active_index() consistent with CustomData_set_layer_active() and the same for render. Differential Revision: https://developer.blender.org/D14955
2022-05-163D Texturing: Undo.Jeroen Bakker
Blender can only support a single undo system per undo step. As sculpting/vertex colors are mutual exclusive operations out approach is just to switch the undo system when painting on an image. PBVHNodes contain a list of areas that needs to be pushed to the undo system. Currently the undo code is in sculpt_paint_image. We should eventually support undo for color filtering and other nodes. we might need to place it to its own compile unit so more brushes can invoke the same code. {F13048942} Reviewed By: brecht Maniphest Tasks: T97479 Differential Revision: https://developer.blender.org/D14821
2022-05-16Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-16Fix T98136: Crash undoing "Make Library Override" in some cases.Bastien Montagne
The 'OVERRIDE_HIDDEN' extra collection would often be mistakenly added to a linked collection, which is totally forbidden and guaranteed to crash on undo/redo. Reworked the code instantiating that extra collection in a more generic and hopefully robust way now.
2022-05-16Python API: make Image.save and Image.save_render more consistent with operatorBrecht Van Lommel
Previously these only supported a subset of what the save operator could do, for example no multilayer or stereo saving, no proper color management. Now share code with the image save operator so it's more consistent.
2022-05-16Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-15Cleanup: Simplify loop syntax, make function staticHans Goudey
Use range based for loops, spans, references, and slice. Change split from D14685, in order to simplify refactor to the mesh hide masks.
2022-05-15Cleanup: Remove includes from DerivedMesh headerHans Goudey
Headers should only include other headers when absolutely necessary, to avoid unnecessary dependencies and increasing compile times. To make this change simpler, three DerivedMesh functions with a single use were removed.
2022-05-15Fix T98049: crash rendering multilayer EXR with some color spacesBrecht Van Lommel
2022-05-15Cleanup: Simplify loop syntax, decrease variable scopeHans Goudey
Mostly changes split from D14685, which refactors the hide flags.
2022-05-15Cleanup: Remove unused DerivedMesh functionHans Goudey
2022-05-15Cleanup: Remove unused subsurf ccg functionsHans Goudey
This simplifies some refactoring to mesh hide flags (see D14685).
2022-05-15Merge branch 'blender-v3.2-release'Joseph Eagar
2022-05-15Fix T81715: Unprojected radius mode messes up sculpt texture radiusJoseph Eagar
We really need to fix how unprojected radius (scene unit) works. What happened is the paint code updates the brush's normal radius with the current unprojected pixel radius, which was then used by texture brush tiled mode. To fix this I just cached the pixel radius at stroke start in UnifiedPaintSettings->start_pixel_radius.
2022-05-14Fix: Build error due to previous commitHans Goudey
2022-05-14Cleanup: Further use of const for retrieved custom data layersHans Goudey
Similar to cf69652618fefcd22b2cde9a2.
2022-05-13Cleanup: Use const argumentsHans Goudey
2022-05-13Cleanup: Use standard variable names for curvesHans Goudey
2022-05-13Cleanup: Use const when retrieving custom data layersHans Goudey
Knowing when layers are retrieved for write access will be essential when adding proper copy-on-write support. This commit makes that clearer by adding `const` where the retrieved data is not modified. Ref T95842
2022-05-13Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-13Fix T98072: Regression: When appending a Scene, the Collections that are ↵Bastien Montagne
excluded get instanced into Current Scene. This was due to using `BKE_scene_has_object` function, which uses the cache of bases of the viewlayers, which do not have entries for the content of excluded collections... Now use `BKE_collection_has_object_recursive` instead.
2022-05-13Color Management: various improvements and fixes for image savingBrecht Van Lommel
* Respect the image file color space setitng for saving in various cases where it was previously ignored. Previously it would often use the sRGB or Linear color space even when not selected. * For the Save As operator, add a Color Space option in the file browser to choose the color space of the file. Previously this was chosen automatically, now it's possible to e.g. resave a Linear image as Linear ACES. * When changing the file format, the colorspace is automatically changed to an appropriate color space for the file format. This already happened before, but there was no visibility or control in the operator settings for this. * Don't change color space when using the Save operator to save over the same file. * Fix missing color space conversion for 16 bit PNGs, where it assumed wrongly assumed ibuf->rect would be used for saving. Add BKE_image_format_is_byte to more accurately test this. Fixes T74610 Ref T68926 Differential Revision: https://developer.blender.org/D14899
2022-05-13Cleanup: spelling in comments, capitalize tagsCampbell Barton
Also add missing task-ID reference & remove colon after \note as it doesn't render properly in doxygen.
2022-05-12Cleanup: remove redundant float to byte conversion for stereo image savingBrecht Van Lommel
For non-stereo cases this is automatically handled by IMB_saveiff, no reason for stereo to do this separately. Ref D14899
2022-05-12Cleanup: remove redundant code and data copying image save as operatorBrecht Van Lommel
Store ImageSaveOptions directly in operator custom data instead of copying to/from a copy on the stack. Ref D14899
2022-05-12Cleanup: move image save options init to image_save.ccBrecht Van Lommel
The logic here is tightly coupled to the other image saving code. Ref D14899
2022-05-12Cleanup: remove unused function declarationBrecht Van Lommel
2022-05-12Cleanup: Refactor marker area clampingSergey Sharybin
Switch from a single function with a lot of branching at its top level to dedicated function calls with own documentation.
2022-05-12Cleanup: Remove redundant marker clamping code pathSergey Sharybin
Pattern is expected to be freely resized to any size, and the search area s to become bigger when needed. Remove confusing pattern size clamping which was actually clamping search area. There should be no functional changes.
2022-05-12Cleanup: Strong type for track path clear APISergey Sharybin
Replace a generic int value with an enum. Should be no functional changes.
2022-05-12Cleanup: Move tracking constants to be printable enumsSergey Sharybin
Replace old-style define with an enumerator values. Also move to the top of the file preparing for making those stronger typed.
2022-05-12Cleanup: More proper sections in tracking codeSergey Sharybin
Follows the code style
2022-05-12Cleanup: More proper sections in subdiv codeSergey Sharybin
Follows the code style.
2022-05-12Cleanup: discarded-qualifier warning, mixing enum/intsCampbell Barton
2022-05-12UDIM: Add support for packing inside .blend filesJesse Yurkovich
This completes support for tiled texture packing on the Blender / Cycles side of things. Most of these changes fall into one of three categories: - Updating Image handling code to pack/unpack tiled and multi-view images - Updating Cycles to handle tiled textures through BlenderImageLoader - Updating OSL to properly handle textures with multiple slots Differential Revision: https://developer.blender.org/D14395
2022-05-11Cleanup: fix compiler warnings on macOSLoren Osborn
Differential Revision: https://developer.blender.org/D14917