September 4, 2021, 13:41 (GMT) |
GPencil: Fix subdivision modifier disabled on strokes with 2 points Fixes the regression introduces in rB29f3af952725 . The subdivision modifier used to work on two point strokes with simple mode but not with catmul clark. Now it will work with simple mode and in case of catmull clark mode it will still use simple mode on these strokes. Differential Revision: https://developer.blender.org/D12397 |
September 4, 2021, 13:07 (GMT) |
BMesh: optimize edge & face group calculation This changes the search for unprocessed faces to only search from the previously found face. Local testing on 1.5 million triangle meshes gives a 75x speedup (of the code affected, which is the first half of the work). The former code would traverse all faces of a mesh until a face was found that had not been processed. This ended up being slow mainly because it had to load face-data to determine the state of the flag. Secondarily, the way it iterated and marked the mesh, it would end up traversing all previously processed faces to find and unprocessed one. The same optimization has been made for edge-group calculation. Reviewed By: campbellbarton Ref D12379 |
Revision e6194e7 by Campbell Barton September 4, 2021, 06:59 (GMT) |
RNA: support extracting names from paths without allocating memory Support extracting identifiers RNA paths into fixed size buffer since the maximum size of the identifier is known all cases. - Add BLI_str_unescape_ex to support limiting the destination buffer. - Add BLI_str_quoted_substr to copy values into a fixed size buffer. |
Revision 7166823 by Hans Goudey September 3, 2021, 21:49 (GMT) |
Fix T91119: Curve to mesh node inverted face normals Previously I thought I fixed this by reversing the face corner indices in quads created by the curve to mesh node. But then we fixed a problem with the transforms used in that node by inverting one of their components, so the required direction also reversed. This commit reverts rBcf28398471c84 and reverses the default direction of the quadrilateral primitive so it's the same as the others. Tests will be updated. |
Revision 4fb7217 by Jesse Yurkovich September 3, 2021, 20:03 (GMT) |
UDIM: Show the UV grid even when images are loaded Allow the UDIM grid to be shown and adjusted when there are images loaded in UV edit mode. Right now the grid feature disappears once an image is loaded and many have found this to be confusing. Based on community and artist feedback, there was support to change this behavior[1] This patch does the following: - Allows the grid to be shown even when images are present - The max allowable dimensions for the grid has been increased from 10x10 to 10x100 to match the underlying maximum UDIM range that blender supports Note: This should not affect other Image editor modes like Paint/Mask or the Render Result viewer etc. Future work in this area is currently documented in a dedicated design task[2] [1] https://devtalk.blender.org/t/the-udim-tile-grid-design-and-feedback-thread/20136 [2] https://developer.blender.org/T90913 Differential Revision: https://developer.blender.org/D11860 |
Revision 235655e by Philipp Oeser September 3, 2021, 15:16 (GMT) |
Improve message in ob_parbone() about the missing Parent Bone - lower to warning (might be debatable, but this is not really malfunctioning and e.g. constraints/modifiers dont spit out errors if targets are not specified) - clarify _what_ of the two actualy does not exist ref. T91101 Maniphest Tasks: T91101 Differential Revision: https://developer.blender.org/D12389 |
Revision a45dd52 by Philipp Oeser September 3, 2021, 15:15 (GMT) |
Depsgraph: skip parentbone relation if bone prop is empty Clearing the Parent Bone field in relations would result in something like this: ``` add_relation(Bone Parent) - Could not find op_from (ComponentKey(OBArmature, BONE)) add_relation(Bone Parent) - Failed, but op_to (ComponentKey(OBEmpty, TRANSFORM)) was ok ERROR (bke.object): /source/blender/blenkernel/internobject.c:3330 ob_parbone: Object Empty with Bone parent: bone doesn't exist ``` Now skip creation of a depsgraph relation if the Parent Bone field is empty (since this would be invalid anyways). ref. T91101 Maniphest Tasks: T91101 Differential Revision: https://developer.blender.org/D12389 |
September 3, 2021, 14:18 (GMT) |
Fix T88411: Draw frame node text when label is empty This patch fixes the issue described in T88411, that the text in frame nodes is only shown, when the node has a label. This has been caused by rB8f04ddbbc626, because `node_draw_frame_label` not only draws the label, but also all the other text. Therefore skipping it, when the label is empty, also skips drawing the other text. This is fixed by moving the check for the empty label into `node_frame_draw_label`. **Patch:** Frame nodes show text despite not having a label. {F10286204, size = full} **Same setup in master:** {F10128099, size = full} **Test file** {F10128102} Reviewed By: #user_interface, pablovazquez Maniphest Tasks: T88411 Differential Revision: https://developer.blender.org/D11315 |
Revision ae33453 by Antonio Vazquez September 3, 2021, 13:24 (GMT) |
GPencil: Smooth thickness when joining strokes When joining two strokes in paint mode using the auto merge option, the join was very hard if the thickness was too different. This patch adds a smooth to the join in order to get better transition. Also fixed the problem to join existing strokes very far from actual stroke. Some cleanup and rename of old code is included in order to make code more readable. Reviewed By: pepeland Differential Revision: https://developer.blender.org/D12362 |
Revision f9ccd26 by Campbell Barton September 3, 2021, 11:58 (GMT) |
Fix T87768: `.path_resolve` fails when requested property is None. Add a version of RNA_path_resolve_full that returns true when the path resolves to a NULL RNA pointer. |
Revision 0950cfd by Campbell Barton September 3, 2021, 11:21 (GMT) |
PyAPI: add read-only 'is_valid' attribute to mathutils types There was no convenient way to check if the owner of a mathutils type was valid. Added to support issue reported in T91111. |
Revision f530b43 by Antonio Vazquez September 3, 2021, 10:42 (GMT) |
Fix T91159: GPencil Smooth brush is using Affect Pressure but not used The parameter wa sin the UI but was not used because it was replaced by Use Thickness. |
Revision d97fd30 by Campbell Barton September 3, 2021, 10:35 (GMT) |
RNA: minor optimize for token extraction of RNA paths - Split rna_path_token in two, extracting bracket handling into it's own function. - Only handle escape characters for quoted tokens. Numbers were copied using BLI_str_unescape which is unnecessary. - Extract text without without quotes, use a return argument so the caller can tell if the token was quoted. This avoids having to strip the tokens quotes afterwards. |
Revision 671640b by Campbell Barton September 3, 2021, 09:42 (GMT) |
Cleanup: use bool for RNA path token extraction |
September 3, 2021, 08:45 (GMT) |
Cleanup: convert function nodes socket list to use new API The new API was introduced in rB1e69a25043120cc8dddc3f58622eb50e1443def1. Differential Revision: https://developer.blender.org/D12380 |
Revision 4a3243f by Campbell Barton September 3, 2021, 05:15 (GMT) |
Docs: add note to skip_fcurve_selected_data sequence strip check Without an explanation the sequencer logic looked wrong since other selection checks don't skip data that can't be found. |
Revision 6fc92b2 by Antonio Vazquez September 2, 2021, 14:26 (GMT) |
GPencil: Change default Scale Thickness to True in 2D template This parameter is more logic as true because is better scale thickness when the size of the stroke changes. Reviewed by: @mendio @pepeland |
Revision 8849bed by Germano Cavalcante September 2, 2021, 13:19 (GMT) |
Revert "PyAPI: GPU Shader: add 'state' parameter to uniform sampler" This reverts commit 2aad8fc7bc2a45d5f749430c7cb9b82b9f6c9e49. It was a commit without proper review. A better API needs to be discussed. |
Revision 546314f by Bastien Montagne September 2, 2021, 12:56 (GMT) |
Build utils: `make_update`: Add option to choose SVN branch. Needed for studio sprite-fright frozen branch. Also do not overwrite branch for git sub-modules when it is defined, and fallback to `master` branch in case specified branch is not found in a specific sub-repository. |
Revision 799a2b0 by Sergey Sharybin September 2, 2021, 07:28 (GMT) |
Fix possible missing render result with `update_result` Need to ensure render result's pixels are allocated prior to merge. Differential Revision: https://developer.blender.org/D12371 |
|