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-03-29Knife: reduce redundant face picking queriesCampbell Barton
Reduce the maximum number of queries to find the face under the mouse cursor from 6x to 2x on cursor motion. Calculating the screen-space detail could perform 2x look-ups which have already been calculated.
2021-03-29Fix T83391: Knife sometimes snaps to object centerCampbell Barton
Knife snapping logic assumed having a face under the cursor meant the projected positions were set. This is not always the case as failure to ray-cast uses the back-buffer as a fallback.
2021-03-28Cleanup: deduplicate attribute creating codeJacques Lucke
2021-03-28Cleanup: use parentheses in macroJacques Lucke
2021-03-28Fix T86060: Texture Paint clone tool misleading texture UICampbell Barton
For projection painting tools besides the `DRAW` tool: - Don't show the texture from viewport stencil drawing. - Don't show the texture panel. Based on D10564 by @lichtwerk with own changes.
2021-03-28Cleanup: re-order expensive checks for indirect ID useCampbell Barton
Check for indirect ID use after other simple user count checks are made. Also assert ED_object_base_free_and_unlink_no_indirect_check object argument isn't indirectly used.
2021-03-28Cleanup: revert part of da160dc32d1518dc3e59a8fb7995b59c88870444Campbell Barton
The grease-pencil parent check was enabled when deleting objects, when previously it was only done when unlinking. While harmless, the previous logic is correct.
2021-03-28Fix T86992: Tagged ID deletion conflicts with freeing objectsCampbell Barton
Check LIB_TAG_COPIED_ON_WRITE instead of LIB_TAG_NO_MAIN, matching the behavior of rigid-body shared data.
2021-03-28Workaround T86992: Tagged ID deletion conflicts with freeing objectsCampbell Barton
da160dc32d1518dc3e59a8fb7995b59c88870444 exposed a bug in `BKE_id_multi_tagged_delete` causing a memory leak in soft-body that made `physics_softbody` test fail. Use a loop to remove ID's to keep tests working until T86992 is fixed.
2021-03-27Cleanup: Apply clang formatAntonio Vazquez
2021-03-27Fix T86967 : Artifacts when tracing image to Grease PencilMarcelo Demian Gómez
Tracing images to grease pencil objects creates sometimes artifacts, as seen, for example, when tracing the attached image. {F9910821} I have found the same behavior both in the 2.92 release and in the current 2.93 master. The artifacts are caused by a variable that's not initialized or updated when finding a point tagged as POTRACE_CORNER. This patch solves this issue. Maniphest Tasks: T86967 Differential Revision: https://developer.blender.org/D10832
2021-03-27Fix T86975: GPencil interpolate sequence error when strokes are not selectedAntonio Vazquez
If the selection order is not used, need to put the strokes in inverse order because the Hash Iter returns the strokes in inverse order.
2021-03-27Cleanup: spelling and commentsPratik Borhade
- comment added in struct `KnifeTool_OpData` - struct pointer name `lst` updated to `list` ( Guess its more readable ) - `KNF_MODEL_IGNORE_SNAP_ON` updated to `KNF_MODAL_IGNORE_SNAP_ON` - `KNF_MODEL_IGNORE_SNAP_OFF` updated to `KNF_MODAL_IGNORE_SNAP_OFF` Ref D10824
2021-03-27Fix T86924: UV Sync selection breaks individual origin calculationSiddhartha Jejurkar
Use uvedit_uv_select_test which accounts for UV Sync selection. Ref D10830
2021-03-27Correct header rename error 10cfa75e1d1e80b32da640a0e7de2b50f831dcfdCampbell Barton
2021-03-27UV Editor: Add cursor center operatorFabrício Luis
This matches cursor center operator from the 3D view. Reviewed By: campbellbarton Resolves T70142 Ref D8271
2021-03-27Cleanup: clang-formatCampbell Barton
2021-03-27Comment: note that structs are zeroed instead of using defaultsCampbell Barton
2021-03-27Cleanup: use .hh extension for C++ headersCampbell Barton
Follow documented convention for file naming.
2021-03-27Object: faster object deletionCampbell Barton
The `object_delete_exec` lead to `BKE_library_ID_is_indirectly_used` being called twice. With this patch deleting is around 20% faster. Example when deleting 10000 objects: Current: 35.6s This patch: 18.8s (updated, last rev 29.7s) Reviewed By: campbellbarton Ref D9857
2021-03-26Cleanup: Use enum for "in" vs. "out" node socketsHans Goudey
2021-03-26LibOverride: Fix outliner menu showing 'override editing' entries for linked ↵Bastien Montagne
overrides. One can only resync, reset, delete etc. locl overrides, linked ones are basically regular linked IDs and fully not editable. Reported by Demeter from the Studio, thanks.
2021-03-26Geometry Nodes: Rename "Plane" primitive to "Grid"Hans Goudey
Although "Grid" may not be techincally correct since a grid could be 3D, it was decided to rename the "Plane" primtive to "Grid". The primitive node allows subdivisions, so the name is more consistent with the operator in the 3D view. Ref T86819 This commit includes a file subversion bump for the versioning.
2021-03-26UI: Change Usages of 'WPaint' to 'Weight Paint'Yevgeny Makarov
Changing to a more informative 'Weight Paint' rather than 'WPaint'. Differential Revision: https://developer.blender.org/D9905 Reviewed by Julian Eisel
2021-03-26Geometry Nodes: Implicit conversion change for float/int/color to boolCharlie Jolly
Change `float to boolean` and `int32 to boolean` to return false for zero and negative values. This aligns with how artists would expect these values to work. This is in contrast to what a coder would expect. It was determined on blender.chat that this was a better default. This means that a negative float value would give a boolean false. Change `Color4f to boolean` to return false for zero and negative grayscale values. Likewise, for color to boolean, to account for negative value colors, the grayscale value would be used for determining if a colour was false or not. See {T86454} Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10685
2021-03-26Nodes: match Multi-input socket activation distanceFabian Schempp
Activation distance for multi input sockets had different length dependend of dpi factor. That caused jumping when activation distance became shorter than snapping distance. Fixed by removing activation distance and using same function which is used to evaluate snapping. Reviewer: Dalai Felinto Differential Revision: https://developer.blender.org/D10809
2021-03-26Compositor: Fix array out of bounds.Jeroen Bakker
2021-03-26Geometry Nodes: Add remaining operations to the Vector Math nodeLeon Leno
This patch adds support for the remaining operations of the Vector Math node within Geometry Nodes. While the operations are already available in the UI, they hadn't been implemented, yet. With this patch the node uses the implementation that was added for the Attribute Vector Math node - similar to how it's handled with the Math node and Attribute Math node. Differential Revision: https://developer.blender.org/D10650
2021-03-26UI: Use unified format for "Warning" in descriptionsYevgeny Makarov
Warnings in tooltips were using inconsistent formatting, some in parantheses, some not, some in caps, others not, some on new lines, some not, etc. This patch uses a consistent new line and no capitals for these cases. Differential Revision: https://developer.blender.org/D9904
2021-03-26Cleanup: Geometry Nodes: Allow using "Auto" domain to avoid adaptingHans Goudey
Now that we have `ATTR_DOMAIN_AUTO`, it makes sense to use it to skip automatic domain interpolation. This can make code that depends on the non-interpolated domain of the attribute a bit simpler.
2021-03-26LibOverride optimization; Do not compare bound box of objects.Bastien Montagne
This is runtime only data, no need to deal with it.
2021-03-26Fix T86942: GPencil does not export SVG or PDF in orthographic cameraAntonio Vazquez
The calculation of the 2D point was wrong when using orthographic mode. Also small cleanup in float3 variable. Differential Revision: https://developer.blender.org/D10828
2021-03-26Cleanup: Replace Methode Overloading With Default Value.Jeroen Bakker
2021-03-26Cleanup: Remove ptr For Owned Children.Jeroen Bakker
2021-03-26Cleanup: Replace std::vector With blender::Vector.Jeroen Bakker
2021-03-26Cleanup: Replaced Typedef Enum With Enum Class.Jeroen Bakker
2021-03-26Cleanup: Remove SocketReader.Jeroen Bakker
SocketReader was added as an easier to understand interface on top of the NodeOperation. It was implemented as a base class of the NodeOperation and adds an additional hierarchy level. Ths change replaces the abstract class with a typedef. In the end we want to remove the typedef but will wait for some new nodes before doing so.
2021-03-26Cleanup: Use Enum Class For PixelSampler.Jeroen Bakker
2021-03-26Cleanup: Replace std::vector with blender::Vector.Jeroen Bakker
2021-03-26LineArt: Fix unreported material user count error when apply modifierAntonio Vazquez
The number of users was 0 after applying the modifier.
2021-03-26FFmpeg: improve threading settingsRichard Antalik
Generalize threading settings in proxy building and use them for encoding and decoding in general. Check codec capabilities, prefer FF_THREAD_FRAME threading over FF_THREAD_SLICE and automatic thread count over setting it explicitly. ffmpeg-codecs man page suggests that threads option is global and used by codecs, that supports this option. Form some tests I have done, it seems that `av_dict_set_int(&codec_opts, "threads", BLI_system_thread_count(), 0)` has same effect as ``` pCodecCtx->thread_count = BLI_system_thread_count(); pCodecCtx->thread_type = FF_THREAD_FRAME; ``` Looking at `ff_frame_thread_encoder_init()` code, these cases are not equivalent. It is probably safer to leave threading setup on libavcodec than setting up each codec threading individually. From what I have read all over the internet, frame multithreading should be faster than slice multithreading. Slice multithreading is mainly used for low latency streaming. When running Blender with --debug-ffmpeg it complains about `pCodecCtx->thread_count = BLI_system_thread_count()` that using thread count above 16 is not recommended. Using too many threads can negatively affect image quality, but I am not sure if this is the case for decoding as well - see https://streaminglearningcenter.com/blogs/ffmpeg-command-threads-how-it-affects-quality-and-performance.html This is fine for proxies but may be undesirable for final renders. Number of threads is limited by image size, because of size of motion vectors, so if it is possible let libavcodec determine optimal thread count. Performance difference: Proxy building: None Playback speed: 2x better on 1920x1080 sample h264 file Scrubbing: Hard to quantify, but it's much more responsive Rendering speed: None on 1920x1080 sample h264 file, there is improvement with codecs that do support FF_THREAD_FRAME for encoding like MPNG Reviewed By: sergey Differential Revision: https://developer.blender.org/D10791
2021-03-26FFMPEG: refactor seekingRichard Antalik
Split seeking section of `ffmpeg_fetchibuf()` function into multiple smaller functions. Conditional statements are moved to own funtions with human readable names, so code flow is more clear. To remove one branch of seeking, first frame is now decoded by scanning, which will do only one iteration. So nothing has technically changed. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10638
2021-03-26Geometry Nodes: Add Attribute Clamp NodeCharlie Jolly
This adds a Clamp node for Geometry Nodes Attributes. Supports both Min-Max and Range clamp modes. Float, Vector, Color and Int data types supported. Reviewed By: HooglyBoogly, simonthommes Differential Revision: https://developer.blender.org/D10526
2021-03-26Cleanup: Replaced unneeded branch with assert.Jeroen Bakker
2021-03-26Cryptomatte: Fix error loading incomplete metadata.Jeroen Bakker
When rendering with cycles at some point the manifest is trimmed. This leads to incomplete/corrupted metadata. This patch will make sure that the manifest parser doesn't crash. This solved the issue when the manifest is trimmed at the start of a hash. Eg '"Name":"'.
2021-03-26Cleanup: Fix clang-tidy errors.Jeroen Bakker
2021-03-26UV: warn when unwrapping failsCampbell Barton
Report an error when unwrapping can't solve some UV islands, note that edge-seams may need to be set. Address T86936
2021-03-26Cleanup: spellingCampbell Barton
2021-03-26Geometry Nodes: Add Attribute Map Range NodeVictor-Louis De Gusseme
This commit adds a node with a "Map Range" operation for attributes just like the non-attribute version of the node. However, unlike the regular version of the node, it also supports operations on vectors. Differential Revision: https://developer.blender.org/D10344
2021-03-26Animation: action mirror RNA API using pose contentsCampbell Barton
This adds a new RNA method `Action.flip_with_pose(ob)` to flip the action channels that control a pose. The rest-pose is used to properly flip the bones transformation. This is useful as a way to flip actions used in pose libraries, so the same action need not be included for each side. Reviewed By: sybren Ref D10781