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
2012-05-04Renamed "fake" OpenGL identifiers.Jason Wilkins
Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the glreport.py tool. Most of these were in comments so I just rephrased the comments. There were a couple of static functions/macros that were easy enough to rename. Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.
2012-05-01Fix #31195: subsurf modifier draws wrong vertex colors.Brecht Van Lommel
2012-04-30Fix #31164: constructive modifier followed by subsurf modifier did not showBrecht Van Lommel
face smoothing flags correctly. In fact it would do an invalid memory access, using the -1 original index.
2012-04-28style cleanup: format 'for' loop macros the same as for loops, some renaming ↵Campbell Barton
to BLI_array macros.
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton
2012-04-22style cleanup: commentsCampbell Barton
2012-04-22style cleanupCampbell Barton
2012-04-12Fix: subsurf UV was not working correct with n-gons, it still had hardcodedBrecht Van Lommel
4 vertices per face code in some places.
2012-04-09use 'const float[3]' for derived mesh callback args.Campbell Barton
2012-04-04rename MPoly vars called mface or mf, to avoid confusion with MFace types.Campbell Barton
2012-03-27Partial fix for bug 30695, "Array broke crease, weird visibility and slowdown"Nicholas Bishop
* Array modifier creates BMesh from DM; add missing CD_CREASE layer for edge creases. * With a modifier stack like mirror+subsurf+array, face normals were wrong. Fix by removing CD_NORMAL layer from CCGDM output. Previously the elements in this layer were simply copied, so they did not reflect subdivision correctly. * Minor style fixes in bmo_dupe.c. Issues not yet addressed: * Subsurf's optimal draw setting for hiding subdivision edges is not respected by the array output. * Slowdown issue; array modifier is much slower than in 2.62.
2012-03-26Fix #30647: Error in wire drawing of subsurfSergey Sharybin
Patch by Nicholas Bishop, thanks!
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-22Renaming CD_WEIGHT_MCOL/MLOOPCOL and their masks from WEIGHT to PREVIEW, as ↵Bastien Montagne
this layer is now also used for various preview tasks in Object mode. “Cleanup” commit, no functional changes.
2012-03-21spelling cleanup: tesselate -> tessellate (last of these found)Campbell Barton
2012-03-19Fix [#30234] Various problems with CD layers and tesselation, related to ↵Bastien Montagne
modifiers stack. Should also fix [#30266], [#29451], and partly [#30316]. Here are the changes made by this commit: * It adds a "dirty" flag to DerivedMesh struct (for now, only DM_DIRTY_TESS_CDLAYERS, but more might be added as needed). * It adds a new func, DM_update_tessface_data, which assumes tessfaces themselves are valid, but updates tessellated customdata from their poly/loop counter parts. * At end of modstack, when valid tessellated faces are present in finaldm , but the cdlayers dirty flag is set, call that function (instead of recomputing the whole tessellation). * Edits to the codes concerned (UVProject, DynamicPaint, and Subsurf modifiers). * Also add to subsurf dm generation code the creation of a CD_POLYINDEX layer (mandatory for DM_update_tessface_data to work well, and imho all tessellated dm should have one). Note: some pieces of old code are just #if 0’ed, will clean them later.
2012-03-18spelling cleanupCampbell Barton
2012-03-18code cleanup:Campbell Barton
* replace 2D vector copy with copy_v2_v2(). * use puts rather then printf for single strings. * style cleanup for drawobject.c indentation.
2012-03-18swap BMLoopCol r/b color, requires subversion bump.Campbell Barton
old mesh MCol 'r' was blue, 'b' was red, but theres no reason to keep this for bmesh with MLoopCol. Loading old files works, saving legacy format works too. What wont work is loading a file after this revision and loading it in an older revision since the bmesh merge. (it wont crash but the blue and red will be swapped on vertex color layers).
2012-03-17Make grumpy gcc happy again! :pBastien Montagne
2012-03-17Reduce poly map memory usage (used by sculpt smooth brush.)Nicholas Bishop
Changed the create_vert_poly_map function to return a more compact structure. Memory saved will vary depending on the mesh, but typically it should be about one third of the old size.
2012-03-14Copy hidden flag to vertices when applying multires modifier.Nicholas Bishop
2012-03-14Skip hidden elements in PBVH iterator, raycast, and drawing.Nicholas Bishop
2012-03-14Add DerivedMesh.gridHidden and CCGDM implementation.Nicholas Bishop
2012-03-14Add new CCG accessor functions.Nicholas Bishop
ccg_gridsize() converts a level into gridsize, ccg_factor() is for converting coordinates between different multires levels.
2012-03-13Code cleanup: replace multires update function pointer with direct call.Nicholas Bishop
Renamed the multiresModifier_update() function to multires_modifier_update_mdisps() and made it visible to subsurf_ccg.c so it can be called directly. No functional change, just a bit simpler.
2012-03-09style cleanup: spelling.Campbell Barton
also remove large, duplicate comments from sunsky.h
2012-03-08Code cleanup: use named values for options in DerivedMesh drawing.Nicholas Bishop
The DMSetDrawOptions[Tex] callbacks return 0 (skip), 1 (draw), or 2 (either stipple or skip mcols.) In the CDDM, EDDM, and CCGDM draw functions, as well as the callbacks in drawmesh/drawobject, replace these numbers with values from an enum, DMDrawOptions.
2012-03-08style cleanup: pep8 + picky editsCampbell Barton
2012-03-07Code cleanup: simplify the DerivedMesh.drawMappedFaces interface.Nicholas Bishop
This function pointer's 'setDrawOptions' parameter took a slightly different type than the other drawing callbacks. In particular, it could set a 'drawSmooth' value to indicate that smoothing should always be enabled, overriding the face flag. However, all callbacks either did not set this value, or set it unconditionally to 1. Replaced this by adding a new 'flag' parameter to drawFacesMapped, which can be set to DM_DRAW_ALWAYS_SMOOTH where appropriate. Also removed the 'useColors' parameter and replaced it with another flag value, DM_DRAW_USE_COLORS. Removed the 'wpaint__setSolidDrawOptions' callback, was only being used to set the shading to smooth.
2012-03-07Code cleanup: use typedefs for DerivedMesh drawing callbacks.Nicholas Bishop
There are still fairly bewildering set of callbacks being tossed around, but it's at least a little less verbose now.
2012-03-06Code cleanup: remove some PBVH material code that isn't needed anymore.Nicholas Bishop
2012-03-06Draw individual face's material and shading correctly in the PBVH.Nicholas Bishop
Previously, the shading and material was set once per PBVHNode when drawing. This is still the case, but PBVHNodes are now built to contain only one material and shading mode. This is done with an extra partitioning step; once the number of primitives in the node falls below the PBVH leaf limit, it's primitives are checked for matching materials. If more than one material or shading mode is present in the node, it is split and partitioned (partitioned by material rather than 3D location.) Given a sufficiently 'annoying' input, like a dense mesh with thousands of materials randomly scattered across it, this could greatly increase PBVH build time (since nodes might end up containing a single primitive), but in general this shouldn't come up. In order to support materials for grids, the CCGDM is building another grid array (of DMFaceMat structs). This could be used to replace CCGDM.faceFlag for some small memory savings (TODO).
2012-03-06Code cleanup: remove unused parameter from some ccgSubSurf accessors.Nicholas Bishop
Remove 'CCGSubSurf *ss' parameter from ccgSubSurf_getFaceFaceHandle, ccgSubSurf_getFaceVert, and ccgSubSurf_getFaceEdge.
2012-03-06Bugfix and code cleanup: use better types for faceFlags in CCGDM.Nicholas Bishop
Previously this was just a character array that stored face/poly flags and mat_nr. Since mat_nr should be a short, this would have truncated for higher values. Replaced with a new DMFaceFlags struct.
2012-03-06Code cleanup: remove unused drawFacesColored from DerivedMesh.Nicholas Bishop
This function pointer isn't called anymore, so removing it and the cddm/ccgdm/gpu code associated with it.
2012-03-04style cleanup / comment formatting for bli/bke/bmeshCampbell Barton
2012-03-02style cleanupCampbell Barton
- spelling - turns out we had tessellation spelt wrong all over. - use \directive for doxy (not @directive) - remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-01Spelling CleanupCampbell Barton
2012-02-28Remove DerivedMesh.getFaceMap and create_vert_face_map().Nicholas Bishop
Not used anymore, both have BMesh replacements (DerivedMesh.getPolyMap and create_vert_poly_map.)
2012-02-27style cleanup (mostly whitespace)Campbell Barton
2012-02-25style cleanup, use { on newline after function definition.Campbell Barton
spelling 'impliment' -> 'implement'
2012-02-08Code Cleanup:Campbell Barton
macro for copying polygon settings
2012-02-08Code cleanup: spelling fix, Tesselection->tesselationNicholas Bishop
2012-02-06Minor Improvements...Campbell Barton
- more efficient array growing - use BM_NGON_STACK_SIZE for more static arrays - dont use BLI_array for bevel code where size is known.
2012-02-05Code Cleanup: use vector functions for copying / adding UV'sCampbell Barton
2012-02-05support for 'origspace' data layer - used for hair on subsurf mesh.Campbell Barton
currently only works for 3/4 sided faces.
2012-02-05pass wcol check as an argument rather then checking on every loop.Campbell Barton
2012-02-05sync with trunkCampbell Barton
- renamed vars - calloc --> malloc - remove some redundant code
2012-02-05sync changes from trunk.Campbell Barton