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
path: root/source
AgeCommit message (Collapse)Author
2020-11-17Geometry Nodes: Update boilerplate code for attributesgeometry-nodes-attribute-nodesHans Goudey
2020-11-17Merge branch 'geometry-nodes' into geometry-nodes-attribute-nodesHans Goudey
2020-11-16Merge branch 'master' into geometry-nodesHans Goudey
2020-11-16UI: Remove X axis panel draggingHans Goudey
X axis panel dragging traces back to Blender versions before 2.5, where panels could be aligned horizontally. But for many years now panels have been vertically aligned. Considering this, keeping the X axis dragging around is a bit odd. It makes interaction confusing, or at least more complicated. It also looks bad, since any part of the panel outside the region is cropped. Differential Revision: https://developer.blender.org/D9549
2020-11-16Revert "RNA define: check and report invalid usages of ID pointers properties."Bastien Montagne
This reverts commit f39fbb3e604611b63c69661dd22ca987fb1d8791. Code is not valid, `DefRNA.laststruct` does not always point to the proper struct when defined from Python, need to be done differently.
2020-11-16Merge branch 'blender-v2.91-release'Hans Goudey
2020-11-16Fix T82439: Crash moving collections between scenesHans Goudey
The original code for viewlayer collection flag syncing across moves from D9158 didn't consider the case where the collection could no longer be found in its original view layer (moving a collections betwen scenes). The fix is to just check if the collection starts in the same scene as it will be moved to before trying to do the flag syncing. I thought about this for a while and tried a couple other solutions, but I couldn't come up with a proper way to support syncing the layer collection flags across scenes without making too many changes. Differential Revision: https://developer.blender.org/D9568
2020-11-16Fix broken pointcache on disk in some cases.Bastien Montagne
Root of the issue is that point caches are added to the object's list on-demand, which often ends up with them being added only during depsgraph evaluation, i.e. on COW objects. This could result in having 'orig' data caches with invalid/unset stack index at some points (e.g. when reading a file and applying liboverrides), leading to discarding valid existing disk cache files. Fact that one of those index is signed, and the other not, does not help... While this is very weak, fixing broken PointCache code is out of the scope of a bug fix, so this patch merely: * Simplifies and factorizes the code generating the 'extension' part of caches filenames; * Ensures `BKE_object_insert_ptcache` is called when needed so that we always have a valid stack index to generate that filename extension. This is only a bandaid, but it is simple and should be safe enough for now. Related to T82503.
2020-11-16Fix (unreported) potential buffer overflow in PointCache code.Bastien Montagne
2020-11-16RNA define: check and report invalid usages of ID pointers properties.Bastien Montagne
Some RNA structs, like operators or keymaps, are not allowed to have ID pointer properties. now this check will ignore those, and report an error message in the console. Related to T82597.
2020-11-16Merge remote-tracking branch 'origin/blender-v2.91-release'Sybren A. Stüvel
2020-11-16Fix T82519: Adding 2nd driver doesn't recalculateFabrício Luis
Remove `return` from for-loop which blocked the recalculation of driven values when it found the first driver. Reviewed By: sybren, sergey Differential Revision: https://developer.blender.org/D9515
2020-11-16Geometry Nodes: simplify GeometrySet ownership handlingJacques Lucke
Previously, GeometrySets and GeometryComponents has reference counters and could be shared. This commit changes it so that only GeometryComponents are shared. A GeometrySet is a fairly small type that is cheap to copy. A lot of code simplifies when we can assume that GeometrySet is cheap to copy.
2020-11-16Merge branch 'blender-v2.91-release'Robert Guetzkow
2020-11-16Fix T81271: Fix crash in BLI_gzopen on WindowsRobert Guetzkow
Previously the return value of `ufopen` wasn't checked and if it failed, `NULL` was passed into `fclose()` which resulted in a crash. This patch avoids this by returning from `BLI_gzopen` when the file cannot be created. Reviewed By: sebbas, iss Differential Revision: https://developer.blender.org/D9576
2020-11-16Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-16Fix T82460: Color Management Curves do not update when Image/UV EditorPhilipp Oeser
is present Caused by rB4212b6528afb. 'updateGLSLCurveMapping()' compares cacheIDs and in certain scenarios, these are the same when they should not. - whenever we had multiple viewports that are colormanaged with curvemappings this worked right (cacheIDs were different) - for example, this also worked right when the ImageEditor displays a Render Result or a Compositor Viewer - but it worked wrong when the Image Editor displays any other Image (or no Image at all) - it also worked right if there were multiple Image Editors [and one of them displays a Render Result e.g] Now why is this so? For comparison, the curve mapping's pointer/address is used. - update_glsl_display_processor frees the curve_mapping, see BKE_curvemapping_free(global_glsl_state.curve_mapping) - similar, update_glsl_display_processor creates a new curvemapping, see BKE_curvemapping_copy(view_settings->curve_mapping) - now for the situation that a viewport with curvemapping and a viewport without curvemapping is present and you make changes to the curvemapping the following happens: -- curve_mapping_settings->cache_id is set once [to the memory address of curvemapping before change] -- change happens -- viewport 1 frees curvemapping -- viewport 2 duplicates using BKE_curvemapping_copy, but this one gets the same address like before the change -- this means we have different data on the same address with the same cacheID... Solution: to really make the cache ID unique we can combine the pointer with its 'changed_timestamp' [which increases on every change]. Reviewers: jbakker Maniphest Tasks: T82460 Differential Revision: https://developer.blender.org/D9559
2020-11-16Merge remote-tracking branch 'origin/blender-v2.91-release'Sybren A. Stüvel
2020-11-16Fix T82740: Drivers on movie clip datablock crash on file openSybren A. Stüvel
Add call to `BKE_animdata_blend_read_data()` after remapping the MovieClip datablock address.
2020-11-16Geometry Nodes: Move GeometrySet classes to global namespaceJacques Lucke
Brecht and I decided to move the GeometrySet classes to the global namespace for now. This way we can use the same type in C and C++ and don't have to use reinterpret_cast as often.
2020-11-16Cleanup: clang-tidyCampbell Barton
2020-11-16Merge branch 'master' into geometry-nodesJacques Lucke
2020-11-16Fix T81817: use-after-free when trying to open file from splash screenJacques Lucke
The issues was that Blender was trying to refresh the splash screen region. However, opening the file browser closed the splash screen and freed the region. The fix is to simply not refresh the region. Has been approved in T81817.
2020-11-16Correct T82753 Fix from 979fe4f1be7d6fe65e52b3ab805ab061a92d1f03Campbell Barton
2020-11-16Fix T82753: Crash using add-object tool when gizmos are disabledCampbell Barton
2020-11-16Grease Pencil: adjust behavior of target object detectionCampbell Barton
First detect the other selected object, then check it can be written to. Otherwise the target object could be the first one found when looping over objects which is random from the user perspective. Move the type check to the operator, which also checks the data isn't library data which was being ignored.
2020-11-16Cleanup: spellingCampbell Barton
2020-11-16Cleanup: clang-formatCampbell Barton
2020-11-16Cleanup: split sequencer.c fileRichard Antalik
Move most functions into separate files. File sequencer.c is reserved for alloc, free and duplicating functions. There should be no functional changes.
2020-11-16Merge branch 'blender-v2.91-release'Howard Trickey
Bring in exact boolean fix.
2020-11-16Fix T82736, Exact Boolean fail with repeated subtraction of same object.Howard Trickey
Two problems were fixed. One, the code for dissolving vertices left a face around if dissolving a vertex would leave less than three vertices. Instead, the face should be deleted. Two, with transformations like "rotate 180 degrees", this should be no problem with exact, but the current transformation matrix has very small non-zero entries where it shouldn't. Cleaning the transformation matrix makes it more likely that user expectations about coplanar faces will be fulfilled.
2020-11-15Geometry Nodes: Improve node group output modifier errorHans Goudey
More than output for the modifier's node group is fine, because the node group may be used in other situations, but the modifier will not work if there is no geometry output socket.
2020-11-15Outliner: Fix memory errors in runtime dataNathan Craddock
Fix a heap-use-after-free when duplicating outliner editors, and fully free runtime data when freeing outliner editors.
2020-11-14Merge branch 'master' into geometry-nodesHans Goudey
2020-11-14GPencil: Missing initialization in previous commitAntonio Vazquez
2020-11-14GPencil: Cleanup clang formatAntonio Vazquez
2020-11-14GPencil: Fix unreported crash in some cases when duplicate a strokeAntonio Vazquez
Some pointers were not initialized.
2020-11-14GPencil: Fix callback parameter list errorAntonio Vazquez
In the previous commit the bGPDframe parameter was removed, but this parameter is required to keep the same function signature.
2020-11-14Merge branch 'blender-v2.91-release'Nathan Craddock
2020-11-14Collections: Prevent setting scene collection color tag from rnaNathan Craddock
It should not be possible to set the scene collection's color tag through rna. Also adds a missing notifier for setting the collection color tag from python.
2020-11-14UI: Remove remaining uses of old collection iconNathan Craddock
After rB452a1c7b3838 there were still a few cases where the old collection icon was used in the interface. Replace these with the new filled collection icon.
2020-11-14Empty Modifier: Fix build and put in the right orderDalai Felinto
Bypassing the macro that creates modifiers to allow the enum to be referring to the Empty modifier, but the internal struct in the code to be Nodes. Also fix the name of the new created modifiers to be "Empty". Fix was built with rBb458ea6b23381a9acb90dbbd73ced678e1d404c5.
2020-11-14Rename: "Nodes" modifier to "Empty" (take 2)Dalai Felinto
Leave the internal DNA data struct as "Nodes", and only rename the modifier and user interface to Empty. See 4a2734a835c10d5bffaaceddc59c for the original take and the reasoning for renaming from Nodes to Empty.
2020-11-14Revert "Rename: "Nodes" modifier to "Empty""Dalai Felinto
This reverts commit 4a2734a835c10d5bffaaceddc59c41837801f402. Reverting this so that all we change is the UI name, not the DNA struct and the internal variable names.
2020-11-14GPencil: Fix compiler warning, unused variableFalk David
2020-11-14Rename: "Nodes" modifier to "Empty"Dalai Felinto
This introduces a regression. Users need to re-create their modifiers and set their values again. The NodeGroups are intact so all they need is to create new "Empty" modifiers and set the node group. --- Original problem: Eventually most modifiers will be node-based, so naming this new modifier "Nodes" will get outdated pretty quickly. Calling it "Empty" it's fairly descriptive, since the node tree simply connects the modifier Input to an Output, without any effect. There is a potential problem, that it could be associated with the Empty object type. Like some sort of Hook. This is the task T82700, and the design task T82537.
2020-11-13GPencil: Merge GSoC curve edit modeFalk David
Differential Revision: https://developer.blender.org/D8660 This patch is the result of the GSoC 2020 "Editing Grease Pencil Strokes Using Curves" project. It adds a submode to greasepencil edit mode that allows for the transformation of greasepencil strokes using bezier curves. More information about the project can be found here: https://wiki.blender.org/wiki/User:Filedescriptor/GSoC_2020.
2020-11-13Cleanup: Make panel type flag names more clearHans Goudey
The overlap with the `Panel` flags that start with "PNL" was quite confusing because wasn't clear which enum a flag was from. The new names are a bit longer, but the clarity is worth it.
2020-11-13Cleanup: Move PanelType flag from DNA to BKE headerHans Goudey
Since this flag isn't saved in files and PanelType itself is defined in BKE, the flag makes more sense there.
2020-11-13Geometry Nodes: Improve error messages for property mismatchesHans Goudey
Related to T82438. This adds some basic checks for common errors and currently unsupported socket types in the modifier.