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
2020-11-20Cleanup: rename do_sky argument to draw_backgroundCampbell Barton
This was leftover from Blender internal, follow the naming already used by the draw manager.
2020-11-20Cleanup: remove unused perspective argument to off-screen drawingCampbell Barton
Some callers were passing in dummy values, this can be accessed from `RegionView3D.is_persp` can be used to check this.
2020-11-20Cleanup: clang-formatCampbell Barton
2020-11-19Fix T82769: remove thread local data from PTCacheMemJacques Lucke
The issue was that the same point cache was read by multiple threads at the same time (the same object was evaluated for render and for the viewport). Both threads incremented PTCacheMem->cur which lead to the crash. The fix is to remove the PTCacheMem->cur and store it on the stack instead. This way every thread has its own cur. Reviewers: brecht Differential Revision: https://developer.blender.org/D9606
2020-11-19Fix lost node links when linked node group datablock is temporarily missingBrecht Van Lommel
Don't refresh the list of sockets, so that when the .blend file is restored the links remain valid. Also display such nodes in red to indicate an error, same as when the node type info is missing.
2020-11-19Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-19Fix T82540: Smart UV project ignores seamsCampbell Barton
The seam check was missed in 9296ba867462f7ff3c55bc0c9129af4121243bed which calculates islands from the BMesh.
2020-11-19Cleanup: refactor sequencer_edit.c fileRichard Antalik
Move RNA enums and utility functions closer to operator definition. No functional changes.
2020-11-19Cleanup: Animation, fix uninitialised variable in Euler filter codeSybren A. Stüvel
No functional changes.
2020-11-19Cleanup: Animation, refactor Euler filterSybren A. Stüvel
Split up the Euler filter function into two more functions. The Euler filter operator works in two stages (find channels that define the X/Y/Z Euler rotations, and perform filtering on those channels), and each stage now has its own function. This makes it clearer which data are used in which part of the code, and makes future improvements easier. No functional changes.
2020-11-19Cleanup: fix bad comment separatorSybren A. Stüvel
Replace `* /` with `*/` to actually end the comment. As it was, the code compiled but caused an "`/*` in comment" warning. No functional changes.
2020-11-19Merge remote-tracking branch 'origin/blender-v2.91-release'Dalai Felinto
2020-11-19Fix T82833: GreasePencil crash when changing to Vertex Color modeDalai Felinto
This is actually a user interface issue, introduced on 0688309988e5. but->tip is checked for NULL in other parts, and rightly so, since here it crashes Blender. On a side note I don't know how to reliably reproduce the original bug whose fix introduced this issue. That got on the way of seeing whether this is the correct fix, if it happens outside greasepencil operators. Maybe it is an operator that is missing a tooltip? Impossible to tell without more information from said commit. That said since this happened during the end of bcon3 and we are not in bcon4 I'm going ahead with this NULL check commit. Patch reviewed by Philipp Oeser and Sergey Sharybin.
2020-11-19Cleanup: split sequencer_edit.c fileRichard Antalik
Move proxy operator functions to own file. No functional changes.
2020-11-19VSE: Move split operator logic to module codeRichard Antalik
Code was rewritten to work on per-sequence basis returning reference to created strip. There should be no functional changes. Selection logic is left as is for now. I could simplify it, but it belongs to operator, not split logic. Reviewed By: sergey Differential Revision: developer.blender.org/D9592
2020-11-19Cleanup: Grammar: "Allow to" vs gerund missed in last commitHans Goudey
2020-11-19Cleanup: Grammar: "Allow to" vs gerundHans Goudey
In cases where "Allow" is followed by an infinitive, a noun needs to directly follow it. But it makes more sense to follow it with a gerund instead.
2020-11-18Fix: Sub-panel backdrop sometimes draws when closedHans Goudey
My last cleanup commit for this function missed this case. It likely happens because the panel's block size doesn't update properly somewhere. Short of investigating that right now, it makes sense to return early in this case anyway.
2020-11-18GPencil: Automerge last drawn stroke with previous strokesAntonio Vazquez
This option joins any stroke with an end near the actual stroke. Now it is not limited to the last stroke, any stroke in the same layer for the actual frame can be joined. The join can join two strokes drawing a third stroke. If the end and the start of the result stroke are very small, the stroke is changed to be cyclic automatically. There is a limit distance to join the stroke, if the distance is greater than this value, the strokes are not joined. Actually, a constant, threshold distance is used, but we could expose as a parameter in the UI in the future. The tool can be used with freehand drawing or with primitives. Note: Great part of the patch is just a refactor of the old code to make it accessible and to keep code organized. Reviewed By: mendio Maniphest Tasks: T82377 Differential Revision: https://developer.blender.org/D9440
2020-11-18Cleanup: Move function to proper sectionHans Goudey
2020-11-18UI Code Quality: Refactor panel drawing functionHans Goudey
The existing panel drawing function was a bit convoluted with dependent conditions in different scopes, redundant and unecessary computations, and un-helpful naming. This commit separates the function into two parts, the backdrop and the widgets. It also improves naming and uses const where possible, and in general cleans up the code. There are some slight visual changes, mostly with the placement of the drag icon, which moves a bit downward to be centered with the triangle icon. The black rectangle displayed while dragging is also removed.
2020-11-18Fix pin icon in Properties not right-aligned after zoomingJulian Eisel
The logic for separator-spacers (used here for right-alignment) didn't take region scaling into account. Usually that's not an issue because they are otherwise only used in headers which can't zoom.
2020-11-18Fix pin icon in Properties not right-aligned after zoomingJulian Eisel
The logic for separator-spacers (used here for right-alignment) didn't take region scaling into account. Usually that's not an issue because they are otherwise only used in headers which can't zoom.
2020-11-18Merge branch 'blender-v2.91-release'Nathan Craddock
2020-11-18Fix: Outliner hierarchy line width variationsNathan Craddock
During some operators like rotate in grease pencil edit mode the hierarchy lines in the outliner would draw twice as thick. Set the width before drawing the lines in the outliner. Differential Revision: https://developer.blender.org/D9589
2020-11-18Fix transform redo panel showing only the first custom orientationGermano Cavalcante
The error was introduced in rBf470a02afaea, but the problem is in `ED_transform_calc_orientation_from_type_ex`
2020-11-18Fix T82777: Some transform modes using incorrect default orientationGermano Cavalcante
Some modes were always using `"Global"` orientation as the default.
2020-11-18Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-18Fix T82800: Changing settings from a pie menu doesn't add undo stepsCampbell Barton
Pie menu had inconsistent behavior for dragging & releasing the key compared to clicking on the button. This was caused by the `onfree` argument being set to true, preventing the button from running callbacks such as setting up undo data & auto-keyframe This argument should only be used when freeing the button, set this to false as is done for regular menus.
2020-11-18Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-18Fix undo UI text containing shortcuts & newlinesCampbell Barton
- Shortcuts were being shown in the undo history. - Multi-line tool-tips now only use the first line.
2020-11-18Merge branch 'blender-v2.91-release'Nathan Craddock
2020-11-18Fix grease pencil draw mode icon color in outlinerNathan Craddock
ICON_GREASEPENCIL was defined as an object data icon when it was used as a mode icon. This caused it to draw green in the outliner.
2020-11-18Fix wrong grease pencil datablock icon in file browserNathan Craddock
The datablock shown in the file browser was the draw mode icon rather than the datablock icon.
2020-11-18Cleanup: remove break after return statementsCampbell Barton
2020-11-18Cleanup: clarify precedence of operationsCampbell Barton
2020-11-18Cleanup: 'false' use as NULL pointerCampbell Barton
2020-11-18Fix use of operator flag as booleanCampbell Barton
Error in cb9de95d61b32f90788875f20e046095bb6310ad
2020-11-18Cleanup: use descriptive argument name for uv parametrizerCampbell Barton
2020-11-17LibOverride: PointCache: Add UI feedback about need to enable Disk Cache.Bastien Montagne
Note that I chose to modify the label of the main `Bake` button instead of adding an extra label line, as that would disturb the UI in a annoying way.
2020-11-17Cleanup: Remove unecessary NULL checkHans Goudey
Panels for active uiBlocks always have a type, because the process that makes them uses the types. Add an assert just to make it clear that the assumption is purposeful.
2020-11-17Merge branch 'blender-v2.91-release'Hans Goudey
2020-11-17Fix T82341: Warning in terminal during property searchHans Goudey
After recent changes to the context panel layout (rB187cc5e26d28b1a8), there has been an error printed when running propery search: > Error: separator_spacer() not supported in popups. The layout code thinks it's drawing in a menu because region->visible isn't properly set for the other tab searches. This patch sets that field for the temporary searching region, but it also disables searching in the context breadcrumbs panel, because at best this will just give results for the names of the active object, etc. This isn't helpful since those labels are mostly in every tab anyway. Differential Revision: https://developer.blender.org/D9425
2020-11-17Fix T81227: Modifier menu and text switch placesJulian Eisel
Logic was incorrect, mistake in f3b8792b963b. Updated comment to make intent more clear. Same as fd78f8699e03, but needed conflict resolution as the panel-type flags where renamed in master.
2020-11-17Fix T81227: Modifier menu and text switch placesJulian Eisel
Logic was incorrect, mistake in f3b8792b963b. Updated comment to make intent more clear.
2020-11-17Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-17Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-17Fix T82637: pack UV islands fails with some non-manifold meshesCampbell Barton
Edges with 3 or more connected UV's caused UV pack to fail. Instead of using functions from uvedit_parametrizer.c which are intended specifically for ABF/LSCM unwrapping, use a simpler method for packing which stores arrays of BMesh faces.
2020-11-17BMesh: support for comparing loops when calculating face-groupsCampbell Barton
Add an optional callback to check source/destination loops for BM_mesh_calc_face_groups. This is needed so it can be used to calculate UV islands.
2020-11-17Merge branch 'blender-v2.91-release'Jeroen Bakker