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-09-01Unittest: Extend and basic linking tests and add basic append tests.Bastien Montagne
We could check many more things still, but this should already cover most basic common cases.
2021-09-01Cleanup: clang-tidy utfconvCampbell Barton
2021-09-01Cleanup: use doxygen sections in py_capi_rna.cCampbell Barton
2021-09-01Cleanup: Better names for eDRWColorManagement.Jeroen Bakker
Names describe better what will be applied. Previous names were extracted from the original code, that weren't accurately named.
2021-09-01Cleanup: Use nullptr.Jeroen Bakker
2021-09-01Cleanup: use "pyrna_enum_*" prefix for RNA utility functionsCampbell Barton
2021-09-01Cleanup: move RNA utility functions into a generic moduleCampbell Barton
Avoid having to include bpy_rna.h for enum utility functions, recently added to idprop_py_ui_api.c.
2021-09-01BLI_string: return string length from BLI_string_flip_side_nameCampbell Barton
Useful for callers that need the string length.
2021-09-01Fix errors pasting flipped names in the action editorCampbell Barton
Use BLI_str_quoted_substr_range instead of in-line quote extraction to resolve: - Bone names containing quotes caused flip to fail. - Missing NULL check if a matching quote could not be found.
2021-09-01BLI_string: add BLI_str_quoted_substr_rangeCampbell Barton
This is a similar funciton to BLI_str_quoted_substrN that extracts the range of the quoted string instead of allocating a new string un-escaped string.
2021-09-01Cleanup: remove redundant strstr callsCampbell Barton
Rely on BLI_str_quoted_substrN to detect if the prefix exists since this function exists early there is no need to check before calling.
2021-08-31Fix: Incorrect versioning for float IDProperty UI dataHans Goudey
The code put the value from the "min" property into the "max" value. This would have crashed if min was null and max wasn't.
2021-08-31Fix T91088: Assigning custom property value in python resets UI dataHans Goudey
Assigning a new value to an IDProperty with the Python API would free the entire contents of the existing property, which unfortunately happened to include the UI data. The fix is to extract the UI data from the existing property before freeing its contents. An alternative would be adding another argument to `IDP_FreePropertyContent_ex`, but this solution is clearer and doesn't increase complexity elsewhere.
2021-08-31Fix T91084: Missing versioning for object pose bone property UI dataHans Goudey
Objects also have a list of "bone" pose channels embedded directly. These properties are user visible, so their UI data should be versioned.
2021-08-31Cleanup: Reduce variable scopeHans Goudey
2021-08-31Fix: Output int for precision in UI data as_dict methodHans Goudey
This is stored internally and used as an integer, so there is no need to convert it to a float for "as_dict". This was just an oversight.
2021-08-31Cleanup: pass value by ref in draw_color_managementJeroen Bakker
2021-08-31Fix T88433: no greaspencil depsgraph evaluation with certain driversPhilipp Oeser
When the same stroke was used as a driver variable, this could make this stroke already tagged as built in the course of building driver variables (via `build_gpencil`), but then important stuff from `build_object_data_geometry_datablock` could be missed later on (because both of these funtions use `checkIsBuiltAndTag`). Most importantly, setting up operations such as GEOMETRY_EVAL would be skipped entirely. `build_object_data_geometry_datablock` seems to cover greasepencil just fine (does the same as `build_gpencil` and more). Proposed solution is to remove `build_gpencil` entirely. In `build_id` it would then also call `build_object_data_geometry_datablock` for `ID_GD` IDs. Now the covered types that _call_ `build_object_data_geometry_datablock` match exactly to what is covered _inside_ `build_object_data_geometry_datablock`. Think this "duplication" of functionality was just overseen in rB66da2f537ae8 [`build_gpencil` existed long before and said commit made greasepencil a real object with geometry and such]. thx @JacquesLucke for additional input! Maniphest Tasks: T88433 Differential Revision: https://developer.blender.org/D12324
2021-08-31Fix T90989: Annotation opacity must not be animatableAntonio Vazquez
All props of annotations are not animatable by design and opacity must be equal. As the opacity is reused by gpencil objects, a new prop has been created in order to use different props for annotations and GP objects.
2021-08-31Cleanup: DRW color management seperated in multiple functions.Jeroen Bakker
2021-08-31Cleanup: Moved DRW_vieport_colormanagement_set to draw_color_management.Jeroen Bakker
2021-08-31Cleanup: Added const keywork to GPU_viewport_colorspace_set.Jeroen Bakker
2021-08-31Cleanup: Converted draw_color_management to CPP.Jeroen Bakker
2021-08-31Cleanup: Draw Manager remove do_color_management from drawing context.Jeroen Bakker
The do_color_management option was set, but never read.
2021-08-31Cleanup: Remove unused DRW_state_do_color_management.Jeroen Bakker
Function wasn't used since we migrated to the new color management pipeline. It is also not expected it would be needed in the current design.
2021-08-31Fix crash in recent commit.Jeroen Bakker
Crash introduced by {rB8e00db42961297facd521139762fe8c42042fc5c}, fixed with a null check. Object can be null.
2021-08-31Texture Paint: sync changing active texture in the Node Editor to thePhilipp Oeser
Image Editor When changing to another texture paint slot, the texture displayed in the viewport changes accordingly (as well as the image displayed in the Image Editor). When changing the active texture in the Node Editor though, only the texture displayed in the viewport changes. This was mentioned in T88788 and I am not 100% sure this is desired in all scenarios (or at all), it should be seen in tandem of D11497. This change makes it so that the Image Editor changes to the image we changed to in the Node Editor (keeping them in sync). If this is not desired in all cases, this could be made an option. ref T88788 ref D11496 ref D11497 Maniphest Tasks: T88788 Differential Revision: https://developer.blender.org/D11498
2021-08-31Texture Paint: sync changing active texture in the node editor to thePhilipp Oeser
active paint slot When changing to another texture paint slot, the texture displayed in the viewport changes accordingly (as well as the image displayed in the Image Editor). When changing the active texture in the Node Editor though, only the texture displayed in the viewport changes. This _can_ be confusing because you can end up painting on a texture that you are not looking at in the viewport (so you dont have any feedback whatsoever). Not 100% sure this is desired in all scenarios, but this change makes it so that the active paint slot changes to the one that uses the texture we chaged to in the Node Editor (keeping them in sync). If this is not desired in all cases, this could be made an option. ref T88788 ref D11496 Maniphest Tasks: T88788 Differential Revision: https://developer.blender.org/D11497
2021-08-31Fix missing render result when using region renderSergey Sharybin
Caused by lazy allocation of passes.
2021-08-31Fix T91060: GPencil Time Offset Modifier breaks evaluation timePhilipp Oeser
Caused by {rBf3bf87e5887c}. When using a GPencil Time Offset Modifier, the bGPDlayer>actframe can be NULL. This can be determined though, but above optimization commit skipped getting the active frame in this case entirely (with the intention to only get it if framenumbers did not match). Now also call BKE_gpencil_layer_frame_get() if actframe is NULL in order to fetch a valid one if present. Maniphest Tasks: T91060 Differential Revision: https://developer.blender.org/D12355
2021-08-31Fix possible wrongly highlighted tilesSergey Sharybin
Run into it when was re-working tiles in the Cycles X project. Make sure the storage of highlighted tiles is emptied when the render is finished or cancelled). The error is only possible to happen if the engine did not do something correct, but is still good to deal with such situations more gracefully.
2021-08-31Fix AssetBrowser UI errorsPhilipp Oeser
Steps to reproduce: - enable Extended Asset Browser - open a regular File Browser gives: "rna_uiItemR: property not found: FileSelectParams.asset_category" Now do proper poll. Differential Revision: https://developer.blender.org/D12350
2021-08-31Cleanup: remove unnecessary obedit argument from ED_space_image_setCampbell Barton
This was left over from when changing the image set the faces texture.
2021-08-31Fix: Weightpaint overlay not visible when display type wire/boundbox.Jeroen Bakker
When the object display type was set to wireframe or boundbox the depth buffer wasn't updated resulting in not visible weightpaint overlay. Thanks to Demeter Dzadik for mentioning it.
2021-08-31Measure tool: Add support to restrict dimension to one axisEric Abrahamsson
Support axis constraints for the measure tool. Press X, Y or Z to restrict the dimension to that axis, it's also possible to toggle between orientations matching transform. Reviewed By: campbellbarton Ref D10872
2021-08-31Transform: avoid passing the context to extended orientation functionsCampbell Barton
This makes it possible to calculate orientation from functions that don't have the context.
2021-08-31Cleanup: Use C style comments for descriptive textCampbell Barton
2021-08-31Fix T91054: List of strings custom property cannot be editedHans Goudey
This commit fixes editing the value of a list of strings custom property with the "Custom Property Edit" operator. This sort of custom property isn't very well supported in general, but editing the values should work properly anyway. Differential Revision: https://developer.blender.org/D12348
2021-08-31Cleanup: add CTX_data_pointer_set_ptr & CTX_data_list_add_ptrCampbell Barton
Many callers expanded a PointerRNA argument, so add a version of these functions that takes a PointerRNA.
2021-08-31Fix assigning shortcuts that include array indicesCampbell Barton
Assigning a shortcut to bone layers for example, raised a Python exception when used.
2021-08-31Fix T90723: User menus & shortcuts fails for sequences, bones & NLACampbell Barton
Use context members instead of not working well or failing due to: - Missing "path" functions (in the case of edit-bones). - Paths containing names (in the case of sequence-strips or pose-bones). While technically correct it's not useful for shortcuts or menu items to lookup data by name.
2021-08-31Fix logical error resolving RNA pathsCampbell Barton
Only append RNA_path_from_ID_to_struct to context attributes if those paths resolve to ID types. Also simplify creating RNA paths by adding utility functions: - WM_context_path_resolve_property_full - WM_context_path_resolve_full Part of fix for T90723.
2021-08-31Context: add "active_nla_track" & "active_nla_strip" context membersCampbell Barton
Selection was already accessible but not active. Add utility functions: - ANIM_nla_context_track to access the active track, following the convention of ANIM_nla_context_strip. - ANIM_nla_context_*_ptr versions of these functions, needed to for creating context members to access the ID pointer. Part of fix for T90723.
2021-08-31Fix 'WM_window_find_under_cursor'Germano Cavalcante
This function was not working if the window is partially out of screen space.
2021-08-31Fix T90988: Incorrect speed effect strip mathRichard Antalik
Math implemented in 929d7597b345 was incorrect, but also inconsistent with previous behavior. `SEQ_SPEED_STRETCH` should change length only when right handle is moved. This is now documented in code.
2021-08-31Fix VSE move_to_meta function moving meta stripRichard Antalik
API function `move_to_meta` should move strips without changing context data like `MetaStack` that tells UI which meta strip should be displayed and operated upon. `SEQ_time_update_sequence` relied on `MetaStack` to update meta strip content length. Instead of changing function `SEQ_time_update_sequence`, use function `SEQ_time_update_meta_strip_range` directly. This is because caller would have to be aware of parent meta strip that needs update anyway.
2021-08-31PyDoc: Fix compliation warningAaron Carlisle
2021-08-31PyDoc: Fix compilation after recent contex_member additionAaron Carlisle
Fixes missing change needed for rB0a8f53a7b847d9c8bdcefc025de70fd2608012b7
2021-08-31Cleanup: sequencer operatorsCampbell Barton
- Use name 'strip' instead of 's' - Assign a variable to 'scene' instead of accessing from context. - Avoid temporary variable for swapping values.
2021-08-31Cleanup: use new active_sequence_strip context attributeCampbell Barton