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
2020-12-10Attribute Compare: Use the most complex data type instead of the leastgeometry-nodes-point-separate-nodeHans Goudey
2020-12-10Optimize comparisons by squaring threshold firstHans Goudey
2020-12-10Merge branch 'master' into geometry-nodes-point-separate-nodeHans Goudey
2020-12-10Geometry Nodes: Attribute Fill NodeHans Goudey
This commit adds a node that fills every element of an attribute with the same value. Currently it supports float, vector, and color attributes. An immediate use case is for "billboard" scattering. Currently people are using the same input to a Random Attribute node's min and max input to fill every element of a vector with the same value, which is an unintuitive way to accomplish the same thing. Differential Revision: https://developer.blender.org/D9790
2020-12-10Geometry Nodes: rename modifyPointCloud to modifyGeometrySetJacques Lucke
Since the initial merge of the geometry nodes project, the modifyPointCloud function already was already modifying a geometry set. The function wasn't renamed back then, because then the merge would have touched many more files. Ref T83357.
2020-12-10Fix T83361: UV Editor does not draw pinned selected UVs as pinnedPhilipp Oeser
Caused by rB4212b6528af. outlineColor is computed by the vertex shader, so not a uniform. So outlineColor was undefined. note: it was still possible to run into the situation that a selected UV is drawn ontop of a selected pinned UV [you had to disable sticky selection for this], now also make sure selected-pinned are drawn topmost, then selected, then unselected UVs. Maniphest Tasks: T83361 Differential Revision: https://developer.blender.org/D9786
2020-12-10Geometry Nodes: fix recursive instance transformsJacques Lucke
Previously, the transformation of recursive instances did not work as on would expect. Second-level instances would detach from first-level instances when the object was moved.
2020-12-10Fix missing custom-property escaping for whole-character keying setCampbell Barton
Custom properties with characters that needed escaping had f-curves created with invalid paths.
2020-12-10Fix missing string escaping in RNA_path_appendCampbell Barton
This was escaping the '[' character, which isn't needed for quoted text.
2020-12-10Tests: fix 'ctest -j' running multiple tests at onceCampbell Barton
bl_blendfile_io & bl_blendfile_liblink shared a filename, which could make these tests fail.
2020-12-10Cleanup: remove unused function bc_find_bonename_in_pathCampbell Barton
2020-12-10BLI_string: return NULL from BLI_str_quoted_substrN on failureCampbell Barton
This was returning an empty allocated string, however almost all callers checked if the return value was NULL before freeing, making for misunderstandings on the intended use of this function. BCAnimationSampler::initialize_curves for example detected the f-curves animation type to 'bone' based on a non-NULL return value which never failed. Also fixes two leaks where the the result of BLI_str_quoted_substrN wasn't freed.
2020-12-10Fix BLI_str_quoted_substrN use with escaped stringsCampbell Barton
BLI_str_quoted_substrN didn't unescape the resulting string, yet all callers were using this with animation paths which are created using BLI_str_escape(). - Fix BLI_str_quoted_substrN use with escaped strings by calling BLI_str_unescape(). Note that it's possible we want an a version of this function that keeps escape characters. This could be added if it's required. - Fix end quote detection using BLI_str_escape_find_quote checking for `\"` isn't reliable since an even number of back-slashes before a quote means it's not escaped.
2020-12-10BLI_string: extract quote utility into BLI_str_escape_find_quoteCampbell Barton
Duplicate logic for this exists in BLI_str_quoted_substrN, which doesn't properly support escaping.
2020-12-10Cleanup: remove unnecessary vars in RNA token readingCampbell Barton
2020-12-10Cleanup: declare variables when used (RNA)Campbell Barton
2020-12-10Cleanup: declare variables when used (bpy)Campbell Barton
2020-12-10Cleanup: avoid '_ln' suffixCampbell Barton
Use '_len' or '_line_number'.
2020-12-10Cleanup: use snake-case instead of camel-caseCampbell Barton
2020-12-10PyAPI: add bpy.utils.unescape_identifierCampbell Barton
Utility to perform the reverse of `bpy.utils.escape_identifier`
2020-12-10RNA: use BLI_str_unescape utility for parsing escaped stringsCampbell Barton
2020-12-10BLI_string: support escaping additional control characterCampbell Barton
Add support for escaping \a, \b & \f for completeness, currently it's not required.
2020-12-10BLI_string: add BLI_str_unescape utility functionCampbell Barton
Performs the reverse of BLI_str_escape. This allows logic to be removed from RNA path handling.
2020-12-10Fix BLI_str_escape with control characters, add unit testsCampbell Barton
2020-12-10Cleanup: rename BLI_strescape to BLI_str_escapeCampbell Barton
Prepare for `BLI_str_unescape` which doesn't read well without the separator.
2020-12-10Fix T82852: Cycles crashes when editing a mesh with adaptive subdivisionKévin Dietrich
The issue is caused by stale data on the Mesh Node which is not cleared during synchronizing since the socket API refactor so that we can detect changes. However, synchronization only updates the sockets of the Mesh, so other properties were left with outdated values. This caused an underflow when computing attribute size for undisplaced coordinates as it was using the current number of vertices minus the previous count of subdivision vertices, which at this point should be 0. Added a simple method to clear non socket data. Also modified Mesh.add_undisplaced to always use an ATTR_PRIM_GEOMETRY as the data is not subdivided yet and it avoids any further issues regarding computing attribute sizes.
2020-12-10Cleanup: Use const for filter queriesJulian Eisel
2020-12-10Geometry Nodes: Support equality operations with all data typesHans Goudey
Testing equality of vectors can't be done properly if they are implicitly converted to float before-hand. This adds a lot of boilerplate code to the node, maybe that can made more elegant in the future, but it's not so complicated anyway.
2020-12-10Geometry Nodes: Add a method to find the lowest complexity attributeHans Goudey
For the attribute comparison node, it makes sense to read both input attributes implicitly converted to the same data type. But the choice of which of the two data types to read with is somewhat arbitrary. This commit adds a utility function to choose the least "complex" data type as a lowest common denominator, to make that choice less arbitrary , and to support other needs in the future.
2020-12-10Geometry Nodes: Add utilities for getting an attribute's data typeHans Goudey
With the previous helper function in this file you had to know the data type you wanted for the input attribute before requesting it. This adds another utility function for getting the data type without building the attribute. The attribute's can be requested later after doing some logic to figure out the right data type to read. No functional changes in this commit.
2020-12-10Sculpt: Elastic deform type for Snake HookPablo Dobarro
This adds deformation types to snake hook and the elastic deformation type. This mode deforms the mesh using a kelvinlet instead of applying the displacement directly inside the brush radius, which is great for stylized shapes sketching. Changes in rake rotation when using elastic are too strong when set to 1, so I'll add a nicer way to support rake rotations with smoother transitions in the future. Reviewed By: sergey, JulienKaspar Differential Revision: https://developer.blender.org/D9560
2020-12-10Cleanup: Remove unused c popup menu for text editorAaron Carlisle
This code hase been usused for 10 years and the right click menu is now in python.
2020-12-09Fix T82242: creating particle influence textures does not set up DEGPhilipp Oeser
relation immediately Texture and ParticleSettings have a DEG relation, but `DEG_relations_tag_update` was not called when the texture changed. This lead to no updates when e.g. texture size changes, relation only went into full effect after save/reload or adding/removing keyframes. Two places were additional relation tagging is needed: - ParticleSettings `active_texture` changes - ParticleSettingsTextureSlot (basically any TextureSlots') texture changes Maniphest Tasks: T82242 Differential Revision: https://developer.blender.org/D9393
2020-12-09UI: Update theme to match Shader nodes category color with socket colorPablo Vazquez
The change to match socket color and category was already done, but it was missing versioning code to update the theme on load. Fixes T83500 (already closed as invalid, but this would solve the non-matching colors) Reviewed by Hans Goudey (HooglyBoogly)
2020-12-09Use new get_input_attribute abstractionHans Goudey
2020-12-09Fix T83581: "Only local" ambient occlusion option causes error on OptiX 2.92Patrick Mours
The SVM AO node calls "scene_intersect_local" with a NULL pointer for the intersection information, which caused a crash with OptiX since it was not checking for this case and always dereferencing this pointer. This fixes that by checking whether any hit information was requested first (like is done in the BVH2 intersection routines).
2020-12-09Merge branch 'master' into geometry-nodes-point-separate-nodeHans Goudey
2020-12-09Support meshes in addition to point cloudsHans Goudey
2020-12-09Cleanup: various clang tidy fixesJacques Lucke
2020-12-09Geometry Nodes: simplify supporting different input socket types for attributesJacques Lucke
This is a non-functional change. The functionality introduced in this commit is not used in master yet. It is used by nodes that are being developed in other branches though.
2020-12-09Use text for comparison RNA enum itemsHans Goudey
2020-12-09Fix T83575: GPencil: VFX Blur is not disabled when samples are zeroAntonio Vazquez
Before the number of samples was not checked, only the pixel size.
2020-12-09Merge branch 'master' into geometry-nodes-point-separate-nodeHans Goudey
2020-12-09Fix T83588: Crash with Shrink/Fatten and Offset EvenGermano Cavalcante
`t->keymap` can be `NULL`. Bug introduced in rBc822f66bb83
2020-12-09Fix T83460: Regression in snap for measure toolGermano Cavalcante
Now the gizmo is drawn only when the eventstate located in `wm->winactive->eventstate` has not changed. So it doesn't matter if it's "selected" or not. This commit also removes the use of the private header "wm.h" Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9539
2020-12-09Degraded AMD 20.11.3 driver to limited support.Jeroen Bakker
2020-12-09Workaround for Access Violation startup crash on deprecated Radeon GPUs on ↵Jeroen Bakker
Windows This is a workaround for T80804. There's a startup crash that happens on 2.91.0 on Windows, an `EXCEPTION_ACCESS_VIOLATION` on `atio6axx.dll`. It is triggered by `glClear` on the `detect_mip_render_workaround` function. The workaround moves the function after the device/driver workaround section and sets the flag to the affected one to avoid running the check. It is deprecated hardware that has not meet the minimum requirements since 2.79, but is still usable and this extends its usability a bit before the cards are finally blacklisted. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D9667
2020-12-09Raised AMD/Terascale2 from unsupported to supported.Jeroen Bakker
There is a patch that fixes the crash on startup {D9667}.
2020-12-09Raised AMD CEDAR on Linux from unsupported to limited supportJeroen Bakker
There is a workaround available by setting the environment variable `R600_DEBUG=nosb`.
2020-12-09Blender LTS: Download + Release notes CMS scriptsJeroen Bakker
This patch contains 2 scripts that will help with LTS releases create_download_urls.py This python script is used to generate the download urls which we can copy-paste directly into the CMS of www.blender.org. Usage: create_download_urls.py --version 2.83.7 Arguments: --version VERSION Version string in the form of {major}.{minor}.{build} (eg 2.83.7) The resulting html will be printed to the console. create_release_notes.py ======================= This python script is used to generate the release notes which we can copy-paste directly into the CMS of www.blender.org and stores. Usage: ./create_release_notes.py --task=T77348 --version=2.83.7 Arguments: --version VERSION Version string in the form of {major}.{minor}.{build} (e.g. 2.83.7) --task TASK Phabricator ticket that is contains the release notes information (e.g. T77348) --format FORMAT Format the result in `text`, `steam`, `wiki` or `html` Requirements ============ * Python 3.8 or later * Python phabricator client version 0.7.0 https://pypi.org/project/phabricator/ For convenience the python modules can be installed using pip. pip3 install -r ./requirements.txt Differential Revision: https://developer.blender.org/D9055