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-08-20GPUState: Use explicit depth test enumClément Foucault
2020-08-18GPUState: GPU_blend final API renamingClément Foucault
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation.
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-06-16Cleanup: unused headers, spellingCampbell Barton
2020-06-09Fix T72936: Incorrect gizmo orientation with inherit rotation disabledCampbell Barton
2020-05-30Fix T77166: Transforming bone with constraint does not follow mouse positionGermano Cavalcante
Bug introduced in rBc75a665c442e
2020-05-26Curves: Implement Handles for selected points onlyAntonio Vazquez
When editing a complex curve is very annoying to have all handles at a time. Also, this is a requirement for the current GSoC Edit Grease Pencil using curves. I have seen that this improvement can be used in any other area of blender, so I have decided to publish the option in the overlay panel.. Reviewed By: fclem, #user_interface, billreynish, Severin Differential Revision: https://developer.blender.org/D7754
2020-05-22Transform: refactoring - unify constraint and default orientationGermano Cavalcante
2020-05-20Transform: Don't negate the z axis of the View orientationGermano Cavalcante
This was so because of the rotate transformation mode but it can make other modes confusing and add unnecessary complexity.
2020-05-19Merge branch 'blender-v2.83-release'Germano Cavalcante
2020-05-19Fix T73594: Scale Cage sometimes has incorrect center in edit modeGermano Cavalcante
Differential Revision: https://developer.blender.org/D6803
2020-05-14Merge branch 'blender-v2.83-release'Clément Foucault
2020-05-14Fix T76413 Gizmos: Trackball's preselection highlighting is too brightClément Foucault
This was caused by the sRGB viewport changes. The fix is to modify the alpha values manually.
2020-05-11Fix T76630: Crash when changing transform value with Custom OrientationGermano Cavalcante
2020-04-29Transform Orientation RefactorGermano Cavalcante
- Use `t->spacemtx` as the orientation matrix instead `t->orient_matrix`. - Unify constraint behavior between modal and non-modal. - Simplify code to remove old workarounds and rearrange struct members. This fix T66142 since the actual `orient_type` (in the case `V3D_ORIENT_NORMAL`) is used during Redo instead of always using `V3D_ORIENT_CUSTOM_MATRIX`). Differential Revision: https://developer.blender.org/D7469
2020-04-28Cleanup: Use more descriptive names for functionsGermano Cavalcante
count_set_pose_transflags --> transform_convert_pose_transflags_update count_bone_select --> armature_bone_transflags_update_recursive Also don't mix `BONE_TRANSFORM_MIRROR` with `BONE_TRANSFORM` in transflag. (This was a mess introduced in rBde530a95dc7b).
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Rename ScrArea variables from sa to areaJulian Eisel
Follow up of b2ee1770d4c3 and 10c2254d412d, part of T74432. Now the area and region naming conventions should be less confusing. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
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-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-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-02-14UI: Allow gizmo-only redraw taggingJulian Eisel
NOTE: This change shouldn't have any visible effect. It's just the first (easiest) step towards decoupling gizmo redraws from viewport redraws. We currently redraw the entire region whenever a gizmo needs redrawing, which would be nice to avoid in the future, see T73198. The first step towards this would be having a separate tag for them, which is what this patch implements. The term "editor-overlays" was chosen because for the forseeable future, we'll also have to redraw non-gizmo overlays in-between drawing 3D and 2D gizmos. Namely annotations. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6838
2020-02-05Fix T67641 Gizmo3D: Transform gizmo disappear in very close viewClément Foucault
This was caused but a workaround for not selecting the gizmos in camera view. We lower the threshold to make it work on maximum zoom level.
2019-12-18Gizmo: add the ability to postpone refreshing while tweakingCampbell Barton
This resolves a logical problem using tweak as a fallback tool. See: T66304#828742 The select action would immediately show the gizmo underneath it, then the tweak would be handled by the gizmo instead of moving the item under the cursor. Currently this works by hiding the gizmo until the tweak event ends. While it's simpler to check if the gizmo received a mouse-down event, it causes flickering before each drag event which feels like a glitch. This is optional for each gizmo type because there are cases where this can be useful to activate the gizmo immediately (mesh rip for example).
2019-12-12Fix tool fallback being ignored with transform gizmosCampbell Barton
This only worked once the gizmo was displayed.
2019-12-09Gizmo: add view aligned gizmo for shearCampbell Barton
2019-12-06Tool System: experimental fallback tool supportCampbell Barton
Implement T66304 as an experimental option, available under the preferences "Experimental" section. - When enabled most tools in the 3D view have a gizmo. - Dragging outside the gizmo uses the 'fallback' tool. - The fallback tool can be changed or disabled in the tool options or from a pie menu (Alt-W).
2019-10-28Cleanup: correct argument type mismatchCampbell Barton
Add transform_snap.h header which includes DNA enum.
2019-10-24Fix T60689: Flip Active/Selected bone fails in weight paint modeCampbell Barton
Multiple selection operations failed with weight-paint + pose mode. Weight-paint + pose mode is a special case that doesn't support multi-pose mode, so we need to use this instead of the generic function.
2019-10-10UI: Only hide locked transform manipulator axes for matching spacesJulian Eisel
The manipulator would hide axes that were locked, even if the lock was applied to a different space. That would lead to confusing behavior of the manipulator. E.g.: * Add armature * Enter Pose Mode and select the bone * Lock X and Y location in the Sidebar * Enable the Move tool * Only the Y axis is visible, but doesn't do anything on dragging The manipulator would only show the Y axes, even though the lock is applied to the bone's local Y axis, which matches the manipulators Z axis. Differential Revision: D6021 Reviewed by: Brecht van Lommel, William Reynish
2019-10-10Fix missing manipulator update when toggling bone lockJulian Eisel
2019-10-10Fix: Manipulator visible if root or tip of locked bone is selectedJulian Eisel
When an edit-bone was locked, we hid the transform manipulator for it. But only if the bone itself was selected, not when the root or tip were selected, even though they are locked then too. So this makes sure the manipulator is shown in neither case.
2019-09-26Fix T69488: Hair particles: rekey disolves the hair then crashesPhilipp Oeser
Caused by rB914427afd512. Since above commit 'pe_get_current' checks for an active depsgraph. This caused the skipping of handling `PT_CACHE_EDIT_UPDATE_PARTICLE_FROM_EVAL`for everything calling `PE_get_current` (this passes a NULL depsgraph as opposed to `PE_create_current`). So we now pass a depsgraph here as well... Note there are two RNA cases where we pass NULL, namely - rna_ParticleEdit_editable_get - rna_ParticleEdit_hair_get I guess these should be fine though (no functional change to current master) Reviewers: sergey Maniphest Tasks: T69488 Differential Revision: https://developer.blender.org/D5752
2019-09-20Fix T69797: Shear gizmo doesn't update on pivot point changeCampbell Barton
2019-09-20Fix T69999: Active element pivot crashes without active objectCampbell Barton
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
2019-09-11Sculpt: Transform toolPablo Dobarro
The sculpt mode transform tool applies the sculpt pivot transformation to all vertices, taking XYZ symmetry into account. This commit also includes an operator to set the pivot point initial position. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5717
2019-09-05Transform: Split transform_conversions into multiple files.mano-wii
Part of T68836 `transform conversions.c` is a file that is getting too big (almost 10,000 lines). So it's a good idea to split it into smaller files. differential revision: https://developer.blender.org/D5677
2019-09-04Transform: remove X/Y shear tool optionCampbell Barton
Instead use vertical cursor motion for Y axis shear. This removes the shear_axis option completely since we now have two axis options used by shear it's not needed.
2019-08-29Fix T69273: Rotate tool gizmo not showing incremental snapping tick marksmano-wii
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-02Cleanup: spellingCampbell Barton
2019-07-01UI: increase size of scale gizmo circleCampbell Barton
The scale gizmo wasn't working usefully for uniform scale.
2019-06-07Fix T63744: Overlapping axis gizmo for 3D view translate & scaleCampbell Barton
2019-06-07Keymap: gizmos now use a map that optionally activates on pressCampbell Barton
The legacy keymap now activates on press.
2019-05-30Gizmo: activate some gizmos on drag instead of pressCampbell Barton
Use drag-only keyamp to adjust gizmos which use drag motion to change a value. By default gizmos still activate on press. This allows for left click select to be used with transform without the gizmos getting in the way. Even though this isn't necessary for right click select it allows click events to pass through and be used by tools which can be useful. Resolves T63996
2019-05-29Fix T64817: Active tool gizmo doesn't respect toggleCampbell Barton
Error in 14884cda1ff56 D4973 by @cto.abid
2019-05-27Gizmo: add event argument to invoke_prepare callbackCampbell Barton
2019-05-24Keymap: use a generic gizmo keymap by defaultCampbell Barton
While support for gizmo specific keymaps remains, this should only be used if a gizmo-group is doing something that requires one. There was also a hidden limitation that meant only the last registered tweak keymap would ever be used. For now leave this using the generic keymap since all tweak modal keymaps were using the same template anyway.