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-08-27Use EXPECT_EQ instead of ASSERT_EQHans Goudey
2021-08-27Rename Function to FieldFunctionHans Goudey
2021-08-27Merge branch 'temp-geometry-nodes-fields' into ↵Hans Goudey
temp-geometry-nodes-fields--fields
2021-08-27Merge branch 'master' into temp-geometry-nodes-fieldsHans Goudey
2021-08-27Refactor IDProperty UI data storageHans Goudey
The storage of IDProperty UI data (min, max, default value, etc) is quite complicated. For every property, retrieving a single one of these values involves three string lookups. First for the "_RNA_UI" group property, then another for a group with the property's name, then for the data value name. Not only is this inefficient, it's hard to reason about, unintuitive, and not at all self-explanatory. This commit replaces that system with a UI data struct directly in the IDProperty. If it's not used, the only cost is of a NULL pointer. Beyond storing the description, name, and RNA subtype, derived structs are used to store type specific UI data like min and max. Note that this means that addons using (abusing) the `_RNA_UI` custom property will have to be changed. A few places in the addons repository will be changed after this commit with D9919. **Before** Before, first the _RNA_UI subgroup is retrieved the _RNA_UI group, then the subgroup for the original property, then specific UI data is accessed like any other IDProperty. ``` prop = rna_idprop_ui_prop_get(idproperties_owner, "prop_name", create=True) prop["min"] = 1.0 ``` **After** After, the `id_properties_ui` function for RNA structs returns a python object specifically for managing an IDProperty's UI data. ``` ui_data = idproperties_owner.id_properties_ui("prop_name") ui_data.update(min=1.0) ``` In addition to `update`, there are now other functions: - `as_dict`: Returns a dictionary of the property's UI data. - `clear`: Removes the property's UI data. - `update_from`: Copy UI data between properties, even if they have different owners. Differential Revision: https://developer.blender.org/D9697
2021-08-27Fix crash sampling render result before any pixel was renderedSergey Sharybin
Caused by recent lazy render result passes allocation change.
2021-08-27Fix shadowing in sequencer iteratorSergey Sharybin
The __LINE__ was not properly expanded.
2021-08-27Fix "toggle shading" op not updating VR viewPeter Kim
Reason was that the notifier did not set the NS_VIEW3D_SHADING subtype, which the VR view listens for for a shading update. In the case of "toggle xray", a notifier was absent altogether.
2021-08-27VSE: Transform overwrite modeRichard Antalik
Add mode to overwrite strips on overlap instead of resolving overlap. When overlap is created, 3 things can happen: - On partial overlap, handles of overlapped strip are moved - On complete overlap with smaller strip, overlapped strip is split - On complete overlap with larger strip, overlapped strip is removed This mode can be enabled in header. Reviewed By: fsiddi, mano-wii Differential Revision: https://developer.blender.org/D11805
2021-08-27Cleanup: quiet maybe-used-uninitialized warningJacques Lucke
2021-08-27Fix T90907: RNA pointers for material slots are not unique across IDsPhilipp Oeser
Caused by {rB1a81d268a19f}. This caused e.g. ALT-clicking the 'Link' button to not propagate to other selected objects (same as the 'Copy To Selected' context menu entry). If these are not unique across IDs, checks in ui_selectcontext_begin() or copy_to_selected_button() could fail. Now offset by ID pointer. thx @JacquesLucke for clarification on the POINTER_* macros (and why not to use them)! Maniphest Tasks: T90907 Differential Revision: https://developer.blender.org/D12321
2021-08-27Fix XR action map index initializationPeter Kim
This reverts 151eed752b01. Originally thought it was necessary to initialize selected/active indices to -1 to prevent out-of-bounds list access, but this is not needed since null checks are already performed after obtaining list members via BLI_findlink(). In addition, leaving indices zero-initialized facilitates use of the Python API, for example when displaying action map information in a UI list.
2021-08-27Cleanup: clang-tidyCampbell Barton
2021-08-27Cleanup: utf8 stepping functionsCampbell Barton
Various changes to reduce risk of out of bounds errors in utf8 seeking. - Remove BLI_str_prev_char_utf8 This function could potentially scan past the beginning of a string. Use BLI_str_find_prev_char_utf8 instead which takes a limiting string start argument. - Swap arguments for BLI_str_find_prev_char_utf8 so the stepping argument is first and the limiting argument is last. This matches BLI_str_find_next_char_utf8. - Change behavior of these functions to return it the start or end pointers instead of NULL, which complicated use of these functions to calculate offsets. Callers that need to check if the limits were reached can compare the return value with the start/end pointers. - Return 'const char *' from these functions so they don't remove const from the input arguments.
2021-08-27Revert "Rename existing boolean node to mesh boolean"Hans Goudey
This reverts commit 6a5b04865834e9fed5a51bdf94ec7a58705b6e87. I'm in the wrong branch again!
2021-08-27Rename existing boolean node to mesh booleanHans Goudey
2021-08-27Merge branch 'master' into temp-geometry-nodes-fieldsHans Goudey
2021-08-27Revert "Rename existing boolean node to "Mesh Boolean""Hans Goudey
This reverts commit 469f752b8095908a8744251c3e90b508ec846d8d. I thought I was in a different branch.
2021-08-27Rename existing boolean node to "Mesh Boolean"Hans Goudey
2021-08-27Merge branch 'master' into temp-geometry-nodes-fields--fieldsHans Goudey
2021-08-27Fix loading packed fonts for sequencer stripsCampbell Barton
2021-08-27Cleanup: use early returnCampbell Barton
2021-08-27Fix sequencer font loading using an unexpected pathCampbell Barton
Reuse the existing font loading function which handles this case.
2021-08-27Modifier: smooth interpolation supportHenrik Dick
Add an option to the mask modifier to use the vertex weights to generate smooth in between geometry, instead of just deleting non complete faces. This can be used to make all sorts of smooth dissolve animations directly with geometry, which are usually hacked together with shaders. It also allows for implicit function plotting using geometry nodes and boolean like operations on non manifold geometry with the proximity modifier. Reviewed By: campbellbarton Ref D10979
2021-08-27Cleanup: warningsCampbell Barton
2021-08-27Add an index input function testHans Goudey
This one fails because `tot_initialized_` is 0 in the procedure evaluator. I'm not quite sure what that means yet.
2021-08-26Add a high-level description to the header fileHans Goudey
2021-08-26Refactor field storage again, to allow reuse of function outputsHans Goudey
2021-08-26Fix T90973: GPencil - Add buttons to move up and down vertex groupsAntonio Vazquez
These buttons were in Meshes but not for Grease Pencil. This patch add them in order to keep consistency. Reviewed By: HooglyBoogly Maniphest Tasks: T90973 Differential Revision: https://developer.blender.org/D12328
2021-08-26UI: Consistent Area Move Snapping LocationsHarley Acheson
Change Area Move snapping locations to even 12ths, rather than current eights and thirds, so snap distances are consistent sizes. Also adds snapping at minimum and maximum locations. see D11938 for details and illustrations. Differential Revision: https://developer.blender.org/D11938 Reviewed by Hans Goudey
2021-08-26Fix error in last commmitGermano Cavalcante
2021-08-26Fix T90817: Object Picker Doesn't Work on Second windowGermano Cavalcante
Solution similar to the one seen in {rBb94ab93dfb82}. The idea is to find the window and region under the cursor to use in the operator. Reviewed By: brecht Maniphest Tasks: T90817 Differential Revision: https://developer.blender.org/D12310
2021-08-26Cleanup: split eyedropper_color_sample_fl into more specific utilitiesGermano Cavalcante
The window and region find utility can be used in other eyedropper operators.
2021-08-26Cleanup: return window in 'WM_window_find_under_cursor'Germano Cavalcante
This better matches other functions like `BKE_screen_find_area_xy`.
2021-08-26Fix constant input testHans Goudey
2021-08-26PyAPI: GPU: expose clip distancesGermano Cavalcante
Now you can get a shader that uses Clip Planes and set the number of Clip Distanes with `gpu.state.clip_distances_set(value)`.
2021-08-26Merge branch 'temp-geometry-nodes-fields' into ↵Hans Goudey
temp-geometry-nodes-fields--fields
2021-08-26Merge branch 'master' into temp-geometry-nodes-fieldsHans Goudey
2021-08-26Cleanup: Use `ID_IS_LINKED` instead of direct `id.lib` pointer check.Bastien Montagne
2021-08-26Add locking fallback atomics implementationSergey Sharybin
Is used for platforms for which we do not have native implementation, such as MIPS, for example. It is possible to test locking implementation on local computer by defining `ATOMIC_FORCE_USE_FALLBACK` in the atomic_ops_unix.h file. Run full regression suit with the locking implementation on amd64 Linux platform and all tests passed. Having non-optimal but working implementation for odd-ball platforms seems to be a better choice than failing the build entirely. Differential Revision: https://developer.blender.org/D12313
2021-08-26Fix T90959: crash when hovering over empty data block socketJacques Lucke
2021-08-26Cleanup: use BLI_UTF8_MAX defineCampbell Barton
2021-08-26Cleanup: add ATTR_WARN_UNUSED_RESULT to BLI_string_utf8.hCampbell Barton
2021-08-26Decouple highlighted tiles from RenderPartSergey Sharybin
Should be no visible change on user side. Preparing for render parts removal as part of Cycles X project. Differential Revision: https://developer.blender.org/D12317
2021-08-26Fix issues with absolute time unitPhilipp Oeser
I think there are the following issues with {rB5fa6cdb77a98}: - if we introduce a PROP_UNIT_TIME_ABSOLUTE unit, shouldnt it be visible to RNA as well? - seems like a double entry sneaked into that commit? This is in preparation to use this for render time limit in cycles-x. ref. T90701 Maniphest Tasks: T90701 Differential Revision: https://developer.blender.org/D12315
2021-08-26Cleanup, quiet compile warningsKévin Dietrich
2021-08-26Cleanup: unused function from 082ddc9379b2bdc963635c1109fbd6c6bce91eedCampbell Barton
2021-08-26ToolSystem: increase the inset tool sizeCampbell Barton
The inset tool requires moving the cursor towards the center of the selection, making it nearly impossible to use the inset tool when the view was aligned with the vertical handle. Use custom settings for VIEW3D_GGT_tool_generic_handle_free to make it draw hollow, as large as the scale tool. Resolves T87991.
2021-08-26ToolSystem: support per-tool gizmo group propertiesCampbell Barton
Also add gizmo group example to the tool-template.
2021-08-26Cleanup: redundant update calls adding objectsCampbell Barton
These update calls are already performed by ED_object_add_type_with_obdata.