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
2022-08-12Cleanup: remove unnecessary ifdefCampbell Barton
2022-08-12Cleanup: replace misleading use of 'true' for the bit-field sizeCampbell Barton
Also use a bit-field for SnapObjectParams.keep_on_same_target
2022-08-12Cleanup: screw modifier comments & namingCampbell Barton
Rename dist to dist_sq as it's the squared distance, also prefer __func__ in temporary allocated arrays.
2022-08-12Cleanup: use 'filepath' for fill pathsCampbell Barton
2022-08-12Cleanup: add missing braces in GHOSTCampbell Barton
2022-08-12Cleanup: remove unnecessary icon assignmentCampbell Barton
2022-08-12Cleanup: clang-tidy GHOST Context/Event/TimerManagerCampbell Barton
2022-08-12Cleanup: update comments in MANTA_main.cppCampbell Barton
2022-08-12Cleanup: use enum type for argumentCampbell Barton
2022-08-12WM: define WM_OT_drop_blend_file path as a file-path, skip-saveCampbell Barton
File paths have special handling of non-utf8 characters, so it's best to use the FILE_PATH sup-type for all file-paths.
2022-08-12Cleanup: use short names for verts & polys as they're unambiguousCampbell Barton
Follow conventions used in most existing code.
2022-08-12Cleanup: replace magic number with flagCampbell Barton
2022-08-12Cleanup: early exit ui_but_extra_operator_icon_mouse_over_getCampbell Barton
Early exit when the button has no extra icons, avoiding a redundant transformation from mouse to button coordinates.
2022-08-12Cleanup: typo in selection checkCampbell Barton
In practice this is harmless as in most cases checking selected vertices is enough, however as the intention is to check all 3 elements it's best to do so.
2022-08-12Fix incorrect custom-data layer access for hide layersCampbell Barton
Error in [0], missed in review. [0] 2480b55f216c31373a84bc5c5d2b0cc158497c44
2022-08-12Cleanup: replace term face with polyCampbell Barton
Be consistent with naming to avoid mixing MPoly/MFace.
2022-08-12Fix: Broken mesh hide status RNA accessorsHans Goudey
Mistake in 2480b55f216c31. Also deduplicate some of the code to find the indices of mesh elements.
2022-08-11BLF: Mutex Lock Glyph Cache Per Font, Not GlobalHarley Acheson
Only lock access to our glyph caches per-font, rather than globally. Also upgrade from spinlocks to mutexes. See D15644 for more details. Differential Revision: https://developer.blender.org/D15644 Reviewed by Brecht Van Lommel
2022-08-11Fix: Use of uninitialized variable in recent commitHans Goudey
Mistake in 2480b55f216c.
2022-08-11Cycles: take into account time limit for progress barBrecht Van Lommel
This change allows the Cycles progress report system to take into conderation the time limit property. This allows for more accuracte progress reports for high sample count renders with short time limits. Contributed by Alaska. Differential Revision: https://developer.blender.org/D15599
2022-08-11Merge branch 'blender-v3.3-release'Brecht Van Lommel
2022-08-11Fix T100130: animation player crash on exitBrecht Van Lommel
GPU_exit is now expected to run within an active GPU context. Also run BLF_exit and IMB_exit first they can use GPU resources and gave ASAN errors. And remove redundant GPU_shader_free_builtin_shaders already handled by GPU_exit.
2022-08-11Curve: Simplify legacy curve conversion to meshHans Goudey
Build the mesh directly instead of returning arrays which need to be copied to a new mesh. Also decrease the scope of some variables.
2022-08-11Mesh: Move hide flags to generic attributesHans Goudey
This commit moves the hide status of mesh vertices, edges, and faces from the `ME_FLAG` to optional generic boolean attributes. Storing this data as generic attributes can significantly simplify and improve code, as described in T95965. The attributes are called `.hide_vert`, `.hide_edge`, and `.hide_poly`, using the attribute name semantics discussed in T97452. The `.` prefix means they are "UI attributes", so they still contain original data edited by users, but they aren't meant to be accessed procedurally by the user in arbitrary situations. They are also be hidden in the spreadsheet and the attribute list by default, Until 4.0, the attributes are still written to and read from the mesh in the old way, so neither forward nor backward compatibility are affected. This means memory requirements will be increased by one byte per element when the hide status is used. When the flags are removed completely, requirements will decrease when hiding is unused. Further notes: * Some code can be further simplified to skip some processing when the hide attributes don't exist. * The data is still stored in flags for `BMesh`, necessitating some complexity in the conversion to and from `Mesh`. * Access to the "hide" property of mesh elements in RNA is slower. The separate boolean arrays should be used where possible. Ref T95965 Differential Revision: https://developer.blender.org/D14685
2022-08-11Cleanup: minor changes to DebugFlagsBrecht Van Lommel
Use C++11, remove unused running_inside_blender and move viewport_static_bvh to BlenderSync.
2022-08-11obj: support importing multiple files at onceAras Pranckevicius
Implemented the same way as STL or GPencil SVG importers: loop over the input files, import one by one. Has been requested by the community for quite a long time (e.g. https://blender.community/c/rightclickselect/Jhbbbc/), as well as 3rd party addons to implement just this (https://github.com/p2or/blender-batch-import-wavefront-obj).
2022-08-11Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-11Fix T98781: OBJ exporter wrongly writing default material socket values when ↵Aras Pranckevicius
textures are present Report T98781 and part of T97642: the MTLMaterial info only captures image nodes and the default socket values. When the image information is present, do not emit the socket defaults - the .MTL spec states they are multiplied together, but the default value is not used in blender when the socket is connected. Also contains svn tests repository update to extend the test coverage, and update test expectation outputs.
2022-08-11GHOST/Wayland: support setting modifiers on window activationCampbell Barton
Take advantage of Waylands wl_keyboard_listener.enter callback which takes an array of keys that are pressed when a window is activated. Resolves T74684 under Wayland.
2022-08-11Cleanup: access modifier keys by index under WaylandCampbell Barton
This simplifies accessing modifiers as there is no need to perform a string lookup each time (which may fail).
2022-08-11Fix T66088: Modifier keys ignored when the window doesn't have focusCampbell Barton
Always use modifier keys from the active window, as changes to the modifiers aren't sent to inactive windows. Also resolves modifier keys being lost on window de-activation. Activating the window again would check the previous state of the modifiers which was always cleared as of [0], now clearing is no longer needed. [0]: 472595f1d3533f143bdc84700b26f20a7b2ba1c1
2022-08-11BLF: Fallback Broken After Cache RemovalHarley Acheson
Font fallback feature not working after reverting the implementation of the cache system. Missing an blf_ensure_face before FT_Get_Char_Index. Otherwise glyphs not found in fonts without faces. Own Code
2022-08-11Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Add element_map->island_total_uvs. Add element_map->island_total_unique_uvs. Simplify callers based on new members. Add comments. Resolves: D15598
2022-08-11Cleanup: doxy parameters, use static set instead of tupleCampbell Barton
2022-08-11Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-11Fix T100204: RMB select (with "Select Tool") causes edit-mesh conflictCampbell Barton
When RMB select activated the selection tool, Alt-RMB would both tweak and loop-select. Fix/workaround this by passing though 'enumerate' unless the option can be used (when selecting objects or armatures).
2022-08-11Cleanup: clang-tidy uv_parametrizer.ccCampbell Barton
2022-08-11Cleanup: missing newline in GHOST_PRINTCampbell Barton
2022-08-11Cleanup: remove redundant MEM_SAFE_FREECampbell Barton
MEM_SAFE_FREE isn't necessary when the memory is known to be allocated and clearing the value afterwards isn't necessary.
2022-08-11Cleanup: check if the camera was moved before auto-key in smooth-viewCampbell Barton
There is no need to attempt to auto-key when the camera isn't moved.
2022-08-11Cleanup: pass const arguments to smooth-view functionsCampbell Barton
Also move region redraw tag out of view3d_smoothview_apply_with_interp as it's not always needed.
2022-08-11Cleanup: replace magic numberCampbell Barton
2022-08-11Cleanup: spelling in commentsCampbell Barton
2022-08-11License headers: add missing license headerCampbell Barton
2022-08-11Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Add #bm_uv_ensure_head_table See also: D15598
2022-08-11Cleanup: reduce asan lint and clang-tidy warnings on uv_parametrizerChris Blackbourn
2022-08-10Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Migrate island calculation to #bm_uv_build_islands. Simplify connectedness calculation. Reduce memory pressure. No functional changes. See also: D15598
2022-08-10Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-10obj: Also find .mtl images by their basename, if all else fails (T77801)Aras Pranckevicius
While T77801 itself is working as expected in the new C++ obj importer, the repro file there uses absolute paths to material images, yet the images themselves are right there in the current folder. The old python based importer did find them, since it was doing a really complex image search. My understanding is that while C++ importer was developed, it was decided to not do that -- however just the "basename file in the mtl directory" sounds simple enough and gets the repro case file work correctly.
2022-08-10Compositor: Limit C linkage of cryptomatte functionsOmar Emara
Most of the functions in the compositor cryptomatte file are declared with extern "C" linkage, which can cause symbol conflict even when functions exist in separate namespaces. This is not actually necessary, as the declaration of the few functions that require C linkage are already declared as such in the header file, so this patch removes the extern C scope from that file. Differential Revision: https://developer.blender.org/D15656 Reviewed By: Clement Foucault