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-01-08Surface Deform: the Strength setting is not bind-specific.Alexander Gavrilov
It is used during evaluation so it shouldn't be greyed out in the UI. Ref D10040
2021-01-08Surface Deform: optimize memory allocation in the evaluation code.Alexander Gavrilov
Using malloc to allocate a temporary array for each vertex, which most commonly contains just 4 elements, is not efficient. Checking the mode with a switch is also better. Differential Revision: https://developer.blender.org/D10040
2021-01-08GPU: Enable HQ normal work around on Linux.Jeroen Bakker
Linux does not report the driver version. It does report the OpenGL version. This change will check the OpenGL version to enable the HQ normal work around.
2021-01-08VSE: Hide cache settings and adjust defaultsRichard Antalik
Adjust default cache settings for all files to store raw and final images. All settings are still available when developer extras option is enabled in user preferences. This is part of design task T80278 Differential Revision: https://developer.blender.org/D9745
2021-01-08Cleanup: Use LISTBASE_FOREACH macroHans Goudey
2021-01-08Fix file-handle leak when parsing xdg user directoriesCampbell Barton
2021-01-08Fix T83868: Disabled or inactive list items are not grayed outHans Goudey
The cause for this was quite simple-- a misplaced bitwise operation before passing a value to the function that grayed out buttons based on their state, caused by refactoring in rB933bf62a611f before committing. What makes the situation a little more confusing is that the theme colors are overridden for list buttons in UI lists, necessitating a second call to `ui_widget_color_disabled()`. Ideally that wouldn't be necessary.
2021-01-07PyAPI Docs: Terminal instructions for Windows incorrectAaron Carlisle
Fixes T84498
2021-01-07Cleanup: Declare variables where initializedHans Goudey
2021-01-07Cycles: Increase instance limit for OptiX acceleration structure buildingPatrick Mours
For a while now OptiX had support for 28-bits of instance IDs, instead of the initial 24-bits (see also value reported by OPTIX_DEVICE_PROPERTY_LIMIT_MAX_INSTANCE_ID). This change makes use of that and also adds an error reported when the number of instances an OptiX acceleration structure is created with goes beyond the limit, to make this clear instead of just rendering an image with artifacts. Manifest Tasks: T81431
2021-01-07Surface Deform: optimize handling of the vertex group weight.Alexander Gavrilov
There is no need to first copy weights to a separate array, or create the data layer if it doesn't exist. The threaded code can retrieve the weight directly from the layer. Differential Revision: https://developer.blender.org/D10015
2021-01-07UI: Use Eyedropper Cursor with Sample Weight ToolJuanfran Matheu
While using the Sample Weight tool in Weight Paint mode, user eyedropper mouse cursor. Differential Revision: https://developer.blender.org/D9431 Reviewed by Pablo Vazquez
2021-01-07UI: Show Weight Value with Sample Weight ToolJuanfran Matheu
While using the Sample Weight tool in Weight Paint mode, show weight value in tool header. Differential Revision: https://developer.blender.org/D9432 Reviewed by Pablo Vazquez
2021-01-07Fix T84326: No ID for geometry nodes instances after scatteringHans Goudey
Instances are created with an "index" parameter used for persistence over time through animation. Currently the geometry nodes instancer passes the index in the array for this value, but the arrays created by the "Point Distribution" node aren't necessarily stable in this way when the input mesh is deformed. In D9832 we already mostly solved this problem with an `id` attribute. The solution here is to create instances with this attribute as well. It's important to note that deforming the instanced points *after* distribution will usually be a better solution for this problem. This solution is likely still important though. Differential Revision: https://developer.blender.org/D10024
2021-01-07UndoSystem: Early out from core undo/redo handlers when undo step is NULL.Bastien Montagne
Also added `undosys_stack_validate` debug check to redo case.
2021-01-07Cleanup: Undo system: minor simplification in non-debug code.Bastien Montagne
2021-01-07Fix T84469: Online manual raises an exception with key-map optionsCampbell Barton
Report an error instead of raising a Python exception. Currently these properties aren't written to the manual so it's best to show an error.
2021-01-07Fix T84142: crash when mirroring hair emitted from verticesJacques Lucke
The hair mirroring code seems to expect that hair is emitted from faces. The PE_mirror_x contains the following expression: mirrorfaces[pa->num * 2]. This only makes sense when pa->num is a face index. The simplest short term solution is to disable the mirror operator when the particles haven't been emitted from faces. Diffferential Revision: https://developer.blender.org/D10002
2021-01-07Fix T83497: missing relations update when group node changesJacques Lucke
Changing which node group a group node references needs a depsgraph relations update in some cases. Differential Revision: https://developer.blender.org/D10018
2021-01-07RNA: document Python instancing for ID's and RNA typesCampbell Barton
Document some of the less obvious implications for re-using Python instances.
2021-01-07Outliner: use the scene ID for ObjectBase PointerRNACampbell Barton
While this didn't cause any problems, `Base` structs are part of the scene which is being set in other uses of this type.
2021-01-07UI: Fix various issues with UI textYevgeny Makarov
- Use the name "Point Cloud" instead of "Pointcloud" - Fix a typo in UV_OT_smart_project. - Use the name "Install Light" to for the installation operator for MatCaps, HDRIs, and Studio Lights. Fixes T83585, T65291, and T54921 Differential Revision: https://developer.blender.org/D9867
2021-01-07Fix memory leak duplicating a scene with "Copy Settings"Campbell Barton
2021-01-07PyAPI: don't raise & clear exceptions when setting context membersCampbell Barton
BPY_context_dict_clear_members_array used PyDict_DelItemString which raised & cleared the exception when the key didn't exist. Even though setting/clearing the exception is supported, it's worth avoiding where possible as it adds some overhead as well as overwriting the previous error which can free PyObject's which are unrelated to the code being executed. Possible fix for T82552, crashing on Windows when setting the exception.
2021-01-07Fix BKE_blender_atexit_unregister error removing from linked listCampbell Barton
This is an old bug exposed by having multiple atexit calls since c65c4149c9be8a1811eb389f657216fab071dfc5.
2021-01-07PyAPI Docs: Link to user docs instead of describing in API docAaron Carlisle
2021-01-07PyAPI Docs: Update Indirect Data Access docsAaron Carlisle
Fixes T84432
2021-01-07PyAPI Docs: Fix wrong modifier path usageAaron Carlisle
Fixes T84430
2021-01-07PyAPI Docs: Clarify quick start guide tipsAaron Carlisle
Some of the text here was outdated with 2.8x. See T84427
2021-01-07Fix T84416: Vertex color baking checks for UVMapPhilipp Oeser
Since the introduction in rB2221389d6e8e, baking to vertex colors would still check for the existence of a valid UVMap (as if baking to image textures). Now check for vertex colors instead if target is R_BAKE_TARGET_VERTEX_COLORS. Maniphest Tasks: T84416 Differential Revision: https://developer.blender.org/D10006
2021-01-06UI: Use the 3D cursor icon for the RNA structHans Goudey
Since there is a specific icon to represent the 3D cursor it makes sense to add it to the RNA struct. This struct's icon is only displayed in the Data API section of the outliner.
2021-01-06UndoType: Refactor: replace `use_context` boolean by a bitflag.Bastien Montagne
We will soon need more options here, sinmpler and cleaner to use a bitflag then.
2021-01-06Fix T84420: Linking regular materials to gpencilFalk David
When using "Make Links"->"Materials" regular materials could be linked onto grease pencil objects. This caused a number of issues. The fix changes the `allow_make_links_data` function to make sure that if one object is of type `OB_GPENCIL`, the other has to be aswell. Reviewed By: antoniov Maniphest Tasks: T84420 Differential Revision: https://developer.blender.org/D10014
2021-01-06Fix T84202: Sculpt lasso mask crash after remesh.Bastien Montagne
'Caused'/revealed by rBd29a720c45e5: Operators that fully re-create the mesh would previously rely on `sculpt_update_object` called from update code to get required sculpt-specific data layers re-added to the new mesh. Now instead put all code adding data to orig mesh for sculpt purpose into a new util function (`BKE_sculpt_ensure_orig_mesh_data`), and call that function when entering sculpt mode, and from voxel remesher code. This is contonuing effort to more clearly separate orig data from evaluated data handling/usage in sculpt code. TODO: there are likely other code paths that would need to call that new function? Reviewers: @sergey, @pablodp606 Subscribers:
2021-01-06Undo: Further tweak/fixes the 'use context' flag of undo types.Bastien Montagne
Note that this is fairly fragile still, especially in cases like paint cureve undo, which actually does not use context in most cases (and can be called with a NULL context), but do need it in one case. This will need a proper rework at some point.
2021-01-06Fix T82952: Crash changing mesh data block and switching scenesCampbell Barton
Regression in 33ac3582bbd5551bdfbc7ef8856640b5e61888f8.
2021-01-06Fix T79779: Pick shortest UV face-path ignores sticky settingCampbell Barton
2021-01-06UndoType: Fix some incinsistencies re context usage flag.Bastien Montagne
`use_context_for_encode` was not properly set regarding actual `encode` code for a few types.
2021-01-06Cleanup: CodeStyle formatJeroen Bakker
2021-01-06Cleanup: CodeStyle FormatJeroen Bakker
2021-01-06Fix T83372: Point.select can be True when unselectedCampbell Barton
2021-01-06Cleanup/refactor: UndoType: Clarify `use_context` variable.Bastien Montagne
Rename it to mark it is only for `encode` callbacks, fix `encode` callback of text undo to early fail in case it gets a NULL context, add an assert to `BKE_undosys_step_push_with_type` that context is not NULL when undotype requires a valid one. Note that in practice this should not change anything, currently it seems that we always get a valid context in `BKE_undosys_step_push_with_type`?
2021-01-06Fix object moved to cursor when editing last operation after dropping objectJulian Eisel
Steps to reproduce were: * Drag object icon from the Outliner into the 3D view (or an object asset from the Asset Browser) * Open the "Adjust Last Operation" panel * Edit options in there - the object would move to the mouse location The same issue happens with collection instance and object data adding (e.g. via drag & drop). This patch addresses them too. The operator used the event state stored in the window. This shouldn't be accessed from the operator execute callback generally which happened here. Especially not if the operator supports editing properties.
2021-01-06Fix T70316: Custom "Delete Keyframes" shortcut still requiresPhilipp Oeser
confirmation Deleting keyframes in the dopesheet or graph editor always required confirmation, even if used ouside of the "Delete" menus. Now add a "confirm" option [same as for deleting objects], which can be disabled for immediate keyframe deletion. This will also change the default behavior and bring this in line with how object deletion works so there is one shortcut for bringing up the menu/confirmation and another shortcut to delete immediately without requiring confirmation / another click: - Blender Default keymap: "X" for menu, "Del" for immediate - Industry Compatible: "Backspace" for menu, "Del" for immediate Maniphest Tasks: T70316 Differential Revision: https://developer.blender.org/D9651
2021-01-06Fix T84426: Limit dissolve ignores selection with custom normalsCampbell Barton
Regression in 9969c2dd165c7d8ffe607a5a050a80aa59ac50be. Add note that custom normal calculation functions write into to tags.
2021-01-06BMesh: assert when a mesh has two kinds of shake-key dataCampbell Barton
Assert with comment to avoid confusion caused by mixing two kinds of shape-key data. This problem was exposed when investigating T84364.
2021-01-05Fix T83094: Alternate rows in the Sequencer are green (macOS)Yevgeny Makarov
The issue is that `UI_GetThemeColorBlendShade4fv()` creates a color with alpha, but there is not any background underneath to blend in with. The solution is just to draw an opaque background first, which also halves the number of rects to draw. Note that the brighter rows get very slightly darker after this change. Differential Revision: https://developer.blender.org/D9947
2021-01-05Fix T79146: Sculpt Mode lags until the entire mesh is visiblePablo Dobarro
This was caused when the BKE_pbvh_draw_cb function was used with update_only_visible set to false. In that case, all nodes with the flag were updating, but the update flag was only cleared for visible nodes. This was causing constant updates per redraw in no visible nodes until they enter the view frustum and their flag was cleared. In order to fix this and prevent it from happening again: - Updating the buffers, flushing the updates and clearing the flags are now part of the same function. It does not make sense to do these in separate places. - The BKE_pbvh_draw_cb function was refactored so the pbvh_update_draw_buffers is only called once. It should now be easier to understand what the function does when it is used to update only visible nodes or all nodes. Reviewed By: mont29 Maniphest Tasks: T79146 Differential Revision: https://developer.blender.org/D9935
2021-01-05Fix T78681: "Add Primitive" icons are cropped in tool headerHans Goudey
The issue can be simply resolved by moving the primitives and plus icons slightly. They still bump up against the top and bottom of the header but it looks much better now.
2021-01-05Cleanup: Reduce variable scopeHans Goudey