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-23LibOverride: Also consider RNA Collection in 'need resync' detection.Bastien Montagne
RNA collections can store lists of ID pointers, so they require a similar handling for RNA pointers.
2021-03-23Cleanup: remove internal functions from interface.Jeroen Bakker
2021-03-23Compositor: Display generated inputs in Viewers and PreviewsManuel Castilla
Currently viewers and previews only display node trees that have at least one node with fixed resolution size. When all inputs are generated, nothing is displayed in most cases (RGB Node is displayed as a single pixel on previews). By generated I mean inputs not having resolution on their own, they create content dynamically given an output resolution. This patch adds support for those cases by using an appropriate preferred resolution on Viewers/Previews which propagates to generated inputs as output resolution. Now: - Viewers will display generated inputs with scene render resolution. - Previews will display them with scene aspect ratio. This is consistent with final render result and respects relative space. The benefit for the user is being able to compose images without any input source. For example for creating mask images or simple backgrounds. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D10611
2021-03-23Cleanup: Silence compile warning.Jeroen Bakker
2021-03-23Cleanup: remove unused include.Jeroen Bakker
2021-03-23RNA: support automatically mapping string property to char pointerJacques Lucke
The goal of this patch is to remove the boilerplate code required to get a string property that maps to an allocated char pointer in dna. Previously, one to to provide three callbacks, all of which are not necessary anymore for a simple string property. Currently, when an empty string is assigned, the `set` function will always allocate it as well, instead of assigning `NULL` to the pointer. Some structs might support `NULL` while others don't, so this is the safer option for now. Differential Revision: https://developer.blender.org/D10773
2021-03-23VSE: Sanitize move_to_meta usageRichard Antalik
There were multiple cases that could lead to problems like moving meta strip into itself or into it's children meta strips. Print error string to console when invalid action is requested.
2021-03-23Nodes: Add Refract and Faceforward functions to Vector Maths nodesCharlie Jolly
Cycles, Eevee, OSL, Geo, Attribute Based on outdated refract patch D6619 by @cubic_sloth `refract` and `faceforward` are standard functions in GLSL, OSL and Godot shader languages. Adding these functions provides Blender shader artists access to these standard functions. Reviewed By: brecht Differential Revision: https://developer.blender.org/D10622
2021-03-23Cryptomatte: Node Size.Jeroen Bakker
Made it just a bit smaller (same size as renderlayers node).
2021-03-23Spreadsheet: show comma separators in number of rowsJacques Lucke
2021-03-23Cryptomatte: Default Node Size.Jeroen Bakker
Set the min/max and default node size of the cryptomatte node.
2021-03-23Geometry Nodes: show domain in attribute fill nodeJacques Lucke
Differential Revision: https://developer.blender.org/D10789
2021-03-23Curves: add taper mode optionOmar Emara
Currently, when a taper object is specified, the radius of the spline is ignored. This patch adds a new option to control how the taper object affect the effective radius of the spline. The option allow three modes of operation: - Override: The old method. The radius of the spline is ignored and overridden. - Multiply: The radius of the spline is multiplied by the taper radius. - Add: The radius of the spline is added to the taper radius. Ref D10779
2021-03-23FIX: Incorrect link drawing after link cutting toolFabian Schempp
Sorting of links on multi-input sockets where not recalculated after using the knife operator. Added call to resort function before cutting operator finishes. Reviewer: Jacques Lucke Differential Revision: https://developer.blender.org/D10783
2021-03-23Cleanup/CMake: Fix comment, sort order of options.Ankit Meel
2021-03-23Fix error in clip.setup_tracking_scene with cyclesCampbell Barton
Regression in e9182a0f5d0b1700e4bcdc11d0110ba7e9b97a0c
2021-03-23Cleanup: unused variables, importsCampbell Barton
2021-03-23Cleanup: single quotes for Python enums, spellingCampbell Barton
2021-03-23Cleanup: import operator class directly for Python operatorsCampbell Barton
2021-03-23Fix sequencer text leaving bold & italic flags enabledCampbell Barton
Regression in 913b71bb8be9b40da9c0f0cd21016c784a56dc18
2021-03-23Fix crash transforming sequencesCampbell Barton
Regression in 3d9ee83d88186248fb66823662a04d1a0429e1ae
2021-03-23Update RNA to Manual MapAaron Carlisle
2021-03-23Cleanup: de-duplicate gpencil logic to ensure materialsCampbell Barton
- Rename: `BKE_gpencil_object_material_get_index_name`, to `BKE_gpencil_object_material_index_get_by_name` Matching `BKE_gpencil_layer_get_by_name`. - Move logic to ensure named materials into a new function: `BKE_gpencil_object_material_ensure_by_name`
2021-03-23Fix incorrect flag usage in line art modifierCampbell Barton
2021-03-23Cleanup: use `e` prefix for enum, comment on misleading flag valuesCampbell Barton
Also replace "Feature" with "LineArt" in enum names.
2021-03-23Cleanup: move line art panel into properties_objectsCampbell Barton
No need for a module to define a single panel, since this is an object panel it can be included with other object panels. If centralizing line-art properties is needed in the future, this can be done in a `*_common` module.
2021-03-23WM: don't set the area when toggling full-screenCampbell Barton
The stated reason for this no longer applies.
2021-03-23RNA: correction to a05cbc9914a76fa50c8367262dff507506e26c66Campbell Barton
The clipping plane bias is an implementation detail, don't use this in the RNA name.
2021-03-22Cleanup: lattices, use `bool is_editmode` instead of `int editmode`Sybren A. Stüvel
Replace `int editmode` with `const bool is_editmode`. No functional changes.
2021-03-22Fix T86822: context.collection not available in Object/Object Data PropertiesSebastian Parborg
We need to return the global context collection if it is not found in the data path. Also fix pinning of the collection tab.
2021-03-22Fix T83638: mirror modifier with mirror object renders wrong motion blurJishan Singh
In this case both the mirror object and object itself moving in time may change the geometry and must be checked. Differential Revision: https://developer.blender.org/D10757
2021-03-22Functions: devirtualize virtual arrays in simple functionsJacques Lucke
In some multi-functions (such as a simple add function), the virtual method call overhead to access array elements adds significant overhead. For these simple functions it makes sense to generate optimized versions for different types of virtual arrays. This is done by giving the compiler all the information it needs to devirtualize virtual arrays. In my benchmark this speeds up processing a lot of data with small function 2-3x. This devirtualization should not be done for larger functions, because it increases compile time and binary size, while providing a negilible performance benefit.
2021-03-22Cleanup: Collection check return type in button_contextSebastian Parborg
2021-03-22Geometry Nodes: Remove location and rotation from mesh primitivesHans Goudey
Following some discussion among the geometry nodes team, it was decided that keeping the primitive nodes simpler and requiring a separate transform node to move the generated geometry from the origin would be better. - It's more consistent with the current general idea of "building block nodes" - It makes more sense for the future when it will be possible to use instancing to control the transforms. - It reduces UI clutter when the controls are not necessary.
2021-03-22BLI: Add "identity" constructor to float4x4 typeHans Goudey
2021-03-22Fix T86666: Lasso and Circle select tools selecting objects behind clip_minGermano Cavalcante
Although it works well in most cases, the algorithm to detect if a point is within the limits of the camera does not work well in othographic mode. This commit also adds the option `V3D_PROJ_TEST_CLIP_FAR` (currently unused). Differential Revision: https://developer.blender.org/D10771
2021-03-22Tracking: Fix movie file prefetch freezing interfaceSergey Sharybin
The issue was caused by the prefetch code having LOCK_MOVIECLIP lock acquired while reading frames from the movie files. The need of the lock was coming from the fact that `clip->anim` can not be accessed from multiple threads, so that was guarded by a lock. The side effect of this lock was that the main thread (from which drawing is happening) did not have any chance passing through it in the cache code because the prefetch happens so quickly. The solution is to create a local copy of the clip with its own anim handler, so that read can happen without such lock. The prefetch is slower by an absolute number in seconds (within 10% in tests here), but it is interactive now.
2021-03-22Fix missing document icons on macOS 10.4 and earlierJohannes Jakob
Re-adds a legacy document icon for macOS 10.14 Mojave that is consistent with the system generated document icon on macOS 11 Big Sur. It uses the old-style document sheet icon, but includes the file extension underneath the Blender icon (unlike the previous legacy document icon that was removed in D10267). Adds the missing description for the exported type identifier. Finder now correctly displays “Blender File” instead of “data” for Blender files. Differential Revision: https://developer.blender.org/D10746
2021-03-22Fix build error on macOS/clangBrecht Van Lommel
2021-03-22GPencil: Hide Interpolate Only Selected in Draw ModeAntonio Vazquez
This option is only valid in Edit mode. Also changed the space between options to improve UI. Reviewed by: @mendio
2021-03-22GPencil: Move Automerge button position in topbarAntonio Vazquez
This helps to keep animation buttons grouped.
2021-03-22Fix T86591: Tracking backwards is slowerSergey Sharybin
The root of the issue was caused by the PredictMarkerPosition() always returning false when tracking backwards. This was making it so tracker always had to run brute initialization, which is an expensive operation. From own timing here: - Tracking forward takes 0.667637 seconds - Tracking backward used to take 2.591856 seconds - Tracking backward now takes 0.827724 seconds This is a very nice speedup, although the tracking backwards is still somewhat slower. Will be investigated further as part of a regular development.
2021-03-22Fix T86741: Remapping could create doublons of collections in hierarchy.Bastien Montagne
Code rebuilding/ensuring the sanity of the collection hierarchy was not checking for a same collection being child of the same parent multiple times. This was already prevented to happen in code adding collections to other collections, but not for the remapping case.
2021-03-22Fix (unreported) memleak in collection/viewlayer code.Bastien Montagne
In collection/viewlayer synchronization code, in some cases, there are extra unused view layer collections left in old list after all needed ones have been moved to the new list. Found while working on T86741.
2021-03-22Fix: wrong use of assert in recent commit.Jeroen Bakker
2021-03-22UI: Remove text for add and remove buttons in cryptomatte nodeHans Goudey
The text is unecessary and it's always cut off anyway.
2021-03-22Cleanup: remove unexposed nodesJacques Lucke
Those nodes are leftovers from my work on particle nodes and are not needed currently. They can be added back easily if they become necessary.
2021-03-22Geometry Nodes: make random float node more consistent with other nodesJacques Lucke
Previously, different Random Float nodes would generate different values depending on where they are in the node group hierarchy. This can be useful, but should definitely not be the default behavior, because it is very inconsistent with other nodes.
2021-03-22Functions: make multi functions smaller and cheaper to construct in many casesJacques Lucke
Previously, the signature of a `MultiFunction` was always embedded into the function. There are two issues with that. First, `MFSignature` is relatively large, because it contains multiple strings and vectors. Secondly, constructing it can add overhead that should not be necessary, because often the same signature can be reused. The solution is to only keep a pointer to a signature in `MultiFunction` that is set during construction. Child classes are responsible for making sure that the signature lives long enough. In most cases, the signature is either embedded into the child class or it is allocated statically (and is only created once).
2021-03-22Fix regression in bd7969159997b8802d54e79a002350a7fb97944dCampbell Barton
The sequencer header needs to be drawn, even if the returned variables aren't used.