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
2016-07-31simplify redundant conditionalsMike Erwin
The redundant terms were harmless but check an expression we already know to be true (from earlier in the same conditional). Found by PVS-Studio T48917
2016-07-06Replace of (id->lib != NULL) check by meaningful macro.Bastien Montagne
Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly, to easily change it (see work done in asset-engine branch). Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer, and not a check whether ID is linked or not. Will have a closer look at it later. Reviewers: campbellbarton, brecht, sergey Differential Revision: https://developer.blender.org/D2082
2016-07-02Cleanup: comment blocksCampbell Barton
2016-06-25GPU: move select index code out of WMCampbell Barton
This avoids bad-level calls.
2016-06-23Fix T48658: Cycles render & render preview corrupts particlesCampbell Barton
Replaces `G.is_rendering` with `use_render_params` argument. This is needed for Cycles, which attempts to restore render-preview settings from particles, after it gets its own particle data, but fails to restore because `G.is_rendering` was being checked in psys_cache_paths (and other places).
2016-06-22EditMesh: Avoid creating deform-vert layer every redrawCampbell Barton
Getting a new edit-derived-bmesh was always creating a deform-vert array, even when it wasn't needed. Since this was called on redraw, in many cases it was doing it unnecessarily. Now pass in a custom-data mask and only fill in deform-verts when needed. Gives noticeable drawing speedup (~10-30% here).
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-13Fix glShadeModel being left flat in edit-mode drawCampbell Barton
2016-06-12Fix T48604: Crash on undo due to bad drawing code.Bastien Montagne
Short story: draw_lamp would add itself to delayed transp drawing list from 'xray' drawing step. This was broken, since delayed transp drawing list is always handled **before** delayed xray one. After undo it lead to segfault crash, v3d->afterdraw_transp still having reference to old freed scene's base. Also added asserts that those afterdraw list are empty at end of drawing step, should help avoiding that kind of issue in future.
2016-06-10GPU: use basic-shader for line-stippleCampbell Barton
2016-06-10Remove redundant GL attribute push/popCampbell Barton
Stipple isnt left on during object drawing
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-05-22Use previous shading mode for border render in viewportSergey Sharybin
This way we can have border rendered part in the viewport and have everything else material/texture shaded.
2016-04-20Fix T47891: Edges throw shadow in edit modeCampbell Barton
2016-03-23Fix T47890: Vertex mask w/ subsurf select failsCampbell Barton
Regression in GL refactor
2016-03-04Curve/line width change broke outline drawingCampbell Barton
Partially revert e29a5ba6
2016-02-29Cleanup: Duplicated functionJulian Eisel
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
2016-02-27Fix T47582: Curve handle thickness regressionCampbell Barton
2016-02-27Fix T47586: Nurbs handle thickness regressionCampbell Barton
2016-02-27Fix T47583: Mesh wire edge thickness regressionCampbell Barton
2016-02-22Don't draw object center when outside the viewCampbell Barton
2016-02-22Fix line-width (drawing hair at wrong width)Campbell Barton
2016-02-22Fix T47517: "Show Weights" edit-mode failsCampbell Barton
Don't use materials when showing weight colors.
2016-02-20Only use outlines around faces for surface objectsCampbell Barton
Was drawing wire when mixed with non-wire nurbs.
2016-02-20Fix nurbs surface drawing using material for linesCampbell Barton
Also reduce context switching
2016-02-19Fix T47454: Line width display errorCampbell Barton
Note, there are still cases where nurbs surfaces display double line width, but this isn't a regression from previous releases.
2016-02-17Add missing glLineWidth callCampbell Barton
2016-02-14Fix T47404: Bones get draw fat line in pose modeJulian Eisel
Removed this glLineWidth call in rBe8d7a0206e99, thought it wasn't needed. Really hope this was the last line width issue for now :/
2016-02-11Fix more cases where gpencil thickness controls line thickness of 3D view ↵Julian Eisel
elements We now simple set glLineWidth to 1 once before drawing objects. This way we don't have to do it all over. Fixes T47396.
2016-02-10Fix curves drawn with wrong line widthJulian Eisel
Selected/Active curves were drawn with too high line width in Object mode.
2016-02-09Add missing gl line width for curve normalsCampbell Barton
2016-02-03Cleanup: correct comment, unused varCampbell Barton
2016-02-02Fix T46933: Bone axes letters may not be visibleCampbell Barton
Now axis letters are view aligned.
2016-01-25Smoke viewport: also draw voxel size indicator when adaptive domain isKévin Dietrich
not used. This is kinda how it was in the openvdb branch but was accidentaly put in the adaptive domain draw scope during final review.
2016-01-25Correct line-width for armaturesCampbell Barton
2016-01-23Implementation of OpenVDB as a possible cache format for smokeKévin Dietrich
simulations. This commits implements OpenVDB as an extra cache format in the Point Cache system for smoke simulations. Compilation with the library is turned off by default for now, and shall be enabled when the library is present. A documentation of its doings is available here: http:// wiki.blender.org/index.php/User:Kevindietrich/OpenVDBSmokeExport. A guide to compile OpenVDB can be found here (Linux): http:// wiki.blender.org/index.php?title=Dev:Doc/Building_Blender/Linux/ Dependencies_From_Source#OpenVDB Reviewers: sergey, lukastoenne, brecht, campbellbarton Reviewed By: brecht, campbellbarton Subscribers: galenb, Blendify, robocyte, Lapineige, bliblubli, jtheninja, lukasstockner97, dingto, brecht Differential Revision: https://developer.blender.org/D1721
2016-01-23OpenGL: combine multiple GL_LINES into fewer draw callsMike Erwin
Incidentally, one of the removed glBegin(GL_LINE) calls should’ve used GL_LINES with an S, which was a GL_INVALID_ENUM error.
2016-01-23OpenGL: call glLineWidth less oftenMike Erwin
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.
2016-01-23Math Lib: optimize segment-plane clippingCampbell Barton
Calculate the clipped min/max factor along the segment, only applying to the coordinates at the end (will give better precision too). Also make split input/output args.
2016-01-16OpenGL: pull glBegin/End out of loopMike Erwin
so that all points here are drawn between one Begin/End pair.
2016-01-16OpenGL: fixes related to GL_POINTSMike Erwin
I put all usage of GL_POINTS under the microscope. Fixed problems & optimized a couple of spots. - reduce calls to glPointSize by about 50% - draw selected & unselected vertices together for UV editor & EditMesh - draw initial gpencil stroke point the proper size - a few other smaller fixes New policy: each GL_POINTS draw call needs to set its desired point size. This eliminates half our calls to glPointSize (setting it back to its 1.0 default after every draw).
2016-01-08OpenGL: remove glPointSize hackMike Erwin
2016-01-05OpenGL: various small optimizationsMike Erwin
- set uniform colors outside of loop - replace glBegin/End with DrawRangeElements - use GL_LINES when drawing single lines
2016-01-04minor cleanupMike Erwin
2016-01-04OpenGL: image drawing tweaksMike Erwin
- no need to allocate client memory up front - delete unneeded GL calls - set default alpha test function on exit
2015-12-28Minor cleanup (paranoid checks) and fixes from coverity.Bastien Montagne
2015-12-22Fix T47003: OpenGL draw missing selection highlight when using hidden wire.Brecht Van Lommel
2015-12-16cleanup: C99Mike Erwin
- for loop scope - tighter scope on local vars - more bool - more const
2015-12-08OpenGL: split off framebuffer, shader and texture code into separate files.Brecht Van Lommel
2015-12-08OpenGL: remove non-power-of-two texture check, where even ES 2.0 does not ↵Brecht Van Lommel
need it.