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-04-17Cleanup: quiet compiler warning on macosJacques Lucke
2021-04-17Fix wrong logic used in 'ED_view3d_depth_read_cached'Germano Cavalcante
It is important to limit the pixels read on `BLI_array_iter_spiral_square`. Fortunately `ED_view3d_depth_read_cached` was not being called with a `margin` parameter. Wrong logic introduced in rB44c76e4ce310.
2021-04-17Fix T87321: GPencil Arrange strokes not consistent with industry standardsAntonio Vazquez
Now if one stroke in the extremes of the stack is selected, other strokes are moved. Reviewed By: pepeland, Dantti Maniphest Tasks: T87321 Differential Revision: https://developer.blender.org/D10997
2021-04-16Fix T87555: Incorrect view transform default in startup fileHans Goudey
This was another error in rBac90c8a7743f. It turns out it's quite important to use a full build to save the file, which I didn't do then.
2021-04-16GPencil: Remove Grease Pencil menu options in UV editorAntonio Vazquez
Differential Revision: https://developer.blender.org/D10993
2021-04-16Fix T87010: VSE: adding strips crashes in certain filesPhilipp Oeser
Caused by {rB571362642201} where versioning code for new sequencer tool settings was only done for scenes already having sequencer scene->ed. If scene->ed was not present, sequencer tool settings were never initalized for this scene [if the VSE was then used later], leading to crashes in some places. Now just use the versioning code to initalize sequencer tool settings for all scenes not having them yet. Maniphest Tasks: T87010 Differential Revision: https://developer.blender.org/D10996
2021-04-16Fix missing owner_id values from 919558854d624f5db40acfa9f5674ac8c94873b6Campbell Barton
This prevented dynamic enum callbacks being called.
2021-04-16WM: remove redundant click-drag offset for gizmo highlight checkingCampbell Barton
Tweak and click-drag events already apply this offset, this was a no-op.
2021-04-16WM: prevent drag events being continually testedCampbell Barton
Click-drag events that weren't handled would continually be tested for each mouse-motion event. As well as being redundant, this added the overhead of querying gizmos twice per motion event. Now click-drag is only tested once when the drag threshold is reached. This mitigates T87511, although the single drag test still causes the snap gizmo to flicker.
2021-04-16Cleanup: clang-formatCampbell Barton
2021-04-16Fix BLO_library_temp_load_id loading temporary ID's into G.mainCampbell Barton
The intention with this API function was to temporarily load ID's tagged LIB_TAG_TEMP_MAIN, however the way the `real_main` was used, these ID's were loaded into the G.main.
2021-04-16Fix T87522: frame selected does not take instances into accountJacques Lucke
`ob->runtime.geometry_set_eval` can contain instances as well. This only affected instances generated by geometry nodes. We should probably have a separate function that tells us if an object has instances or not..
2021-04-16Fix unreported: instances disappear when instanced mesh is in edit modeJacques Lucke
The issue is that for historic reasons, `geometry_set_eval` does not contain the mesh component when the object is in edit mode.
2021-04-16Remove unneeded code from previous commit.Jeroen Bakker
2021-04-16Fix OCIO Shader Compilation Error.Jeroen Bakker
Compilation fails when our OCIO wrapper creates a shader that transfer first to scene ref and directly after that to display. This cause is that the GPU resources of both transfers had the same name. This is fixed by prefixing the resources. This can be reproduced by loading a movie file (mkv) in the VSE editor. Reported by Sergey Sharybin.
2021-04-16Fix T87169: support attribute search on group nodesJacques Lucke
2021-04-16Fix T87217: improve impact of seed in point distribute nodeJacques Lucke
Incrementing the seed just by one did not mix things up enough.
2021-04-16Fix T87359: set group output in geometry node tree update callbackWannes Malfait
This also fixes T85511. Differential Revision: https://developer.blender.org/D10970
2021-04-16Fix T87441: don't remove custom attributes automaticallyJacques Lucke
In the past, custom attributes were rarely used in practice, because the only way to use them was from Python. Since geometry nodes, more users started to add their own attributes. Those attributes should not be removed automatically. It is still possible to remove them in geometry nodes explictly to improve performance.
2021-04-16Fix T85691: attributes used by geometry nodes were removed automaticallyJacques Lucke
This has technically been fixed by rB3e87d8a4315d794efff659e40f0bb9e34e2aec8a, but the fix there is questionable, because it disables an optimization for vertex groups entirely. This fix is a little bit more precise in that it only disables the optimization when the object is used by some geometry nodes modifier.
2021-04-16Fix T65064: Keymaps items controlling dynamic enums fail to exportCampbell Barton
Keymap UI and import/export could depend on the current context for dynamic enum's. Use STRUCT_NO_CONTEXT_WITHOUT_OWNER_ID for OperatorProperties.
2021-04-16RNA: add STRUCT_NO_CONTEXT_WITHOUT_OWNER_ID flagCampbell Barton
This flag is needed so PointerRNA structs that aren't part of the current context can access enum values without inspecting the context. This is needed for keymap access, so the keymap UI and keymap export doesn't depend on the current context.
2021-04-16Fix RNA enum item callbacks not checking for NULL contextCampbell Barton
The NULL context is used to extract items for document generation.
2021-04-16Snap Gizmo: Minor optimization in detecting toggle inversionGermano Cavalcante
Do not compare the x and y values of the mouse to check inversion. Also remove "Lazy Initialization".
2021-04-15GPencil: Avoid invisible strokes in PDF exportAntonio Vazquez
There were still some invisible strokes.
2021-04-15Cleanup: Use correct float formatAntonio Vazquez
2021-04-15RNA: Silence warning when building without audaspaceDalai Felinto
`make lite` does not use audaspace, so some files will pollute the console with tons of warnings about audio values not defined. Reviewed By: nexyon, campbellbarton Differential Revision: https://developer.blender.org/D10981
2021-04-15GPencil: Fix unreported error exporting big files in PDFAntonio Vazquez
The exporting was creating a pdf state for each stroke, but this was necessary only for strokes with opacity. Now, the state is only created when needed and remove the state variable from class. Also, avoid exporting invisible strokes.
2021-04-15Fix text in startup file python consoleHans Goudey
This was a mistake in rBac90c8a7743f6d0
2021-04-15Blender 2.93 splascreenDalai Felinto
Credit: Erindale Woodford - youtube.com/erindale / twitter.com/erindale_xyz
2021-04-15Blender 2.93 bcon3 (beta) version bumpDalai Felinto
2021-04-15Bump subversion before starting the next release cycleDalai Felinto
2021-04-15UI: Rename itmes in point cloud add attribute menuHans Goudey
Since these were added, we decided that builtin and reserved name attributes start with a lowercase letter. We also use "id" already in a few nodes, so this change will be consistent with that.
2021-04-15GPencil: Change UI text and tooltipAntonio Vazquez
The text was not changed in the refactor and had the old text.
2021-04-15Fix T87434: spreadsheet shows same column more than onceJacques Lucke
2021-04-15Fix T87171: Update multi input socket indicesFabian Schempp
When inserting a node on top of a link, the multi input socket indices weren't updated. This fixes that and keeps the relative order of the links the same. Author: Wannes Malfait Reviewed By: Fabian Schempp Differential Revision: https://developer.blender.org/D10969
2021-04-15Geometry Nodes: refactor implicit conversionsJacques Lucke
This refactor simplifies having standalone function pointer that does a single conversion. It also speeds up implicit type conversion of attributes.
2021-04-15Fix T87356 & T87358: Small multi-input socket issuesFabian Schempp
T87356 occured because last_node_hovered_while_dragging_a_link was not set on node_link_init. The assert in T87358 failed because the sorting operation was called even if the drag link contained a link to another socket. A little one frame jump was caused because frame was refreshed after picking a link and before sorting happened. Reviewer: Hans Goudey Differential Revision: https://developer.blender.org/D10940
2021-04-15Cleanup: rename fileJacques Lucke
Internally we use the name "context (path)" instead of "breadcrumb". This was missing from a rename in the original patch.
2021-04-15Cleanup: move type conversions to separate fileJacques Lucke
2021-04-15Spreadsheet: breadcrumbs and node pinningJacques Lucke
This introduces a context path to the spreadsheet editor, which contains information about what data is shown in the spreadsheet. The context path (breadcrumbs) can reference a specific node in a node group hierarchy. During object evaluation, the geometry nodes modifier checks what data is currently requested by visible spreadsheets and stores the corresponding geometry sets separately for later access. The context path can be updated by the user explicitely, by clicking on the new icon in the header of nodes. Under some circumstances, the context path is updated automatically based on Blender's context. This patch also consolidates the "Node" and "Final" object evaluation mode to just "Evaluated". Based on the current context path, either the final geometry set of an object will be displayed, or the data at a specific node. The new preview icon in geometry nodes now behaves more like a toggle. It can be clicked again to clear the context path in an open spreadsheet editor. Previously, only an object could be pinned in the spreadsheet editor. Now it is possible to pin the entire context path. That allows two different spreadsheets to display geometry data from two different nodes. The breadcrumbs in the spreadsheet header can be collapsed by clicking on the arrow icons. It's not ideal but works well for now. This might be changed again, if we get a data set region on the left. Differential Revision: https://developer.blender.org/D10931
2021-04-15Fix missing NULL checks in adb21faa83d69069418d7bb14e0211261072f3a9Campbell Barton
2021-04-15Fix T70286: Dissolve vertices/edges creates duplicate faceCampbell Barton
2021-04-14CMake/deps: Remove CPP11 option for OpenImageIOSebastián Barschkis
This flag is obsolete. In its current state (missing -D) it also results in a CMake unknown argument error on macOS.
2021-04-14Geometry Nodes: Realize instances when applying modifiersHans Goudey
The fact that geometry from instnances isn't realized when applying a nodes modifier can be very confusing, especially for new users. Nodes themselves realize geometry instances implicitly whenever they need to. We also currently make instances real and convert points to mesh when a modifier is added after the nodes modifier. With this commit, we simply do the same thing when applying the modifier. There are a few downsides though: - This can be an extremely heavy operations in some cases where geometry nodes is used to instance heavy geometry. - We will still have the issues with materials, since instances use materials from their original objects, but real geometry uses materials from the modifier object. It was decided to live with the potential performance downsides for now, the idea is the upsides of the change are more important, and people making complicated setups will be more likely to know not to apply the modifier. In the future there could be a warning if it's necessary though. Ref T87083
2021-04-14UI: Add a workspace for geometry nodes in the default startup fileHans Goudey
This will hopefully make it faster to start using the node editor. The workspace also includes the spreadsheet. Note that while existing startup files won't have this workspace added, it will be in the list of options when clicking on the "add workspace" button. Ref T86499
2021-04-14GPencil: Invert color offsetting for Single and Object modeAntonio Vazquez
Now, instead to offset the stroke color to make it visible over fill, the stroke keeps the original color and the fill is offset. Related to the issue in T87406.
2021-04-14Fix T87406: Stroke color when using object color modeFalk David
The color of the strokes was shifted when using `Single Color` or `Object Color`in Solid Display Mode. This was originally done so that it was still possible to differentiate strokes and fills. The fix allows for a completly flat shading by checking if the Lighting Mode is set to `Flat`. If it is, then the colors are not shifted for the strokes and everything will use the same color. Reviewed By: antoniov, fclem Maniphest Tasks: T87406 Differential Revision: https://developer.blender.org/D10957
2021-04-14Geometry Nodes: Add domain and data type to attribute searchHans Goudey
This patch adds domain and data type information to each row of the attribute search menu. The data type is displayed on the right, just like how the list is exposed for the existing point cloud and hair attribute panels. The domain is exposed on the left like the menu hierarchy from menu search. For the implementation, the attribute hint information is stored as a set instead of a multi-value map so that every item (which we need to point to descretely in the search process) contains the necessary data type and domain information by itself. We also need to allocate a new struct for every button, which requires a change to allow passing a newly allocated argument to search buttons. Note that the search does't yet handle the case where there are two attributes with the same name but different domains or data types in the input geometry set. That will be handled as a separate improvement. Differential Revision: https://developer.blender.org/D10623
2021-04-14UI: 2D Animation: Fix Labelling issue within the 'Cursor' dropdownAdrian Newton
Within the 2D Animation workspace, the 'Cursor' dropdown currently displays the 'Display Cursor' incorrectly aligned. This change fixes the alignment issue. Reviewed By: #user_interface, #grease_pencil, antoniov Differential Revision: https://developer.blender.org/D10614