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-08-20fix extrude nodeJacques Lucke
2021-08-20Geometry Nodes: add missing versioning for subdivision surface nodeJacques Lucke
This was missing from rBfecec1644ce54ea386eaeed5ca6748d4a7b2737b.
2021-08-20Cleanup: remove duplicate lineJacques Lucke
2021-08-20Functions: add utility methods to parameter builderJacques Lucke
2021-08-20Functions: add clear method to vector arrayJacques Lucke
2021-08-20BLI: add utility methods to IndexMaskJacques Lucke
2021-08-20Cleanup: Add CLOG to wm_files_link.cBastien Montagne
2021-08-20Cleanup: use "free_data" suffix when the argument isn't freedCampbell Barton
Avoid API misuse that caused leaks in T90791 & 2788b0261cb7d33a2f6f2978ff4f55bb4987edae.
2021-08-20Cleanup: rename BKE_mesh_free_data -> BKE_mesh_free_data_for_undoCampbell Barton
This function only makes sense for undo which doesn't initialize the meshes ID. Otherwise BKE_id_free should be used.
2021-08-20Cleanup: remove BKE_mesh_free_data use for lineart mesh copiesCampbell Barton
Even though this didn't leak memory, BKE_mesh_free_data doesn't handle freeing data that is part of the ID making it error prone.
2021-08-20Cleanup: accidentally included printfCampbell Barton
2021-08-20Fix memory leak with building springs in the cloth simulatorCampbell Barton
Error in 2788b0261cb7d33a2f6f2978ff4f55bb4987edae.
2021-08-20Fix T90791: Knife project leaks memory with curve/text cutterCampbell Barton
2021-08-20Cleanup: rename BKE_mesh_free -> BKE_mesh_free_dataCampbell Barton
It wasn't obvious this didn't free the memory of the mesh it's self leading to memory leaks.
2021-08-20Cleanup: unused warningsCampbell Barton
2021-08-20Cleanup: clang-formatJesse Yurkovich
2021-08-20Alembic Procedural: only subdivide if subsurf modifier is presentKévin Dietrich
As subdivision objects are first class citizens in Alembic, to differentiate them with non-subdivided polygon meshes, the Alembic Procedural automatically sets up subdivision properties on the generated Cycles Mesh. However, for real-time playback subdivision is far too slow, so this modifies the detection of a MeshSeqCache modifier used to activate the procedural to allow for a Subsurf modifier right after the cache one. If present, the procedural will tag the object for subdivision, if absent, the object will be treated as a regular mesh. This is a temporary measure for until subdivision surface settings are part of the Mesh datablock (see T68891). Reviewed By: brecht Differential Revision: https://developer.blender.org/D11162
2021-08-20Cleanup, formatKévin Dietrich
2021-08-19Cycles: missing case for ignoring subdivision vertex normalsKévin Dietrich
This was missing from rBb8ecdbcd964a.
2021-08-19Fix T90776: Cycles normal map node produces artifactsKévin Dietrich
This is caused by a typo in rBb8ecdbcd964a `sd->prim` is the primitive index, but was used to discriminate the primitive type (stored in `sd- >type`).
2021-08-19UI: Use theme's alpha for Summary instead of a hardcoded valuePablo Vazquez
2021-08-19Fix error rendering Cycles shader nodes from before 2013Brecht Van Lommel
After the recent changes to use socket identifiers instead of names.
2021-08-19GPencil: Cleanup old printf debug linesAntonio Vazquez
These lines were very old debug code and now it's not required because the code is very tested.
2021-08-19Image blendwrite: Fix handling of packedfiles.Bastien Montagne
Packedfiles need some special attention when writing Image to disk. Source: D12242, Jeroen Bakker (@jbakker), thanks.
2021-08-19Partially fix T90593: Image ID wrongly seen as changed on undos.Bastien Montagne
Several pure runtime data in this ID type were not properly cleared by write/read processes. Note that the initial undo step (the one leading back to initial read file state) is still forcing re-load of image, for some reasons. Common investigation together with Jeroen Bakker (@jbakker), thanks. See also D12242.
2021-08-19Fix Python error in ./benchmark init after recent changesBrecht Van Lommel
2021-08-19UI: Match row color for Summary in Mask animation editorAntonio Vazquez
The back color of the row was missing.
2021-08-19GPencil: Match row color for Summary in Grease Pencil animation editorAntonio Vazquez
The background of the summary row was different in Grease Pencil mode. Reviewed by: Pablo Vazquez, Matias Mendiola
2021-08-19Fix the value in the graphical editor header when transformingGermano Cavalcante
The header did not display the actual value when transforming with snapping
2021-08-19Fix T87173: wrong Auto-Snap in animation editorsGermano Cavalcante
This was partially broken with {rBde9ea94fc6f}. The `Frame Step` and `Second Step` snapping options were working as if they were `Nearest Frame` and `Nearest Second` respectively in the `Dope Sheet` and `NLA` editors. In the `Graph Editor` the problem was more serious: "Second Step: ... The keyframe itself moves along as though in snapping were active at all, while its handles 'stay behind' until it reaches the next second boundary, at which point the teleport handles to 'catch up'". The snapping code for these modes was spread across the transform mode code and `recalcData` of each data type. Therefore, create a unified snapping code for these options so that all issues are fixed in one place. Differetial Revision: https://developer.blender.org/D12241
2021-08-19Transform Convert Action: conventionalize TransData creationGermano Cavalcante
`td2d->loc`, `td2d->loc2d`, `td->loc` and `td->iloc` were not being initialized as is done with the other conversion types. This avoids problems with transform modes becoming incompatible. This avoids problems with incompatible transform modes that could result in a crash.
2021-08-19Fix incremental snap in animation editorsGermano Cavalcante
Animation editors have their own snap types and incremental is not supported.
2021-08-19Cleanup: move animation snap utilities to a separate compilation unitGermano Cavalcante
The snap functions of animation editors were scattered in `transform_mode` and `transform_snap`.
2021-08-19Undo: Clear more ID runtime data on filewrite.Bastien Montagne
This should help reducing false 'changed' status detection when reading back a memfile undo step. Related to T90593 & D12242.
2021-08-19Cleanup: Blendwrite: Move code deciding if an ID should be written out of ID ↵Bastien Montagne
callbacks. This was not really useful, and added estra useless steps in case and ID should not actually be written. Further more, it prevented clearing the usercount on write, which can be cause a false positive 'chanhged' detection in undo/redo case.
2021-08-19LibOverride: Tag all embedded IDs RNA opinters as overridablei, part II.Bastien Montagne
Not sure how I failed to include those files in rBe5f8db92b696...
2021-08-19Cycles: experimental integration of Alembic procedural in viewport renderingKévin Dietrich
This patch exposes the Cycles Alembic Procedural through the MeshSequenceCache modifier in order to use and test it from Blender. To enable it, one has to switch the render feature set to experimental and activate the Procedural in the modifier. An Alembic Procedural is then created for each CacheFile from Blender set to use the Procedural, and each Blender object having a MeshSequenceCache modifier is added to list of objects of the right procedural. The procedural's parameters derive from the CacheFile's properties which are already exposed in the UI through the modifier, although more Cycles specific options might be added in the future. As there is currently no cache controls and since we load all the data at the beginning of the render session, the procedural is only available during viewport renders at the moment. When an Alembic procedural is rendered, data from the archive are not read on the Blender side. If a Cycles render is not active and the CacheFile is set to use the Cycles Procedural, bounding boxes are used to display the objects in the scene as a signal that the objects are not processed by Blender anymore. This is standard in other DCCs. However this does not reduce the memory usage from Blender as the Alembic data was already loaded either during an import or during a .blend file read. This is mostly a hack to test the Cycles Alembic procedural until we have a better Blender side mechanism for letting renderers load their own geometry, which will be based on import and export settings on Collections (T68933). Ref T79174, D3089 Reviewed By: brecht, sybren Maniphest Tasks: T79174 Differential Revision: https://developer.blender.org/D10197
2021-08-19Alembic import: option to always add a cache readerKévin Dietrich
The current behavior of the Alembic importer is to only create a `MeshSequenceCache` modifier or a `Transform Cache` constraint to imported objects if they have some animated properties. Since static objects do not have a cache reader, when reloading files those objects are not updated. Currently, the only way to properly reload a file because of this is to reimport it. This adds an option to the importer to always add a cache reader, even if there is no animated data, to ensure that all objects coming from Alembic archive are linked to them and updated properly upon reloads. Reviewed by: brecht, sybren Ref D10197.
2021-08-19Correct assert from 22ab0159a9754365e2d10a1bc658d4409d084fa6Campbell Barton
2021-08-19Fix T71137: curve minimum twist producing wrong geometryCampbell Barton
Originally D11886 by @ghaspias with minor edits applied.
2021-08-19Refactor: BLF Without Kerning ModesHarley Acheson
Simplification of BLF code after removal of kerning modes. See D12262 for more details. Differential Revision: https://developer.blender.org/D12262 Reviewed by Campbell Barton
2021-08-19Cleanup: correction to unused warning removalCampbell Barton
This broke building without opensubdiv
2021-08-19UI: add function to access the buttons text without it's shortcutCampbell Barton
2021-08-19Cleanup: reduce indentation in loops that check region visibilityCampbell Barton
2021-08-19UI: Remove "Unfitted" Kerning Style OptionHarley Acheson
This patch removes the "Kerning Style" option for UI widget font drawing and uses only the current default of "Fitted", since the other option of "Unfitted" is just the result of truncation errors. see D12231 for much more information. Differential Revision: https://developer.blender.org/D12231 Reviewed by Campbell Barton
2021-08-19Cleanup: unused warningCampbell Barton
2021-08-18Audaspace: porting PulseAudio fixes from upstream.Jörg Müller
2021-08-18Alembic procedural: remove Generated attribute creationKévin Dietrich
The main reason for this is to speed up updates by avoid unnecessary copies as the Generated coordinates are a copy of the vertices. Creating this attribute may become optional in the future, with UI parameters to select which attribute to use from the Alembic archive as reference.
2021-08-18Cycles: use object coordinates when generated coordinates are missingKévin Dietrich
This modifies the attribute lookup to use object coordinates if no generated coordinates are found on the geometry. This is useful to avoid creating and copying this attribute, thus saving a bit of time and memory. Reviewed By: brecht Differential Revision: https://developer.blender.org/D12238
2021-08-18Cycles: avoid copying vertex normals attribute twice to the devicesKévin Dietrich
Vertex normals are needed for normals maps and therefore are packed and send to the device alongside the other float3 attributes. However, we already pack and send vertex normals through `DeviceScene.tri_vnormal`. This removes the packing of vertex normals from the attributes buffer, and reuses `tri_vnormal` in the kernel for normals lookup for normal maps, which reduces memory usage a bit, and speeds up device updates. This also fixes potential missing normals updates following rB12a06292af86, since the need for vertex normals for normals maps was overlooked. Reviewed By: brecht Differential Revision: https://developer.blender.org/D12237