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-08-28Cleanup 'make vertex parent' operator code.Bastien Montagne
More localized variables, avoid ugly 'offset by one' index usage in favor of explicit `INDEX_UNSET` define, etc. No behavior change expected from this commit.
2020-08-28Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-28Fix T80135: Duplicate doesn't preserve active splineCampbell Barton
Checks to preserve the active spline on duplication required an active vertex too. Now having no active vertex doesn't prevent duplicate from keeping the spline active. Reviewed by: @mano-wii Ref D8729
2020-08-28Cleanup: use doxy sections in interface_panels.cCampbell Barton
2020-08-28Cleanup: spellingCampbell Barton
2020-08-28Fix (unreported): Walk expansion on scene collectionNathan Craddock
Left walk navigation while the scene collection is active would collapse the subtree which shouldn't be allowed. This adds another check to `outliner_item_openclose` to prevent collapsing the scene collection. Introduced in rBb077de086e14.
2020-08-28Fix: Outliner walk navigation in Data API modeNathan Craddock
Because the subtrees in Data API mode are empty for performance reasons, it was impossible to move through the tree with walk navigation. This adds an exception to allow walk navigation to expand subtrees in that mode.
2020-08-27Fix T80159: Custom Normals Averaging crash after clearingPhilipp Oeser
custom split normals data Clearing custom split normals would get rid of the CD_CUSTOMLOOPNORMAL layer - but editing data `lnor_spacearr` would be kept. Adding a CD_CUSTOMLOOPNORMAL layer (if none exists yet) should be done in `edbm_average_normals_exec` / `BKE_editmesh_lnorspace_update` / `BM_lnorspace_update` / `BM_lnorspacearr_store`. The thing is that if the editing data `lnor_spacearr` would still be valid after `Clear Custom Split Normals Data`, blender would happily call `BM_lnorspace_rebuild` instead. Doing that without a CD_CUSTOMLOOPNORMAL layer is asking for trouble. Now clear lnor_spacearr on `Clear Custom Split Normals Data` as well. Thx @mont29 for feedback here. Maniphest Tasks: T80159 Differential Revision: https://developer.blender.org/D8730
2020-08-27UI: Avoid redundant loops in region panel handlerHans Goudey
Currently the panel handler loops through every block and every button for every single panel. This commit moves that check to happen a single time at the beginning.
2020-08-27Fix T68317: Panel "A" key doesn't collapse subpanels properlyHans Goudey
We need to only collapse or expand the first panel under the cursor rather than all of them. Note that whether the parent panel or the subpanel is first depends on the order of the uiBlocks in the region's list.
2020-08-27UI: Cleanup / refactor region panel event handlingHans Goudey
The code for handling panel events was much more complicated than it needed to be. This commit removes some unecessary function calls and variables, reduces indentation levels by returning early, and does some other general cleanup.
2020-08-27GPencil: Don't convert color to sRGBAntonio Vazquez
The color is linear, so the conversion is breaking the real color.
2020-08-27Fix T77382: zooming into adjust last operation panel clips contentsBrecht Van Lommel
This panel should not have zoom functionality at all, just like headers and many other regions don't have it either.
2020-08-27Cleanup: Move panel category drawing to proper sectionHans Goudey
Somehow the panel category drawing functions ended up in the middle of the region event handling code. This commit moves them to their own section next to the rest of the drawing code.
2020-08-27Fix Outliner allowing to enter Pose Mode on linked armatureJulian Eisel
If a different object was active, clicking on a linked armature's pose in the Outliner would enter Pose Mode for it. This would actually cause a failed assert, but in release builds the armature would just enter pose mode. Steps to reproduce were: * Link in armature object * Activate a different object * In the Outliner, un-collapse the armature object * Activate Pose Mode by clicking on its pose there
2020-08-27Fix crash of alembic tests after recent depsgraph builder changeSergey Sharybin
Need to make sure node factories are initialized prior to the dependency graph allocation. The regression was initially introduced in 5b021dff4136 Thanks Brecht for testing!
2020-08-27Cleanup: clang-formatCampbell Barton
2020-08-27Fix (unreported): Outliner Data API tree subtree expansionNathan Craddock
The changes in rB70151e41dc02 broke subtree expansion in the Data API display mode because the closed subtrees are empty lists. Move the empty subtree check from `outliner_item_openclose` to the walk navigation code to prevent the issue.
2020-08-27Cleanup: Fix build warning with MSVCRay Molenkamp
`IDTypeForeachCacheFunctionCallback` lists the `flags` parameter as `uint`, having these functions use `eIDTypeInfoCacheCallbackFlags` results in the following warning when building with MSVC: warning C4028: formal parameter 4 different from declaration This change resolves this warning by changing the parameter to the appropriate type.
2020-08-27UI: Use alternating row theme color in file browserRed Mser
The outliner already uses the alternating row theme color as an overlay for every other row. This uses the same color for the file browser, instead of a hardcoded shading. The file browser background color is slightly tweaked to match the outliner, and the Blender Light theme is updated to use a lighter background color like the outliner. Reviewed by: Hans Goudey, Julian Eisel Differential Revision: https://developer.blender.org/D8717
2020-08-26Cleanup: Fix const warning with BLI_array_freeRay Molenkamp
when you call the BLI_array_free macro with a const pointer you get a warning when the macro calls `MEM_freeN` (warning C4090: 'function': different 'const' qualifiers) This was warning originating from `smart_uv_project_calculate_project_normals` in `uvedit_unwrap_ops.c` Normally we resolve these with a non const cast at the callsite but given BLI_array_free is a macro not a function this is not an option here and it has to be resolved in the macro.
2020-08-26Fix T80080: improve tooltip for render number of threadsBrecht Van Lommel
Since the switch to TBB, the threads value specificies the maximum number of CPU cores used while rendering, it is not longer possible to use more threads than cores. Change the tooltip to make this more clear.
2020-08-26Cleanup: better naming and no bad level access in BLI_winstuffBrecht Van Lommel
2020-08-26Outliner: Use `shift` for restrict button child toggleNathan Craddock
The `ctrl` key was mapped to recursive bone selectable and visibility toggling. This changes the key to `shift` to be consistent with objects and collections. Also adds an explanation to the tooltip. Part of T77408 Differential Revision: https://developer.blender.org/D8650
2020-08-26Outliner: Left and right walk navigationNathan Craddock
Previously the left and right arrow keys would close and open the active tree element, but a subsequent key press would not select up or down the tree as is common in tree-based interfaces. Walking left and right now does a selection action after opening or closing the active tree item. For example, a right key press on a closed element will open it's subtree, and an additional right key press will select the first child element. A left key press anywhere in a subtree will first close the active element if it's subtree is expanded. Walking left again will select the parent element. Part of T77408 Differential Revision: https://developer.blender.org/D8650
2020-08-26Logging: change error to warningJacques Lucke
This is in preparation for https://developer.blender.org/D8665.
2020-08-26Clenaup: Refactor Sculpt gesture mask operatorsPablo Dobarro
This refactors Box Mask and Lasso mask making both functions share the same code. After this change it should be easier to add new functionality, new gesture tools or implement new gesture modes. No functional changes. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8707
2020-08-26Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-26Fix T80098: Mesh deform doesn't update in edit modeCampbell Barton
Use BKE_mesh_wrapper API access to access mesh coordinates for modifier evaluation. Call BKE_mesh_wrapper_ensure_mdata when binding since it's a one off operation. Regression from deaff945d0b96. Reviewed by: @brecht Ref D8709
2020-08-26GPencil: Hide Boundary strokes in RenderAntonio Vazquez
This change hides the boundary strokes used for closing filled areas in render mode (viewport and final render). Related to T80128
2020-08-26GPencil: Fix Assert using fill toolAntonio Vazquez
With the new changes in the Draw Manager, GPU_depth_mask must be set to ON, before clear depth.
2020-08-26Cleanup: remove G.debug_value check for old mesh-deform behaviorCampbell Barton
Added in 2007, it doesn't seem useful to support alternate behavior.
2020-08-26Cleanup: remove unused UvVertMap.flagCampbell Barton
2020-08-26Fix T79992: Error calling context.copy() in Properties EditorDalai Felinto
This was an oversight in rB83e3d25bcae3. Basically we still have the "hair" and "point_cloud" entries for the context. However they were ifdef'ed. Note this would mostly happen in 2.90 since we always build without hair and particles there. Differential Revision: https://developer.blender.org/D8712
2020-08-26Cleanup: typosJacques Lucke
2020-08-26Merge remote-tracking branch 'origin/blender-v2.90-release'Dalai Felinto
2020-08-26Fix #ifdef WITH_PARTICLE_NODES and WITH_HAIR_NODES mixup in rna_internal.hEvan Wilson
Differential Revision: https://developer.blender.org/D8711
2020-08-26BLI: support removing multiple elements from a vectorJacques Lucke
2020-08-26UV: match 3D mesh editing behavior for edge-loop selectCampbell Barton
- Cycling between part of the boundary & the entire UV boundary. - Include pole vertices in the selection. Edge loop selection was rewritten to use BMesh connectivity data.
2020-08-26Cleanup: simplify edge loop/boundary select cycling logicCampbell Barton
2020-08-26Docs: comments for interface_handlers.cCampbell Barton
Explain why some features have defines, also use doxy sections for defines & prototypes.
2020-08-26Cleanup: use const variables in interface codeCampbell Barton
2020-08-26Cleanup: add SEQ_ALL_BEGIN, SEQ_CURRENT_BEGIN to .clang-formatCampbell Barton
These were missed in 70500121b457d which caused reformatting.
2020-08-26Cleanup: spellingCampbell Barton
2020-08-26Cleanup: build without USE_KEYNAV_LIMIT definedCampbell Barton
2020-08-25Cleanup: Declare variables where they are initializedHans Goudey
Further changes to interface_handlers.c to avoid a block of variable declarations at the beginning of functions. Also use const in some situations. I only made changes where the variable's intended scope was obvious.
2020-08-25Cleanup in interface_handlers.cValentin
- Reduce variables scope - Use some const prefixes - Initialize variables at declaration - Use comparison to boolean false instead of 0 Differential Revision: https://developer.blender.org/D8678
2020-08-25Fix T79494 Refrence Image reflects object after source got deletedClément Foucault
Silly typo was causing the error texture to not be bound.
2020-08-25GPUState: Move state limits getter to the area they belongClément Foucault
This fix a GL_INVALID_VALUE error on startup due to 0.0f max line width. Also moves the max anisotropy filter to the sampler creation. This reduces code fragmentation.
2020-08-25Outliner: Include gpencil modifiers and effects in the treeNathan Craddock
Grease pencil modifiers already had defined outliner icons, but had never been included in the tree. This adds the modifiers and the shader effects to the tree. Part of T68498