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-06-08PyAPI: use keyword only argumentsCampbell Barton
Use keyword only arguments for the following functions. - addon_utils.module_bl_info 2nd arg `info_basis`. - addon_utils.modules 1st `module_cache`, 2nd arg `refresh`. - addon_utils.modules_refresh 1st arg `module_cache`. - bl_app_template_utils.activate 1nd arg `template_id`. - bl_app_template_utils.import_from_id 2nd arg `ignore_not_found`. - bl_app_template_utils.import_from_path 2nd arg `ignore_not_found`. - bl_keymap_utils.keymap_from_toolbar.generate 2nd & 3rd args `use_fallback_keys` & `use_reset`. - bl_keymap_utils.platform_helpers.keyconfig_data_oskey_from_ctrl 2nd arg `filter_fn`. - bl_ui_utils.bug_report_url.url_prefill_from_blender 1st arg `addon_info`. - bmesh.types.BMFace.copy 1st & 2nd args `verts`, `edges`. - bmesh.types.BMesh.calc_volume 1st arg `signed`. - bmesh.types.BMesh.from_mesh 2nd..4th args `face_normals`, `use_shape_key`, `shape_key_index`. - bmesh.types.BMesh.from_object 3rd & 4th args `cage`, `face_normals`. - bmesh.types.BMesh.transform 2nd arg `filter`. - bmesh.types.BMesh.update_edit_mesh 2nd & 3rd args `loop_triangles`, `destructive`. - bmesh.types.{BMVertSeq,BMEdgeSeq,BMFaceSeq}.sort 1st & 2nd arg `key`, `reverse`. - bmesh.utils.face_split 4th..6th args `coords`, `use_exist`, `example`. - bpy.data.libraries.load 2nd..4th args `link`, `relative`, `assets_only`. - bpy.data.user_map 1st..3rd args `subset`, `key_types, `value_types`. - bpy.msgbus.subscribe_rna 5th arg `options`. - bpy.path.abspath 2nd & 3rd args `start` & `library`. - bpy.path.clean_name 2nd arg `replace`. - bpy.path.ensure_ext 3rd arg `case_sensitive`. - bpy.path.module_names 2nd arg `recursive`. - bpy.path.relpath 2nd arg `start`. - bpy.types.EditBone.transform 2nd & 3rd arg `scale`, `roll`. - bpy.types.Operator.as_keywords 1st arg `ignore`. - bpy.types.Struct.{keyframe_insert,keyframe_delete} 2nd..5th args `index`, `frame`, `group`, `options`. - bpy.types.WindowManager.popup_menu 2nd & 3rd arg `title`, `icon`. - bpy.types.WindowManager.popup_menu_pie 3rd & 4th arg `title`, `icon`. - bpy.utils.app_template_paths 1st arg `subdir`. - bpy.utils.app_template_paths 1st arg `subdir`. - bpy.utils.blend_paths 1st..3rd args `absolute`, `packed`, `local`. - bpy.utils.execfile 2nd arg `mod`. - bpy.utils.keyconfig_set 2nd arg `report`. - bpy.utils.load_scripts 1st & 2nd `reload_scripts` & `refresh_scripts`. - bpy.utils.preset_find 3rd & 4th args `display_name`, `ext`. - bpy.utils.resource_path 2nd & 3rd arg `major`, `minor`. - bpy.utils.script_paths 1st..4th args `subdir`, `user_pref`, `check_all`, `use_user`. - bpy.utils.smpte_from_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.smpte_from_seconds 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.system_resource 2nd arg `subdir`. - bpy.utils.time_from_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.time_to_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.units.to_string 4th..6th `precision`, `split_unit`, `compatible_unit`. - bpy.utils.units.to_value 4th arg `str_ref_unit`. - bpy.utils.user_resource 2nd & 3rd args `subdir`, `create` - bpy_extras.view3d_utils.location_3d_to_region_2d 4th arg `default`. - bpy_extras.view3d_utils.region_2d_to_origin_3d 4th arg `clamp`. - gpu.offscreen.unbind 1st arg `restore`. - gpu_extras.batch.batch_for_shader 4th arg `indices`. - gpu_extras.batch.presets.draw_circle_2d 4th arg `segments`. - gpu_extras.presets.draw_circle_2d 4th arg `segments`. - imbuf.types.ImBuf.resize 2nd arg `resize`. - imbuf.write 2nd arg `filepath`. - mathutils.kdtree.KDTree.find 2nd arg `filter`. - nodeitems_utils.NodeCategory 3rd & 4th arg `descriptions`, `items`. - nodeitems_utils.NodeItem 2nd..4th args `label`, `settings`, `poll`. - nodeitems_utils.NodeItemCustom 1st & 2nd arg `poll`, `draw`. - rna_prop_ui.draw 5th arg `use_edit`. - rna_prop_ui.rna_idprop_ui_get 2nd arg `create`. - rna_prop_ui.rna_idprop_ui_prop_clear 3rd arg `remove`. - rna_prop_ui.rna_idprop_ui_prop_get 3rd arg `create`. - rna_xml.xml2rna 2nd arg `root_rna`. - rna_xml.xml_file_write 4th arg `skip_typemap`.
2021-06-08Cleanup: Apply clang-format (`make format`)Julian Eisel
2021-06-08Geometry Nodes: Rename bounding box mesh output to "Bounding Box"Hans Goudey
This was decided by the geometry nodes team, because the important part of this output is not that it's a mesh.
2021-06-08Geometry Nodes: Support curve instances in the bounding box nodeHans Goudey
Currently curve instances are misleading, since `CurveEval` is created from scratch from the original `Curve`, but this won't always be true.
2021-06-08Cleanup: Remove duplicate call to functionHans Goudey
Missed in rBa2ebbeb836ae765
2021-06-08Sequencer: Performance image crop transform.Jeroen Bakker
During transforming an image, a matrix multiplication per pixel was done. The matrix in itself is always linear so it could be replaced by two additions. During testing in debug builds playing back a movie went from 20fps to 300 fps. Reviewed By: zeddb Differential Revision: https://developer.blender.org/D11533
2021-06-08Fix T87703: Failed assert when dragging object data-block into 3D ViewJulian Eisel
Talked with Bastien and we ended up looking into this. Issue is that the dupliation through drag & drop should also be considered a "sub-process", like Shift+D duplicating does. Added a comment explaining why this is needed.
2021-06-08GPU: Thread safe index buffer builders.Jeroen Bakker
Current index builder is designed to be used in a single thread. This makes all index buffer extractions single threaded. This patch adds a thread safe solution enabling multithreaded building of index buffers. To reduce locking the solution would provide a task/thread local index buffer builder (called sub builder). When a thread is finished this thread local index buffer builder can be joined with the initial index buffer builder. `GPU_indexbuf_subbuilder_init`: Initialized a sub builder. The index list is shared between the parent and sub buffer, but the counters are localized. Ensuring that updating counters would not need any locking. `GPU_indexbuf_subbuilder_finish`: merge the information of the sub builder back to the parent builder. Needs to be invoked outside the worker thread, or when sure that all worker threads have been finished. Internal the function is not thread safe. For testing purposes the extract_points extractor has been migrated to the new API. Herefore changes to the mesh extractor were needed. * When creating tasks, the task number of current task is stored in ExtractTaskData including the total number of tasks. * Adding two functions in `MeshExtract`. ** `task_init` will initialize the task specific userdata. ** `task_finish` should merge back the task specific userdata back. * adding task_id parameter to the iteration functions so they can access the correct task data without any need for locking. There is no noticeable change in end user performance. Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D11499
2021-06-08Geometry Nodes: new Select by Material nodeJacques Lucke
This node creates a boolean face attribute that is "true" for every face that has the given material. Differential Revision: https://developer.blender.org/D11324
2021-06-08Animation: Allow selection of FCurve + its keysMaxime Casas
Selection of an FCurve with box/circle select now selects the entire curve and all its keys: - Box selecting a curve selects all the keyframes of the curve. - Ctrl + box selecting of the curve deselects all the keyframes of the curve. - Shift + box selecting of the curve extends the keyframe selection, adding all the keyframes of the curves that were just selected to the selection. - In all cases, if the selection area contains a key, nothing is performed on the curves themselves (the action only impacts the selected keys). Reviewed By: sybren, #animation_rigging Differential Revision: https://developer.blender.org/D11181
2021-06-08Fix compile error with 'WITH_CXX_GUARDEDALLOC'Germano Cavalcante
Seen with msvc
2021-06-08Fix T88934: Crash with line node count input < 0Hans Goudey
Some of the primitive nodes can return null in an error condition. This is confusing mixed with adding a maderial slot in calling functions. This is the second crash caused by that confusion. It's simpler to add the slot right when allocating the mesh, and it will lend itself better to copy & paste coding in the future. Differential Revision: https://developer.blender.org/D11530
2021-06-08Revert "Cleanup: use cpp new/delete."Jeroen Bakker
This reverts commit 43464c94f4def8689dd99a9e459f5ff77420d27b.
2021-06-08Cleanup: replace NULL with nullptr.Jeroen Bakker
2021-06-08Cleanup: use cpp new/delete.Jeroen Bakker
2021-06-08Cleanup: replace typedef structs with structs.Jeroen Bakker
2021-06-08Cleanup: Separate compile unit edituv.Jeroen Bakker
2021-06-08Cleanup: Separate compile unit lines_adjacency.Jeroen Bakker
2021-06-08Cleanup: Separate compile unit lines_paint_mask.Jeroen Bakker
2021-06-08Cleanup: Separate fdots extraction in own compile unit.Jeroen Bakker
2021-06-08Fix T88719: Attribute Remove node input field does nothingJacques Lucke
An unlinked multi-input socket was not handled correctly.
2021-06-08CMake: Fix `FindClang` not finding system clang on linux in some cases.Bastien Montagne
In Debian e.g. Clang is part of LLVM, so we need to also check its root directory sometimes to find Clang files.
2021-06-08Geometry Nodes: enable multi-threading in evaluator againJacques Lucke
This reverts rB223c6e1ead2940a89465ff66765d16ac14a992b7 because T88598 is resolved now.
2021-06-08BLI: support disabling task isolation in task poolJacques Lucke
Under some circumstances using task isolation can cause deadlocks. Previously, our task pool implementation would run all tasks in an isolated region. Now using task isolation is optional and can be turned on/off for individual task pools. Task pools that spawn new tasks recursively should never enable task isolation. There is a new check that finds these cases at runtime. Right now this check is disabled, so that this commit is a pure refactor. It will be enabled in an upcoming commit. This fixes T88598. Differential Revision: https://developer.blender.org/D11415
2021-06-08BMesh: simplify normal calculation, resolve partial update errorCampbell Barton
Simplify vertex normal calculation by moving the main normal accumulation function to operate on vertices instead of faces. Using faces had the down side that it needed to zero, accumulate and normalize the vertex normals in 3 separate passes, accumulating also needed a spin-lock for thread since the face would write it's normal to all of it's vertices which could be shared with other faces. Now a single loop over vertices is performed without locking. This gives 5-6% speedup calculating all normals. This also simplifies partial updates, fixing a problem where all connected faces were being read from when calculating normals. While this could have been resolved separately, it's simpler to operate on vertices directly.
2021-06-08Cleanup: Silent compile warning in `interface_widgets.c`.Jeroen Bakker
2021-06-08Cleanup: Soilent compile warning in `curve_bevel.c`.Jeroen Bakker
2021-06-08LineArt: Threaded Object Loading.YimingWu
Move BMesh conversion and all loading code into worker. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11288
2021-06-08Fix test failure caused by earlier cleanup commitHans Goudey
rB8cbff7093d65 neglected to move the "pre-tesselation" modifier to the next before calculating the second part of the curve modifier stack.
2021-06-08Remove noop code from WM_MOUSEWHEEL processing.Nicholas Rishel
ChildWindowFromPoint retrieves the child of the provided window at a point. In this case it always returns 0 because HWND_DESKTOP is flag defined as 0, which is never a valid window handle and is not intended for use in place of a window handle. Forwarding of mousewheel events was added in adb08def613d, and later modified to the current unworking state in e9645806f563. Sending mouse wheel events to the window under the cursor is a system preference and therefore should not be overridden by Blender, therefore the noop code has been removed.
2021-06-08Improve multires performance.Joseph Eagar
Added a new api function to stich multires grids on specific faces in a mesh, subdiv_ccg_average_faces_boundaries_and_corners, and changed multires normal calc to use it. VTune profiling showed that this was a major performance hit once you get above 10,000 or so base mesh faces and/or have a high number of subdivision levels. Here's a video comparing the difference. Note the bpy.app_debug switch is not in the final commit. {F10145323} And the .blend file: {F10145346} Reviewed By: Sergey Sharybin (sergey) Differential Revision: https://developer.blender.org/D11334
2021-06-08Revert "Improve multires performance."Joseph Eagar
. . .because I accidentally committed submodule references. This reverts commit 482465e18aa7c9f74fcb90ec1002f157a580e240.
2021-06-08Improve multires performance.Joseph Eagar
Added a new api function to stich multires grids on specific faces in a mesh, subdiv_ccg_average_faces_boundaries_and_corners, and changed multires normal calc to use it. VTune profiling showed that this was a major performance hit once you get above 10,000 or so base mesh faces and/or have a high number of subdivision levels. Here's a video comparing the difference. Note the bpy.app_debug switch is not in the final commit. {F10145323} And the .blend file: {F10145346} Reviewed By: Sergey Sharybin (sergey) Differential Revision: https://developer.blender.org/D11334
2021-06-08Cleanup: Order return argument lastHans Goudey
2021-06-08UI: Remove property descriptions exactly the same as namesHans Goudey
These two descriptions are exactly the same as the property names, which only wastes people's time when reading tooltips
2021-06-07Cleanup: Use const arguments, return by valueHans Goudey
Also use Curve as an argument instead of Object, since the object was only used to retrieve the curve, and the calling code is already working with curve data.
2021-06-07Fix T77651: Black screen on Blender startup on ChromeOSGermano Cavalcante
Apparently `textureSize` doesn't work with `sampler1DArray` on this OS. Thanks to @dave1853 for finding the source of the problem.
2021-06-07Cleanup: Make function staticHans Goudey
This was not used in any other file, and it's not likely to be used elsewhere in the future anyway.
2021-06-07Cleanup: Remove outdated/useless commentsHans Goudey
Some of the comments referenced code that was no longer there, or even defines that were removed. Other comments were more confusing and vague than helpful. Also adjust formatting in a few cases.
2021-06-07Cleanup: Remove unused function, make function privateHans Goudey
2021-06-07Cleanup: Decrease variable scopeHans Goudey
Also use const and bool in a few places.
2021-06-07Fix T88801: Positioning of Menu UnderlinesHarley Acheson
This patch improves the positioning of the little mnemonic underlines shown under some hotkey letters in menus, especially when using custom fonts. see D11521 for details and examples. Differential Revision: https://developer.blender.org/D11521 Reviewed by Campbell Barton
2021-06-07Fix: Wrong logic for checking if we can reuse decoded frameSebastian Parborg
We should only check if the new pts value lies inside the duration of the current frame.
2021-06-07Cleanup: use doxy groups for bmesh_mesh_normals.cCampbell Barton
2021-06-07Cleanup: Move extract lines to compile unit.Jeroen Bakker
2021-06-07Cleanup: Move extract tris in own compile unit.Jeroen Bakker
2021-06-07Revert most of rB93a865dde775e.Bastien Montagne
This revert went too far, only one line (the minimal version of FFMPEG for `install_deps.sh` script`) actually needed to be reverted... Sorry for the noise.
2021-06-07Cleanup: split bmesh normal calculation into separate filesCampbell Barton
2021-06-07Cleanup: compiler warnings signed/unsigned mismatchCampbell Barton
2021-06-07Cleanup: silence warningsGermano Cavalcante