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
2020-04-03Cleanup: split ED_mesh_mirror_*_table into multiple functionsCampbell Barton
Spatial & topology mirror table each used a single function taking a char as an identifier. Split these into begin/end/lookup functions.
2020-04-03Cleanup: split `BKE_anim.h` and `anim.c` into smaller piecesSybren A. Stüvel
The files are now split up into the following sections: - `BKE_anim_path.h` and `anim_path.c` for path/curve functions. - `BKE_anim_visualization.h` and `anim_visualizationanim_path.c` for animation visualization (mostly motion paths). - `BKE_duplilist.h` for DupliList function declarations. These were already implemented in `object_dupli.c`, so they were rather out of place being declared in `BKE_anim.h` in the first place. No functional changes.
2020-04-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-30Fix T75142: No autokeying with pose mode X-MirrorSybren A. Stüvel
This was caused by the removal of some `BONE_TRANSFORM_MIRROR` flag handling in rBde530a95dc7b482dc22c933b9b8b2a98c79b5663. I simply restored those lines that caused this issue.
2020-03-30Cleanup: reduce code indentation in autokeyframe_pose()Sybren A. Stüvel
This makes the code a bit simpler to follow, by replacing `if (x) { all the code here }` with `if (!x) { continue; }` and un-indenting the remaining code, and by returning early. No functional changes.
2020-03-27Cleanup: rename WM_modalkeymap API names, matching WM_keymapCampbell Barton
Rename: - WM_modalkeymap_add to WM_modalkeymap_ensure - WM_modalkeymap_get to WM_modalkeymap_find
2020-03-26Fix crashes from various missing checks in operator poll functionsCampbell Barton
Issues exposed by 'bl_run_operators.py' utility.
2020-03-25Fix T74846: UV gizmo swaps X/YCampbell Barton
2020-03-25Cleanup: use 'r_' prefix for output argumentsCampbell Barton
Also pass some args as 'const'.
2020-03-25Cleanup: update doxy sectionsCampbell Barton
2020-03-23Revert "COW: Edit Mesh: Do not copy the looptris pointer"Germano Cavalcante
The looptri is repeated in the linked Meshes but the pointer is only referenced in the evaluated ones. This reverts commit 64982e213f014123d1b0406cf9ae893910a6a3d3.
2020-03-23COW: Edit Mesh: Do not copy the looptris pointerGermano Cavalcante
No functional changes. Differential Revision: https://developer.blender.org/D7173
2020-03-20GPencil: Fix unreported slow transform with proportional editionAntonio Vazquez
Now a hash is used to avoid double update of the same stroke. The old method was not correct with proportional edition.
2020-03-19GPencil: Cleanup - Split BKE_gpencil.h geometry functions into ↵Antonio Vazquez
BKE_gpencil_geom.h This split prepare the code for future geometry functions.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-19UI: add view aligned gizmo colorCampbell Barton
Was hard coded to white making white backgrounds impractical. D7162 by @billreynish with edits.
2020-03-19Cleanup: shadow warningCampbell Barton
2020-03-18Cleanup: Resolve HKEY conflictRay Molenkamp
Both the MS headers and blender headers define the HKEY which gives all kind of inclusion order issues. This diff renames all *KEY constants to EVT_*KEY to resolve this conflict. Reviewed By: brecht , dfelinto Differential Revision: http://developer.blender.org/D7164
2020-03-18Fix T74876: Crash when snapping to facesGermano Cavalcante
The crash occurs after operators change the amount of editmesh looptris. The looptris of the evaluated object's editmesh are not updated.
2020-03-18Cleanup: Rename variablesGermano Cavalcante
2020-03-17Cleanup: rename 'centre' to 'center' in View3DCampbell Barton
2020-03-16Fix T61234 Mirroring Grease Pencil keyframes in the Dopesheet failsSybren A. Stüvel
`ANIM_animdata_update()` did not sort grease pencil frames. A pre-existing comment stated this wouldn't be necessary as `posttrans_gpd_clean()` already does this. However, this is only applicable when the change is performed via the transform system. The mirror operator doesn't call `posttrans_gpd_clean()`, invalidating the assumption in the comment. I moved the sorting code into `BKE_gpencil_layer_frames_sort()`, which is now called from both `ANIM_animdata_update()` and `posttrans_gpd_clean()`.
2020-03-14Cleanup: sort file lists & struct declatationsCampbell Barton
2020-03-12Fix T74605 Key Indicator for motion paths not updating for objectsSybren A. Stüvel
This fixes a functional change in 4db2a08281f8495421938e0b2f6a802420afba36, which was marked as 'should have non-functional changes only'.
2020-03-12Cleanup: spelling, clang-formatCampbell Barton
2020-03-11Cleanup: spellingCampbell Barton
2020-03-10Fix vertex slide deselecting facesCampbell Barton
Regression from 9a5df92c1bdee547dd38a846c22d91c05d45ff02
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
2020-03-09Cleanup: Replace ABS/SQUARE/CUBE with function callsSergey Sharybin
While it might be handy to have type-less functionality which is similar to how C++ math is implemented it can not be easily achieved with just preprocessor in a way which does not have side-effects on wrong usage. There macros where often used on a non-trivial expression, and there was at least one usage where it was causing an actual side effect/bug on Windows (see change around square_f(sh[index++]) in studiolight.c). For such cases it is handy to have a function which is guaranteed to have zero side-effects. The motivation behind actually removing the macros is that there is already a way to do similar calculation. Also, not having such macros is a way to guarantee that its usage is not changed in a way which have side-effects and that it's not used as an inspiration for cases where it should not be used. Differential Revision: https://developer.blender.org/D7051
2020-03-09Transform Snap Object: Remove depsgraph when creating contextGermano Cavalcante
Currently, this change does not bring functional changes. But it is necessary to extend the use of the snap system for gizmos, since, after a Undo, the `depsgraph` pointed by the `snap_context` has its memory invalidated. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D7013
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06Keymap: ignore repeat events for transform actionsCampbell Barton
Resolves T54297
2020-03-06Cleanup: keyframing return argumentsCampbell Barton
- Use 'int' for counters instead of short. - Use 'bool' instead of a counter when only a change is being detected. - Use typed enum for keying set flags. - Include in comments when a negate error code may be returned.
2020-03-04Cleanup: spellingCampbell Barton
2020-03-03Fix dope sheet (Mask mode) keyframe editing not image/clip viewsCampbell Barton
Every key-frame edit was updating all grease pencil & mask data-blocks. Change the logic to only update edited data-blocks.
2020-03-03Fix T74292: Dope sheet (Mask mode) keyframe editing misses updateSybren A. Stüvel
2020-03-03Cleanup: Use a utility function to obtain the bvh_cacheGermano Cavalcante
2020-03-03Missed in the last commitGermano Cavalcante
2020-03-03Transform Snap: Clear 'SnapObjectData' after changes in the geometryGermano Cavalcante
Differential Revision: https://developer.blender.org/D6927
2020-03-03Revert "Transform Snap: Clear 'SnapObjectData' after changes in the geometry"Germano Cavalcante
This reverts commit fe7c4fb4a2d5d48555ebb9178fd5e7a8c1ace1ee. It does not work because `mesh_eval_cage` and `mesh_eval_final` always is `NULL` in this case.
2020-03-03Transform Snap: Clear 'SnapObjectData' after changes in the geometryGermano Cavalcante
Differential Revision: https://developer.blender.org/D6927
2020-02-29Cleanup: Move transform_constraints declarations to its own headerGermano Cavalcante
2020-02-28Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. This previously caused a bug in T74283, that should be fixed now. Differential Revision: https://developer.blender.org/D6695
2020-02-28Revert "Objects: make evaluated data runtime storage usable for types other ↵Brecht Van Lommel
than mesh" This reverts commit f2b95b9eae2ee913c99cff7595527b18d8b49d0a. Fix T74283: modifier display lost when moving object in edit mode. The cause is not immediately obvious so better to revert and look at this carefully.
2020-02-28Cleanup: warnings using 'abs' on float valuesCampbell Barton
2020-02-28Cleanup: transform commentsGermano Cavalcante
2020-02-27Transform: Remove 'mouse_coordinate_override' propertyGermano Cavalcante
This property depends on the view that can change when redoing.
2020-02-27Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. Differential Revision: https://developer.blender.org/D6695
2020-02-27Transform Snap: Unify SnapObjectData structGermano Cavalcante
This simplifies the code, and will allow to switch modes.
2020-02-21Fix regression in the orientation of transform Redo operationsGermano Cavalcante
Caused by rBb3abd2e102df