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-09-17Cleanup: use static assert to disable access to preferencesCampbell Barton
Prefer this over an unknown identifier as it gives a useful error.
2020-09-17Cleanup: Use enum instead of defines for panel runtime flagHans Goudey
Discovered an unused panel runtime flag as well, which this commit removes.
2020-09-17UI: only draw a single header in the header regionCampbell Barton
While this isn't an issue with the default configuration it's possible to register extra header types for a single region. In this case the first header-type to successfully poll is drawn without drawing other header types. This issue was raised by T60195.
2020-09-17Cleanup: Comment formatting in interface_panel.cHans Goudey
Also cleaned up some grammar and wording issues, and switched a case in an if statement to remove a double negative.
2020-09-17Fix T63651: ImagePreviewCollection.new,load don't work as documentedCampbell Barton
Update doc-strings, add note for why this decision was made.
2020-09-17Cleanup: warning (missing-braces)Campbell Barton
2020-09-17Fix: Text object custom profile bevel not written to fileHans Goudey
The CurveProfile struct was only being written to the file for regular curve objects. Caused by an incorrect merge of master before committing.
2020-09-16Fix T79523 Paint Cursor: Wide line not supported on OSXClément Foucault
This replace the use of GPU_line_width by the specialized GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR shader.
2020-09-16Fix T79315 Normals Overlays broken with hidden geometryClément Foucault
Was caused by non-initialized variables before a return inside the vertex shader.
2020-09-16Fix: Property search crashes searching enums with separatorsHans Goudey
2020-09-16Cleanup: silence [-Wmissing-braces] warning.Ankit Meel
Introduced in {rBd6525e8d133b787655bdb2c2fcef218591a457c3} Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix ``` source/blender/draw/engines/image/image_shader.c:46:13: warning: suggest braces around initialization of subobject [-Wmissing-braces] } e_data = {0}; /* Engine data */ ^ {} 1 warning generated. ``` Reviewed By: jbakker Differential Revision: https://developer.blender.org/D8873
2020-09-16Curves: Add custom profile bevel supportHans Goudey
This adds support for the same custom bevel profile widget used in the bevel tool and modifier to the geometry generation for curves. This is expecially useful for text and 2D curves with extrusion, as it works much better than a weld & bevel modifier combination. It can also be useful for adding quick detail to pipe-like objects. The curve holds the CurveProfile struct and a new "Bevel Mode" property decides which type of bevel to build, round, object, or custom profile. Although curves can already use another curve to make the bevel geometry, this is a quicker way, and it also defines the profile of just one corner of the bevel, so it isn't redundant. It's also nice to have the same custom profile functionality wherever there is bevel. Differential Revision: https://developer.blender.org/D8402
2020-09-16Fix tests after adding collection color taggingNathan Craddock
Fix a segfault caused by assuming all scenes have a master collection when applying versioning to old files.
2020-09-16Fix versioning code after FCurves versioning not executedJulian Eisel
There must not be any return directly in our versioning patches. It would return from the entire versioning function. Mistake in da95d1d851b4. As a result, when opening old files with animation data, the versioning for the new collection color tagging wouldn't run, and all collections would get the first color assigned.
2020-09-16Action Constraint: Add manual time factor input controlChris Clyne
Adds an optional slider to the action constraint so that it can be driven without a constraint target. This is very helpful for more complex rigging and mechanical rigs, as it means the action constraint can be controlled with a driver/custom property directly, currently if we want to use a driver to control it we must add a "dummy" bone/object inbetween to act as a control. Reviewed By: Sebastian Parborg, Sybren A. Stüvel, Demeter Dzadik, Julian Eisel Differential Revision: http://developer.blender.org/D8022
2020-09-16GPUDebug: Avoid using STREQ on StringRefClément Foucault
This might be dangerous because StringRef is not guaranteed to be null-terminated and STREQ assumes null termination.
2020-09-16Fix T78653 Workbench: Broken Depth of Field in Viewport (Mac OSX)Clément Foucault
The output layout was wrong and it's a mistery why it works on most implementations since it's clearly a wrong usage. Thanks @sebbas for helping narrowing down the issue.
2020-09-16Fix (unreported) buffer overflow in BLI_system_cpu_brand_string helper.Bastien Montagne
Since this buffer is used as an array of 12 32bits integers, and C++ string expect a NULL-terminated C-string, we need an extra char to ensure last one is always NULL. See D8906. Thanks to @brecht for noting this one too.
2020-09-16NLA: Always Show All StripsWayde Moss
Currently, it's difficult to use the NLA system for users who are only interested in using it as animation layers. Entering tweak mode hides strips which are not evaluated. If the user wanted to edit a different strip, they must exit tweak mode, look for the strip, select it then re-enter tweak mode. Solution: All strips are always shown. The user can now see the next strip they want to start editing. Reviewed By: Sybren, Sebastian Parborg Differential Revision: http://developer.blender.org/D7600
2020-09-16Fix: add versioning to fix incorrectly written customdataJacques Lucke
Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8903
2020-09-16Cleanup: use uint8_t for various flags in curvesJacques Lucke
Previously, it was kind of a mess. In different places it was using `char`, `short` and `int`. The changed properties are flags that are operated upon using bit operations. Therefore, the integer type should be unsigned. Since we only use 2 bits of these flags, `uint8_t` is large enough. Especially note the change I had to make in `RNA_define.h` to make this work. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8844
2020-09-16Fix: Showing Meta Data CrashJeroen Bakker
When Showing Meta data for an image where the buffer does not exist (missing file) it crashed. This patch removes the check on the image and only checks the availability of the buffer.
2020-09-16Fix T80800: Active UVMap DrawingJeroen Bakker
Regression introduced by D8234. In stead of using the active uv map, the render uv map was drawn. This change will use the active uv map.
2020-09-16Fix: create shallow copy of CustomData before writingJacques Lucke
CustomData_blend_write_prepare might modify the `CustomData` instance, making it invalid afterwards. It is not necessary to do this in other cases explicitly, because when writing shallow copies of ID data blocks are made.
2020-09-16Fix T80825: UV Editor UV GridJeroen Bakker
Regression introduced by D8234.
2020-09-16Cleanup: spellingCampbell Barton
2020-09-16Cleanup: use doxygen links to struct membersCampbell Barton
2020-09-16Cleanup: DNA_fluid_types: Add DNA member name before enum declarationsClément Foucault
2020-09-16Fix building with tests enabledClément Foucault
2020-09-16Bump file subversion after recent theme-related changesHans Goudey
2020-09-16UI: Add grid-related theme optionsRed Mser
This commit makes grid theming more consistent and capable by adding some new theme colors related to grid rendering. - Add grid theme color for node editor. `UI_view2d_multi_grid_draw` is called with TH_GRID instead of a shaded `TH_BACK`. Also color-blend `TH_NODE_GROUP`. - Make the movie clip editor's clip preview grid respect grid theme color (`ED_region_grid_draw` uses color-blended `TH_GRID`). - Add versioning code to allow fixing existing themes (the resulting themes should visually look the same as before) These changes did cause some inconsistencies in the movie clip editor, even after adjusting the themes accordingly: 1. The alpha slider of the grid color affects the background and not the grid lines themselves. 2. The grids used by graph and dopesheet mode could already be themed in the past. Now that the clip preview's grid can also be themed, two different modes share the same theme color. Differential Revision: https://developer.blender.org/D8699
2020-09-16GPUShader: Add meaningful debug names to builtin shadersClément Foucault
This makes the debugging easier.
2020-09-16GPU: Add debug groups inside selection codeClément Foucault
This makes the debugging easier.
2020-09-16GPU: Add debug groups inside wm_draw.cClément Foucault
This makes the debugging easier
2020-09-16GPUDebug: Add function to test if inside a debug groupClément Foucault
This is a nice way to check certain GPU codepaths only for some regions or callers paths.
2020-09-16Fix T80107 Selection: Regression in Box selectionClément Foucault
The Draw State now needs to be in sync with what the selection code set. We query the state just before locking it.
2020-09-16Fix T75061 Grease Pencil: MacOS: broken Gradient and TextureClément Foucault
There is a driver bug that makes all the end of the structure unreadable. Workaround this by just declaring a vec4 an unpacking manually.
2020-09-16Outliner: Modifier/constraint/shaderfx drag and drop operatorNathan Craddock
This adds an operator to allow drag and drop of modifiers, constraints, and shader effects within the outliner. Referred to as "data stack" in the code for simplicity. The following operations are allowed: * Reordering within an object or bone * Copying a single modifier/constraint/effect to another object or bone * Copying (linking) all modifiers/constraints/effects to another object or bone. This complements the recent work done for panel-based modifier layouts by allowing reordering in the outliner. It also makes it simple to copy a single modifier/constraint/effect to another object. Differential Revision: https://developer.blender.org/D8642
2020-09-16Modifiers: Add link and copy functionsNathan Craddock
Adds functions to copy a modifier between objects, and an ED_ level function for linking modifiers between objects. This will be used in outliner modifier drag and drop. These functions support both regular and grease pencil modifiers. Differential Revision: https://developer.blender.org/D8642
2020-09-16Constraints: Add link and copy functionsNathan Craddock
Add functions to copy a single constraint between objects or between bones, and another function to link constraints. This is in preparation for constraint drag and drop in the outliner. Differential Revision: https://developer.blender.org/D8642
2020-09-16Cleanup: Move notifiers to `move_to_index` functionsNathan Craddock
Move the notifiers and DEG tagging to the ED_* level functions for modifiers and gpencil shaderfx in preparation for outliner modifier and shaderfx drag and drop. No functional changes. Differential Revision: https://developer.blender.org/D8642
2020-09-16Cleanup: Extract editor function from constraint_move_to_index_execNathan Craddock
No functional changes. Move the constraint reordering logic into an ED_ level function to be used by outliner constraint drag and drop. Differential Revision: https://developer.blender.org/D8642
2020-09-16GPencil: Add link and copy functions for shaderfxNathan Craddock
Adds two functions: one to copy a shaderfx between two gpencil objects, and another to link all shaderfx between two gpencil objects. Added in preparation for outliner shaderfx drag and drop. Differential Revision: https://developer.blender.org/D8642
2020-09-16Cleanup: Separate BKE_object_link_modifiers into functionsNathan Craddock
No functional changes. Split the grease pencil and object copy logic into separate functions. This makes the code cleaner and prepares utility functions for outliner modiifier drag and drop. Differential Revision: https://developer.blender.org/D8642
2020-09-15Property Search: Properly set expansion for instanced panelsHans Goudey
Stack panels (for modifiers, etc..) also get their expansion from their associated list data. This means that property search expansion needs to properly update the list data, which can be accomplished by calling `set_panels_list_data_expand_flag`. This commit also moves this logic to `UI_panels_end`, where it fits better.
2020-09-15UI: Refactor some list panel expansion codeHans Goudey
This commit moves the "get panel expansion from list data" function to UI_panels_end, which is an improvement because it's more centralized.
2020-09-15Outliner: Hierarchy line drawingNathan Craddock
Adds a new hierarchy line that draws to the left of collections. If the collection is color tagged, then the hierarchy line is drawn in that color. This is useful to see the color tag of a collection that exceeds the vertical height of the outliner when expanded. This also modifies the object hierarchy line drawing to match the new collection hierarchy line, with no horizontal lines, and moved a unit to the left. Object lines are not drawn colored. Manifest Task: https://developer.blender.org/T77777 Differential Revision: https://developer.blender.org/D8622
2020-09-15Outliner: Draw colored collection iconsNathan Craddock
This replaces the collection icon with the filled collection icon. If the collection is color tagged, then the icon draws in the tagged color. Manifest Task: https://developer.blender.org/T77777 Differential Revision: https://developer.blender.org/D8622
2020-09-15Outliner: Set collection color tag operatorNathan Craddock
This adds a new operator to the outliner context menu. The collections context menu now shows inline icons to set the color tag for all selected collections. Manifest Task: https://developer.blender.org/T77777 Differential Revision: https://developer.blender.org/D8622
2020-09-15UI: Fix spacing of inline row icon buttonsNathan Craddock
A follow-up to rbe17df47303e1. Fix the horizontal spacing of aligned row icon buttons in menus.