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
2017-01-27Fix T50534: Part I, cleanup loop normals generated during modifier stack ↵Bastien Montagne
evaluation. Those could stay around, and be displayed in 3DView even when autosmooth was disabled (but would not be 'active').
2016-12-01Fix (unreported) looptri array not being recalculated in ccgDM and emDMLuca Rood
In ccgDM and emDM, looptri array recalculation was being handled directly by `*DM_getLoopTriArray` (`getLoopTriArray` callback), while `*DM_recalcLoopTri` (`recalcLoopTri` callback) was doing nothing. This results in the array not being recalculated when other functions that depend on the array data called the recalc function. This moves all the recalculation code to `*DM_recalcLoopTri` and makes `*DM_getLoopTriArray` call that. This commit also makes a minor change to the `getNumLoopTri` function, so that it returns the correct number without having to recalculate the looptri array. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D2375
2016-10-18[msvc] Minor cleanup in blenkernel.lazydodo
this patch resolves the following warnings; ``` Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 764 Warning C4098 'attach_stabilization_baseline_data': 'void' function returning a value blenkernel\intern\tracking_stabilize.c 139 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\cachefile.c 148 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\paint.c 413 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\editderivedmesh.c 591 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\library_remap.c 709 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 754 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 758 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 759 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 763 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 764 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 765 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 769 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 770 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\DerivedMesh.c 3458 ``` It's mostly things where the signature in the .h and the actual implementation in the .c do not match. And a bunch functions who do not match the TaskRunFunction declaration cause they leave out the __restrict keyword. Reviewers: brecht, juicyfruit, sergey Reviewed By: sergey Subscribers: Blendify Differential Revision: https://developer.blender.org/D2268
2016-10-13Fix T49534: 2.78 Wrong texture scaling in material viewportSergey Sharybin
Seems to be a bug in original implementation of a830280: code was always using tangent space instead of UV map because it had the same name. Now prefer UVMap over tangent because this is how Cycles works. At least it's closer to. Not sure it the save+reload issue is still relevant after this fix, that needs to be double-checked. Thanks @dfelinto for looking into the report and simplifying the case. Should be included into 2.78a.
2016-09-09Fix/Workaround T49297: Crash related to custom data draw (Blender with ASAN)Sergey Sharybin
Root of the issue is that active render index became wrong. This is the actual thing to be fixed, but as usual this is quite tricky to reproduce. Since such bad situation might have happened more and fix isn't really difficult or intruisive let's avoid crash for now. Can be revisited once we figure out root of the issue. Nice for 2.78 release.
2016-09-05OpenSubdiv: Fix missing ORCO when enabling OSD but having dependency to the ↵Sergey Sharybin
geometry Was causing huge viewport lags. Reported by angavrilov in IRC, thanks! Safe and nice for 2.78.
2016-09-05Fix T49226: Incorrect Material viewport shading of Cycles Normal Map node in ↵Sergey Sharybin
Edit mode for an object with Array modifier Was incorrect indexing done in the array. Caused by 5abae51. Not sure why it needed to be changed here, but array here is supposed to be a loop data, so bringing back loop index as it originally was. The shading was wrong in edit mode with BI active as well (so it's not like it's needed for BI only). Patch in collaboration with Alexander Gavrilov (angavrilov), thanks! Should be double-checked and ported to 2.78.
2016-09-05Fix glUniform called from glBegin/glEnd blocksSergey Sharybin
Was causing some invalid operations in OpenGL. After more testing should be fine for 2.78.
2016-09-03fix: not initialised variable can crash blender (related to modifiers with ↵Gaia Clary
cage editing enabled)
2016-09-01OpenSubdiv: Fix missing object ORCO when Subsurf uses OpenSubdiv but ↵Sergey Sharybin
disabled fore viewport
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-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-31Properly handle vertex color color space for Cycles GLSLSergey Sharybin
A bit tricky, need to pass additional information about what the attribute is and how to deal with it. BI path stays unchanged, just to make things simplier for now. Fixes T48555: Cycles GLSL- Incorrect Vertex Color results from Attribute node
2016-05-29BKE's DerivedMesh: get rid of last OMP usage.Bastien Montagne
Not replacing with some BLI_task_stuff here, tests show this is pointless (in absolute best case - i.e. single huge mesh in scene - parallelizing here switches from 0.8ms to 0.5ms for that piece of code - with something like 750ms per frame update...).
2016-05-24Fix own mistake in D1120: wrong indexing of UV maps during tangent calculationAlexander Romanov
2016-05-23Fix wrong scale of vertex color values when doing border render of Cycles ↵Sergey Sharybin
viewport
2016-05-23Support Vertex Color in GLSL viewport for CyclesSergey Sharybin
The title says it all actually. Added special custom data type, because we don't know in advance whether we're referencing UV or Color layer. Also made it so vertex attributes are normalized. TODO: Border render in viewport ignores the normalization of the attribute array for some reason, will be looked into still. Reviewers: mont29, brecht, campbellbarton Reviewed By: brecht, campbellbarton Differential Revision: https://developer.blender.org/D2022
2016-05-11Fix incorrect FLT_MIN useCampbell Barton
2016-05-06DerivedMesh: don't allocate a new material array each drawCampbell Barton
2016-04-26Support multiple tangents for BI render & viewportAlexander Romanov
Normal Map node support for GLSL mode and the internal render (multiple tangents support). The Normal Map node is a useful node which is present in the Cycles render. It makes it possible to use normal mapping without additional material node in a node tree. This patch implements Normal Map node for GLSL mode and the internal render. Previously only the active UV layer was used to calculate tangents.
2016-03-04Fix uninitialized memory use lattice-boundboxCampbell Barton
Many other places weren't clearing boundbox dirty flag after calculation.
2016-03-03Fix T47644: crash (use-after-free) regression from rB7a74738914a66e.Bastien Montagne
Handling `me` data here is not good idea anyway, we override it completly with data from `tmp` (crash came from freeing already existing bb from me, while pointer still existed in tmp). (rediscovered it while working on T47676...). To be backported to 2.77.
2016-02-28Cleanup: rename `CustomData_swap` to `CustomData_swap_corners`.Bastien Montagne
More in line with our other func names handling sub-item data (mainly, tessfaces' UVs and VCol...).
2016-02-22Fix memory leak in DM_to_meshCampbell Barton
2016-01-28cleanup: spelling / typosMike Erwin
no functional changes
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-21Weight Paint: Make multi-paint & mirror work as if bone selection was symmetricAlexander Gavrilov
The simplest way of handling mirroring in multi-paint is creating a uniform symmetric selection and relying on existing symmetric weights to direct changes to the appropriate vertex groups. This already works if mirror bones are selected manually, and can be made easier to use by doing it implicitly.
2016-01-20Weight Paint: 'Sample' now supports multi-paintAlexander Gavrilov
Since the coloring uses sum or average of the weights of all selected groups, the weight pick tool should also use that instead of reading the weight of the single active group that you can't see.
2016-01-20Weight Paint: reduce alert color brightnessAlexander Gavrilov
This condition can actually happen quite often if weight painting for a rig that uses separate control bones, so the color shouldn't be so bright that it's hard to look at for a significant amount of time.
2016-01-20Fix for tangent regression w/ looptri changesCampbell Barton
LoopTri changes in 2.76 calculated all tangents as triangles, this gave different results though in most cases it was hard to notice. Though no bugs were reported we should keep our tangents compatible with other users of mikktspace.
2016-01-20Cleanup: style, use constCampbell Barton
2016-01-20Support multi-paint & show zero-weights as blackAlexander Gavrilov
Specifically, when only one bone is selected and it's not really active. (With multiple bones on the other hand that behavior is forced on, since multi-paint can't modify purely zero weight verts and that's important.)
2016-01-04Fix T47038: Particles in Particle Edit Mode get added in completely wrong ↵Bastien Montagne
location. It also fixes another issue (crash) related to symmetric editing. Quite involved, we (try to!) fix complete broken logic of parts of particle code, which would use poly index as tessface one (or vice-versa). Issue most probably goes back to BMesh integration time... This patch mostly fixes particle editing mode: - Adding/removing particles when using generative modifiers (like subsurf) should now work. - Adding/removing particles with a non-tessellated mesh (i.e. one having ngons) should also mostly work. - X-axis-mirror-editing particles over ngons does not really work, not sure why currently. - All this in both 'modes' (with or without using modifier stack for particles). Tech side: - Store a deformed-only DM in particle modifier data. - Rename existing DM to make it clear it's a final one. - Use deformed-only DM's tessface2poly mapping to 'solve' poly/tessface mismatches. - Make (part of) mirror-editing code able to use a DM instead of raw mesh, so that we can mirror based on final DM when editing particles using modifier stack (mandatory, since there is no way currently to find orig tessface from an final DM tessface index). Note that this patch is not really nice and clean (current particles are beyond hope on this side anyway), it's more like some urgency bandage. Whole crap needs complete rewrite anyway, BMesh's polygons make it really hard to work with current system (and looptri would not help much here). Also, did not test everything possibly affected by those changes, so it needs some users' testing & validation too. Reviewers: psy-fi Subscribers: dfelinto, eyecandy Maniphest Tasks: T47038 Differential Revision: https://developer.blender.org/D1685
2015-12-08OpenGL: split off framebuffer, shader and texture code into separate files.Brecht Van Lommel
2015-12-06OpenGL: isolate fixed function lighting in simple shader code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-11-24OpenGL: clean up use of old extensionsMike Erwin
2015-11-23Cleanup: shadowing (blenkernel)Campbell Barton
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-11-03imp: show alert color if mesh has weight groups but no active group is selectedGaia Clary
2015-11-03Avoid assert weight painting w/o an active groupCampbell Barton
2015-10-11Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.Brecht Van Lommel
2015-10-06Cleanup: only check paint mode for active objectsCampbell Barton
2015-09-23Fix T46215: Explode modifier looses texturesCampbell Barton
2015-09-23Fix T46217: Make normal artifactsCampbell Barton
2015-09-13Cleanup: spellingCampbell Barton
2015-09-09Assert CustomData_from_bmeshpoly is used correctlyCampbell Barton
Follow up to last commit, since bugs here aren't so obvious.
2015-09-09Fix T45733: Crash w/ VColor + BlenderInternalCampbell Barton
Tessface CustomData layers were added multiple times when tangents were used. This made BI crash accessing layers missing elsewhere.
2015-08-28Fix T45930 weights not appearing in editmode when show weights optionAntony Riakiotakis
was enabled. Caused by an -unneeded now- fix for opensubdiv. Code caused the vertex colors to be uninitialized. Thanks to Sergey for confirming that initial issue is no longer a problem.
2015-08-25Cleanup: styleCampbell Barton
2015-08-24Fix DM_get_loop_array, was checking edge-dataCampbell Barton
Fixes T45728