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-04-26Animation: Sensible frame range for motion pathsColin Marmond
Motion paths can now be initialised to more sensible frame ranges, rather than simply 1-250: - Scene Frame Range - Selected Keyframes - All Keyframes Reviewed By: sybren, looch, dfelinto, pablico Maniphest Tasks: T93047 Differential Revision: https://developer.blender.org/D13687
2022-04-26WM: disable redraw timer in background modeCampbell Barton
Crashing in background mode was reported as part of T78854, disable via the poll function to give a useful error in background mode.
2022-04-26Fix memory leak in Context.temp_overrideCampbell Barton
Add missing check as the context override dict may have been copied since it was assigned, also initialize the context manager with PyType_Ready, while it didn't cause any errors - it's expected that all types are initialized.
2022-04-26Correct over allocation in "Fix Vertex Group Deform" operatorCampbell Barton
The pointer size was incorrectly being used instead of the float size.
2022-04-26Cleanup: use boolean arguments and return valuesCampbell Barton
2022-04-26Cleanup: replace in-line swapping with SWAP macroCampbell Barton
Also use bool array for true/false values.
2022-04-26Cleanup: remove NULL check and outdated commentCampbell Barton
2022-04-26Cleanup: names in text functionsCampbell Barton
- Use filepath instead of file. - Use relbase instead of relpath. In both cases the new names are used more frequently throughout exiting functions.
2022-04-26PyAPI: support persistent handlers for class & static methodsCampbell Barton
Support methods being used as persistent callbacks. Resolves T97555.
2022-04-26Fix bone "auto-name by axis" failure to clip long namesCampbell Barton
Failure to clip automatic-names meant named could end with a "." for e.g. Error in [0] meant the clipped text was copied then immediately overwritten. [0]: 354e6b9c189bb6cea57577ba3a8e7fb7ca28a796
2022-04-26Fix string escaping in override versioning and modifier renamingCampbell Barton
2022-04-26Cleanup: unused return value warningCampbell Barton
2022-04-26Cleanup: simplify text copying string operationsCampbell Barton
- De-duplicate txt_new_linen & txt_new_line. - Don't accept NULL as input for txt_new_linen & txt_new_line (callers can pass in an empty string instead). - Avoid duplicate strlen calls in txt_new_linen. - Use memcpy when the length of the string is known in txt_delete_sel & BKE_text_load_ex.
2022-04-26Fix: Correctly copy and update curve type counts cacheHans Goudey
Missing from f431be224fa583743.
2022-04-26Fix T97595: Modifier attribute output broken for vertex groupsHans Goudey
`attribute_try_create` didn't understand that the vertex group attribute already existed because it only looks for names in custom data layers when the domain matches. Using `attribute_exists` unfortunately requires another loop through all attribute names, but that should be optimized separately in the future anyway. Differential Revision: https://developer.blender.org/D14756
2022-04-26Cleanup: Remove redundant vertex normal dirty tagsHans Goudey
Applying the coordinates already tags the normals dirty
2022-04-25Vertex Paint: Fix brush color spaceJoseph Eagar
The brush color wasn't being converted to scene linear space properly.
2022-04-25Cleanup: remove unused function parameterJoseph Eagar
2022-04-25Fix T81452: Incorrect trim lasso radiusJoseph Eagar
Added a fallback path to compute the cursor radius for when the stroke starts over a blank area of space (in which case SCULPT_cursor_geometry_update fails).
2022-04-25Mesh: Make vertex normal property read-onlyHans Goudey
This commit makes the `MeshVertex.normal` property read-only. In practice it already was, since the value could be overwritten at any time if code requests updated normals, so this just clarifies that position and avoids misleading users. Differential Revision: https://developer.blender.org/D14696
2022-04-25Fix: Incorrect implicit enum conversionHans Goudey
Hardcode Catmull Rom curves for now, since nothing else is implemented.
2022-04-25Geometry Nodes: Add "Named" to "Remove Attribute" node nameHans Goudey
The goal is to be consistent with the other two nodes that deal with named attributes. Ref T97512
2022-04-25Fix T97597: vertex paint initialization wasJoseph Eagar
called by weight paint mode, causing a crash
2022-04-25Fix T97553: SCULPT_handles_colors_report called for non-sculpt brushesJoseph Eagar
2022-04-25Sculpt: Remove hardcoded setting ofJoseph Eagar
auto-iteration property in mask filter Note: Auto-iteration is still set manually for increase/decrease contrast. These should probably become their own operators.
2022-04-25Fix T97423: Make mask filter less confusingJoseph Eagar
by showing redo panel. The A hotkey has "auto iteration" enabled by default, which calculates the number of times to run the filter using a heuristic based on vertex count. To make clear to the user what is going on the redo panel is now shown for the mask filter operator. NOTE: I discovered the source of the bug where sculpt operators' redo panels were greyed out. The name fed to SCULPT_undo_push_begin must match the operator name. I've added a comment in sculpt_intern explaining this.
2022-04-25Curves: Cache the number of curves of each typeHans Goudey
Remembering the number of curves of every type makes it fast to know whether processing specific to a single curve type has to be done. This information was accessed in quite a few places, so this should be an overall reduction in overhead for the new curves type. The cache is computed eagerly, in other words every time after changing the curve types. In order to reduce verbosity I added helper functions for some common ways to set the types. Differential Revision: https://developer.blender.org/D14732
2022-04-25Cleanup: Use const for smoot scrolling functionJulian Eisel
2022-04-25Transform Snap Refactor: dedicate ghash to different SnapData typesGermano Cavalcante
Changes: - Remove `BLI_memarena` (Use `MEM_cnew` and `MEM_delete` to allocate cached data) - Implement `snap_object_data_mesh_free_ensure` and `snap_object_data_editmesh_free_ensure` and skip need to get original key Object for editmesh data - Use `BMEditMesh` as key for editmesh `Ghash` - Make a better distinction between `SnapObjectData`s. (`SnapData_Mesh` and `SnapData_EditMesh`)
2022-04-25Cleanup: Turn some 'eTFlag' into macrosGermano Cavalcante
Some of the enum values are a mixture of others and make it difficult for the IDE to identify them. Separating these values makes debugging easier.
2022-04-25Fix T97401: Snap options ignored for Nurbs surfacesGermano Cavalcante
The editing data of a `SURF`s is similar to that of Curves and should be supported for snapping. But unlike Curve objects, for snapping, only support the nurb points if the object is in edit mode. This matches the solution for Meshes and avoids having to create a kind of "boundbox" for the SURF nurb points.
2022-04-25Nodes: show overlays in node editor even when nodes are collapsedJacques Lucke
2022-04-25Geometry Nodes: improve attribute dependency overlayJacques Lucke
* Adjust width based on node width, necessary to make the longer name below work. * Show "X Named Attributes" in the overlay. * Use "Accessed named attributes" in the tooltip. Differential Revision: https://developer.blender.org/D14751
2022-04-25Geometry Nodes: show timing overlay above attributes overlayJacques Lucke
2022-04-25Fix: use natural string sorting for attribute namesJacques Lucke
2022-04-25Cleanup: fix unused variable warning in `paint_vertex.cc`Sybren A. Stüvel
No functional changes.
2022-04-25Geometry Nodes: improve ui when trying to remove built-in attributesJacques Lucke
* If removing an attribute failed (even though it exists), don't log it as being used. * Make warning message a bit more informative. Differential Revision: https://developer.blender.org/D14750
2022-04-25Fix T96925: Fast diagonal movement in walk navigationPratik Borhade
View moves faster with two active directions. This is probably because `dvec` is not normalized when moving in two directions. Normalizing this direction vector will fix the problem. Differential Revision: https://developer.blender.org/D14729
2022-04-25Fix build error on Linux + Clang 10 after recent changes to BLI_anyBrecht Van Lommel
Differential Revision: https://developer.blender.org/D14749
2022-04-25Fix memory leak in cryptomatteSergey Sharybin
Since cbf033c0551 the `matte_id` will be allocated in the node storage for the forward compatibility purposes. However, this field was never freed, leading to memory leak. Causes annoying popup on macOS when running Cycles tests, for example render_passes_cryptomatte_asset.blend Differential Revision: https://developer.blender.org/D14728
2022-04-25BLI: optimize constructing new virtual arrayJacques Lucke
Differential Revision: https://developer.blender.org/D14745
2022-04-25Cleanup: spelling in commentsCampbell Barton
2022-04-25Cleanup: add missing doxy sections in customdataCampbell Barton
2022-04-25VSE: Update first thumbnail when moving handleRichard Antalik
When handles are moved, job is created only for strips that need to update first thumbnail. ref T91618
2022-04-24Cleanup: remove special cases for getting internal span or singleJacques Lucke
Those are handled in the called function already.
2022-04-24BLI: prioritize detecting single values higher than detecting spansJacques Lucke
In some contexts, single values can be handled more efficiently than spans.
2022-04-24Cleanup: various minor changesCampbell Barton
- Add missing doxy-section for Apply Parent Inverse Operator - Use identity for None comparison in Python. - Remove newline from operator doc-strings. - Use '*' prefix multi-line C comment blocks. - Separate filenames from doc-strings. - Remove break after return.
2022-04-24Cleanup: clang-formatCampbell Barton
2022-04-23Fix a failing bmesh_bevel test by fixing buffer overflow.Howard Trickey
The uv fix just submitted had a bug where I forgot to wrap around after adding 1. This apparently worked anyway in a debug build but not in release build, hence the buildbot tests were failing.
2022-04-23Bake: add UDIM tile baking supportBrecht Van Lommel
Works for both Cycles and multires bake. Triangles are baked to multiple UDIM images if they span across them, though such UV layouts are generally discouraged as there is no filtering across UDIM tiles. The bake margin currently only works within UDIM tiles. For the extend method this is logical, for the adjacent faces method it may be useful to support copying pixels from other UDIM tiles, though this seems somewhat complicated. Fixes T95190 Ref T72390