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-01-15Merge branch 'temp-usd-preview-surf-export' into temp-usd-prev-export2temp-usd-prev-export2Michael Kowalski
2022-01-15USD material export code cleanup.Michael Kowalski
Fixed comment and removed unnecessary check for empty string.
2022-01-15USD material export format fixes.Michael Kowalski
2022-01-15USD material export code cleanup.Michael Kowalski
Moved repeated code for setting the shader input value to a common function, as suggested by Sybren in his review.
2022-01-12Merge branch 'temp-usd-preview-surf-export' into temp-usd-prev-export2Michael Kowalski
2022-01-12USD material export cleanup.Michael Kowalski
Changes based on Sybren's review: Moved paths_equal() helper function code to common BLI_paths_equal() function. Using switch statement instead of if/else chain when creating shader input based on the socket type. Using early returns where appropriate. Removed unnecessary function argument validity checks. Made variables const. Moved related functions closer together. Additional miscellaneous changes.
2022-01-07Merge branch 'temp-usd-preview-surf-export' into temp-usd-prev-export2Michael Kowalski
2022-01-07USD export: use new UDIM virtual filepath API.Michael Kowalski
Applied Jesse Yurkovich's patch to update the UDIM tile texture export code to conform to the new virtual filepath specification requirements.
2022-01-07Merge remote-tracking branch 'origin/master' into temp-usd-preview-surf-exportMichael Kowalski
2022-01-07Merge remote-tracking branch 'origin/master' into temp-usd-prev-export2Michael Kowalski
2022-01-05Fix T94659: crash when deleting instancesJacques Lucke
The crash was caused by using `modify_geometry_sets` to modify instances, which does not generally work unfortunately. The intended behavior was wrong anyway. In instances mode, only top level instances should be deleted. Also removed the old error handling because it doesn't look like it ever worked. all_is_error remained false all the time. Furthermore, updating it was not thread safe. Differential Revision: https://developer.blender.org/D13736
2022-01-05Fix T54488: hair disconnect/reconnect not working with modifiersAleksi Juvani
Take the Use Modifier Stack setting into account when connecting hair, and fix wrong results results when using deforming modifiers also. Differential Revision: https://developer.blender.org/D13704
2022-01-05Cleanup: rename mesh -> geom in some places that now handle multiple geom typesBrecht Van Lommel
2022-01-05Cleanup: compiler warnings about unused codeBrecht Van Lommel
2022-01-05Cycles: Add OptiX temporal denoising supportPatrick Mours
Enables the `bpy.ops.cycles.denoise_animation()` operator again and modifies it to support temporal denoising with OptiX. This requires renders that were done with both the "Vector" and "Denoising Data" passes. Differential Revision: https://developer.blender.org/D11442
2022-01-05Cleanup: fix typos in source code in intern/Brecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D13532
2022-01-05Cleanup: Remove unused code (USE_COLOR_U32)Jeroen Bakker
2022-01-05Cycles: support rendering PointCloud motion blur from attributeKévin Dietrich
This adds support to render PointCloud motion blur from a standard "velocity" attribute. This implementation is similar to that of the Mesh geometry, and perhaps some code could be deduplicated through a more generic API. `mesh_need_motion_attribute` was renamed `object_need_motion_attribute` as it does not really require a mesh and moved to `util.h` so that it can be shared. This fixes T94622. Reviewed By: brecht Maniphest Tasks: T94622 Differential Revision: https://developer.blender.org/D13719
2022-01-05Enable OpenEXR DWAB compresstionSergey Sharybin
The DWAB compression was disabled in the d59721c2c311 due to a bug in the OpenEXR library which is now resolved. Re-enable the DWAB compression for OpenEXR output. It is a simple change, and DWAB often behaves better than DWAA. Differential Revision: https://developer.blender.org/D13713
2022-01-05Fix T94564: Mirror clipping is not properly placed in sculpt modePhilipp Oeser
If a mirror object is used in a mirror modifier, sculptmode did not take this into account (and instead always clipped on the sculpt objects local axis). Now take this into account by storing a matrix in the preparation function `sculpt_init_mirror_clipping` and use that later in `SCULPT_clip`. Maniphest Tasks: T94564 Differential Revision: https://developer.blender.org/D13711
2022-01-05Fix T94506: Crash in CompositingSergey Sharybin
2022-01-05Fix T94545: support realizing instanced collectionsJacques Lucke
This case wasn't handled in rBf5ce243a56a22d718 correctly. Now `object_get_evaluated_geometry_set` just returns a geometry set that contains the collection instance for collection instance objects.
2022-01-05IDManagement: Add assert against no-main IDs passed to `BKE_id_delete`.Bastien Montagne
This high-level function can only deal with IDs in main, trying to use it to delete/free a no-main ID does nothing.
2022-01-05Fix T94366: Grease Pencil Automerge no immediate UI updatePhilipp Oeser
Just an oversight in rBe9607f45d85d. Now add notifier that toolsettings changed. Maniphest Tasks: T94366 Differential Revision: https://developer.blender.org/D13723
2022-01-05Cleanup: Use new socket builder APIAaron Carlisle
2022-01-05Nodes: Consistent link drag search for math and vector math nodesHans Goudey
Previously operations for the math node when connecting to outputs weren't added. It also used a different method to check whether the link would be valid.
2022-01-05Cleanup: Make shade node util header CPP onlyAaron Carlisle
Now that all shader nodes are converted to CPP this header can now be made into a CPP header.
2022-01-05Fix T89587: Don't Change Line Width For PreviewsHarley Acheson
Do not temporarily change U.pixelsize while creating object previews in object_preview_render. It does nothing to the render, but the change in line width can affect other UI drawing since it is done in a thread. see D13717 for for details. Differential Revision: https://developer.blender.org/D13717 Reviewed by Julian Eisel
2022-01-04Fix T94145: Knife tool fails in orthographic modeCian Jinks
Calculating min and max orthographic extent forgot to convert to worldspace coordinates.
2022-01-04Cleanup: Dont use relative includeAaron Carlisle
Instead let cmake determine the path for file includes
2022-01-04Cleanup: Nodes: Convert generic shader node files to c++Aaron Carlisle
Along with the general changes to CPP this commit does the following - Use static casts where possible - Use new CPP MEM library functions instead of cast - Use listbase macros where possible - Declare variables where initialized Reviewed By: HooglyBoogly, JacquesLucke Differential Revision: https://developer.blender.org/D13718
2022-01-04Fix: Link drag search error with random value node from color socketHans Goudey
Dragging from a color socket would hit an assert in a debug build. The node does not have a color mode currently, so use the vector mode instead when connecting to a color socket.
2022-01-04Fix T94620: GPencil AutoMerge does not work when Draw On Back is enabledAntonio Vazquez
The problem was the stroke was added to head and the `prev` pointer was NULL. Now check if there is the list is empty`next`.
2022-01-04Fix T94308: Window Manager console errorJulian Eisel
2022-01-04Fix: Build issue with MSVCRay Molenkamp
std::min was used without including the algorithm header. Seems to be implicitly included by something in newer MSVC versions and GCC, however vs16.4 needed a little help here.
2022-01-04Cleanup: Code formatting.Jeroen Bakker
2022-01-04Fix T94546: Remove soft limit for the Clamp Node value socket.Thomas Dinges
2022-01-04Fix T94544: crash removing image used as camera background via pythonPhilipp Oeser
Since 2.8, background images are tied to cameras (in 2.79 these were tied to a View3D I think). Code in `BKE_library_id_can_use_idtype` wasnt taking this relation between `Camera` and `Image` into account, thus leading to ID deletion/ unlinking not working properly -- in particular `libblock_remap_data` not doing its thing (and leaving the camera as a user of the image), then things went downhill from there... Now make the "Camera-can-use-an-Image" relation clear in `BKE_library_id_can_use_idtype`. Maniphest Tasks: T94544 Differential Revision: https://developer.blender.org/D13722
2022-01-04Fix T94599: Assert on usercount when deleting image created via operator.Bastien Montagne
`IMAGE_OT_new` operator would not properly clear the by-default one user generated by 'new id' code, in case it could not tie the image to anything.
2022-01-04Fix T90830: Crop node cropping is one pixel shortManuel Castilla
Currently the crop higher limits are inclusive too which contradicts the documentation as it says that if Left and Right are both 50, it will result in a zero-sized image. And the result is one pixel out of the crop gizmo, which is another hint that this is not intended. In "Full Frame" experimental mode it's two pixels short because of a misuse of `BLI_rcti_isect_pt` as it considers max limits inclusive. Reviewed By: jbakker Maniphest Tasks: T90830 Differential Revision: https://developer.blender.org/D12786
2022-01-04Fix T91160 - Movie Clip Editor - frame indicator/controller is not displayedAidan Davey
The frame indicator/controller is not displayed when in the Graph or Dopesheet view of the Movie Clip Editor To solve this we could call the function ED_time_scrub_draw_current_frame in clip_draw_dopesheet_main and graph_region_draw in space_clip.c Reviewed By: jbakker Maniphest Tasks: T91160 Differential Revision: https://developer.blender.org/D12659
2022-01-04Shader Nodes: Unity BuildAaron Carlisle
Enable unity builds for `bf_nodes_shader`, gives about a 2.7x speedup of total compile times when just building `bf_nodes_shader`. On my machine, this equates to saving about 30 seconds. Differential Revision: https://developer.blender.org/D13720
2022-01-04Cleanup: Move node storage macro inside file namespaceAaron Carlisle
Must have been a mistake in previous commits, this fix is needed to enable unity builds.
2022-01-04Fix soft light blend mode mathRichard Antalik
Function `blend_color_softlight_float` used math different to compositor and produced result that had abrupt value changes. Use math based on modified screen blend mode as compositor does.
2022-01-04Fix out of range color in blend modesRichard Antalik
Result of Exclusion and Pin Light blend modes could be greater than 255 which caused artifacts. Limit color value to 0-255 range.
2022-01-04Cleanup: Remove bNodeType flag from base registration functionsAaron Carlisle
This flag is only used a few small cases, so instead of setting the flag for every node only set the required flag for the nodes that require it. Mostly the flag is used to set `ntype.flag = NODE_PREVIEW` For nodes that should have previews by default which is only some compositor nodes and some texture nodes. The frame node also sets the `NODE_BACKGROUND` flag. All other nodes were setting a flag of 0 which has no purpose. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D13699
2022-01-04BLI: Add slice method to MutableSpanHans Goudey
Span had a slice method with an IndexRange argument, but MutableSpan did not, yet. This commit makes the two types consistent.
2022-01-03Cleanup: Clang tidyHans Goudey
2022-01-03Add a new C++ version of an exporter for the Wavefront .obj format.Howard Trickey
This was originally written by Ankit Meel as a GSoC 2020 project. Howard Trickey added some tests and made some corrections/modifications. See D13046 for more details. This commit inserts a new menu item into the export menu called "Wavefront OBJ (.obj) - New". For now the old Python exporter remains in the menu, along with the Python importer, but we plan to remove it soon (leaving the old addon bundled with Blender but not enabled by default).
2022-01-03Fix T94581: Incorrect geometry delete behavior with instancesHans Goudey
Compare the start of the range to zero to figure out whether the indices for the instances to keep starts at zero. Also rename the selection argument, since it made it seem like the selected indices should be removed rather than kept.