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
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-11Fix T63467: Edge/vertex selection isnt working properly with X-ray set to 1Sebastian Parborg
Edit mode shows the mesh elements in X-ray mode even if alpha is set to 1. Now the code takes this into account so that you can still select visible mesh elements in X-ray edit mode. view3d_draw_legacy need to be updated with the new XRAY flag macros to avoid crashes. Additional cleanup of the XRAY macro flags were done.
2019-04-09Fix T62114: Wireframe mode selection: selects backside objects when clicking ↵Sebastian Parborg
frontside object in 3d-window Now the depth order of objects when trying to select them is only used when not in X-ray mode. Before, this was only the case in wireframe mode regardless of X-ray settings. I've also unified the usage of V3D_XRAY and XRAY_FLAG as they were basically copies of each other. Reviewed By: Clément Differential Revision: http://developer.blender.org/D4504
2019-04-05Cleanup: Fix compiler warningAntonioya
2019-03-29GPU: Fix color difference when rendering to gpu_py_offscreenClément Foucault
Now we do the color management inside the Draw manager and output CM byte buffer.
2019-03-26Cleanup: remove unused functionCampbell Barton
2019-03-15GPU: Simplify select shaders.mano-wii
The shaders are: `GPU_SHADER_3D_FLAT_SELECT_ID` and `GPU_SHADER_3D_UNIFORM_SELECT_ID`. This commit allows the drawing of the mesh select ids to be done on a 32UI format texture. This simplifies the shader that previously acted on the backbuffer and had to do an uint to rgba conversion. Differential Revision: https://developer.blender.org/D4350
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-03-053D View: move pre-select mesh element access into gizmo APICampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-28Cleanup: sort forward declarations of enum & structCampbell Barton
Done using: source/tools/utils_maintenance/c_sort_blocks.py
2019-01-233D View: draw clipping regionCampbell Barton
Only for workbench solid/wire modes.
2019-01-233D View: add back clipping draw code (disabled)Campbell Barton
Disabled for now because of draw-order issues. Also move clipping test out of view3d_draw_legacy.c
2019-01-15Cleanup: commas at the end of enumsCampbell Barton
Without this clang-format may wrap them onto a single line.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-11Fix T57371: Generative modifiers in editmode display vertex group weightsClément Foucault
In a better way... 6dbfd7f6d6bc would make the final vertex weights always calculated in edit mode. Now it's only if the option is enabled.
2018-12-30Cleanup: remove non-existing function declarationsCampbell Barton
2018-12-17DNA: clear / remove deprecated flagsCampbell Barton
- Clear deprecated flags for ID's: Scene, Sequence, World, Object & Mesh. - Clear deprecated flags for Spaces: outliner, 3D view & image. - Remove unused `Mesh.drawflag` - Remove unused `USER_ALLWINCODECS`, `USER_MMB_PASTE`. - Remove `V3D_SOLID_TEX` & `V3D_ZBUF_SELECT` - used in a few areas. - Flip `Object.empty_image_visibility_flag` (avoids do-version on each new flag) - Rename 'Backside' -> 'Back' in context of drawing - showing 'Back' makes sense.
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-23Add missing COW updates when selection changes in paint modes.Alexander Gavrilov
2018-11-23Cleanup: rename bone-select to xrayCampbell Barton
This shows bones in font and uses the xray toggle binding. Also 'bone select' isn't very meaningful on it's own.
2018-11-23Fix bone selection w/ mixed wpaint & pose modeCampbell Barton
2018-11-14Gizmo: get background color based on view optionCampbell Barton
2018-11-08Fix Cycles viewport render info overlapping other text.Brecht Van Lommel
Now it shows more compact info below the view/object name. Render time and memory usage is left out, as in most cases this is not so important. These could be added back optionally if needed.
2018-10-30Fix T56499: Adapt incremental snapping to orthographic viewport scale.mano-wii
2018-10-17Cleanup: better namingJacques Lucke
Suggested by Campbell here: https://developer.blender.org/rB09cd651bb7e59044cbcd0664e8b1064cb37734ed
2018-10-16View 3D: fix image dropping in 3d viewJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D3798
2018-10-15Mesh: remove DerivedMesh for face-map drawingCampbell Barton
2018-10-09Image Empties: Usability improvements and fixesJacques Lucke
- new "Align to View" option when loading a new image - automatically align to view when dropping an image into a viewport - larger default size for image empties - fix image empty gizmo in orthographic view - new "Align Objects to View" operator Reviewer: brecht Differential: https://developer.blender.org/D3778
2018-09-26Wireframe/Xray: Make Xray option local to wireframe modeClément Foucault
This commit make the Xray option for the wireframe different from the other shading mode. This makes it possible to rapidly switch between wireframe + Xray and Solid mode without Xray. Xray alpha is also decoupled. Both variables are duplicated and exposed separately through RNA.
2018-09-21Edit Mode: Merge Xray and "Limit selection to visible" options behaviourClément Foucault
We now treat Xray as being the mode where Limit selection to visible is off. If Xray is OFF, Limit selection to visible is considered ON. To allow 'see through wires' with solid shading (not Xray shading) we still draw solid shading if Xray is ON with Xray Alpha set to 1.0.
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-203D View: add clip argument to win_to_3d_on_planeCampbell Barton
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-20Cleanup: renaming missed from mergeCampbell Barton
2018-09-203D View: add a simple un-clipped win_to_rayCampbell Barton
2018-09-20Cleanup: rename 3D view ray calculation functionsCampbell Barton
Using near far and optionally clipping planes is involved and not needed in many cases. Rename so a simpler version of this function can be added.
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-203D View: point-on-plane from screen location utilityCampbell Barton
2018-08-16Cursor Tool: add transform orientation typeCampbell Barton
Support using the current transform orientation when placing the cursor. See: T55036
2018-07-30Silencing a bunch of compiler warningsJoshua Leung
Most of these were mismatched const qualifiers
2018-07-17Cleanup: moving shading type into View3DShading.Brecht Van Lommel
So all shading settings are in this struct and can be reused in the OpenGL render engine.
2018-07-02Merge branch 'master' into blender2.8Campbell Barton
2018-07-02Cleanup: use bool for poll functionsCampbell Barton
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-22Add depth and orientation options to 3D cursor toolCampbell Barton