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-06writefile: simplify outliner treestore workaroundCampbell Barton
Instead of keeping a list of allocations, write to unique addresses based on the BLI_mempool address since we know this is unique.
2016-07-06Cleanup: redundant 4th index in sculpt PBVHCampbell Barton
Since moving to MLoopTri this is no longer needed.
2016-07-06Dyntopo: optimize edge collapsingCampbell Barton
Checking if faces exist was a bottleneck, use a simpler version of this function for triangles. Gives approx 1.6x overall speedup (when many edges are being collapsed).
2016-07-06Cleanup: group dyntopo utility functionsCampbell Barton
2016-07-06Transform Snap: Replace pixel limit w/ 'dist_to_ray_sq'Germano Cavalcante
When snapping to edge/vert, check the distance to the ray instead of the screen-space pixel projection. This also corrects the conversion of `dist_to_ray_sq` to `dist_px` which was being done incorrectly. While this change was planned, it fixes T48791, caused by error in b01a56ee.
2016-07-05Code cleanup: for Cycles compatible panels, use exclusion rather than ↵Brecht Van Lommel
inclusion list. This shortens the list, and Blender render specific panels are added less often than other panels anyway, so less chance to miss things.
2016-07-05Render border: don't disable when drawing around the entire camera.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D712
2016-07-05Render border: skip unnecessary uncropping if the border covers the entire ↵Brecht Van Lommel
image.
2016-07-05Render border: make it work together with with cache result / save buffers / ↵Brecht Van Lommel
full sample. Differential Revision: https://developer.blender.org/D2080
2016-07-05Dyntopo: missing PBVH update collapsing an edgeCampbell Barton
PBVH-nodes attached to the vertex to be deleted were updated, but not nodes attached to the other vertex in the edge.
2016-07-05Dyntopo: avoid redundant vector copyCampbell Barton
2016-07-05Dyntopo: inline lookups, remove type checkCampbell Barton
This was checking vert/face for every lookup, so far the type is always known, do a direct lookup instead.
2016-07-05Dyntopo: use inline iteratorsCampbell Barton
Gives small performance boost.
2016-07-05Dyntopo: compare masks when collapsingCampbell Barton
Was just checking the value of the first
2016-07-05Dyntopo: verify had over zealous assertsCampbell Barton
2016-07-04Cycles: remove extended precision hacks, no longer needed with SSE2 requirement.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D2079
2016-07-04Fix a few compiler warnings on OS X / clang.Brecht Van Lommel
Two were actual bugs, though they existed only in unused code: * In Freestyle it was unintentionally copying a scene rather than referencing it. * In BLI_array_store_is_valid there was use of uninitialized memory.
2016-07-04Fix use of uninitialized variable introduced in fix for T48755.Brecht Van Lommel
2016-07-04And one more fix to particle distribution!Bastien Montagne
As pointed by Brecht, previous fix in rB61b49de44940 was actually incomplete, we could still hit float rounding issue and hence same value in more than one consecutive items of element_sum. New solution is a bit different, we remove the 'minimal weight' check, and rather simply ignores an item when the sum of its normalized weight to previous item's sum does not add anything. Shall be safe and 100% effective this time!
2016-07-04Fix bmesh test after recent refactor.Bastien Montagne
2016-07-04BI Viewport(GLSL): support for envmap in Texture nodeAlexander Romanov
This patch is another step to achieve BI and it's Viewport consistency for cubemap textures. {F318879} To test world_space_shading flag D2072 is required. Alexander (Blend4Web Team) Reviewers: campbellbarton, brecht Subscribers: homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D2074
2016-07-04Fix input for Texture node (envmap+world_space_shading)Alexander Romanov
This patch fixes shortcoming of D2046. The original behavior without world_space_shading flag is that Texture node expects the reflected vector in view space. But with world_space_shading it should be in world space. In attached file you will see a simple material setup and a node material analogue. Simple material must have the same behavior regardless world_space_shading flag. {F318866} Alexander (Blend4Web Team) Reviewers: brecht Reviewed By: brecht Subscribers: campbellbarton, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D2072
2016-07-04Environment lighting for the GLSL modeAlexander Romanov
Environment lighting (aka ambient) is a key component of any renderer. It's implemented like the Environment lighting of BI render for Approximate Gather mode. It support "Sky Color" and "White" Environment lighting modes. It would be great if the user could see actual lighting conditions right in the Blender viewport instead of waiting for the renderer to complete the final image, exporting for external renderer or for a game engine. Before: {F113921} After: {F113922} Example file: {F319013} Original author: valentin_b4w Alexander (Blend4Web Team) Reviewers: valentin_b4w, campbellbarton, merwin, brecht Reviewed By: brecht Subscribers: panzergame, youle, duarteframos, AlexKowel, yurikovelenov, dingto, Evgeny_Rodygin Projects: #rendering, #opengl_gfx Differential Revision: https://developer.blender.org/D810
2016-07-04Quiet warnings w/ USE_VERIFY defineCampbell Barton
2016-07-03Curve: utility to evaluate entire curveCampbell Barton
2016-07-03Update pacman pkgbuildCampbell Barton
2016-07-03Fix T48783: OSL render errors after recent refactoring.Brecht Van Lommel
2016-07-02Fix use of uninitialized variable in Cycles OpenCL image textures.Brecht Van Lommel
2016-07-02Fix typo in bgl.Buffer report functionThomas Szepe
A GL_INT buffer was reported as GL_BYTE.
2016-07-02Install Deps: Use OSL 1.7.3, latest bugfix release.Thomas Dinges
2016-07-02Correction for MSVCCampbell Barton
2016-07-02BMesh: utility function to resize bmesh elementsCampbell Barton
This can be used to re-allocate bmesh data with/without tool flags. Needed for Symmetrize since it uses bmesh operators from dyntopo.
2016-07-02Cleanup: comment blocksCampbell Barton
2016-07-02Cleanup: styleCampbell Barton
2016-07-02Fix Cycles OpenCL not taking Extend and Clip extension types into account.Thomas Dinges
(See T48720).
2016-07-01"Fix" crash when deleting linked object which has indirect usages.Bastien Montagne
This is in fact very hairy situation here... Objects are only refcounted by scenes, any other usage is 'free', which means once all object instanciations are gone Blender considers it can delete it. There is a trap here though: indirect usages. Typically, we should never modify linked data (because it is essencially useless, changes would be ignored and ost on next reload or even undo/redo). This means indirect usages are not affected by default 'safe' remapping/unlinking. For unlinking preceeding deletion however, this is not acceptable - we are likely to end with a zero-user ID (aka deletable one) which is still actually used by other linked data. Solution choosen here is double: I) From 'user-space' (i.e. outliner, operators...), we check for cases where deleting datablocks should not be allowed (indirect data or indirectly used data), and abort (with report) if needed. II) From 'lower' level (BKE_library_remap and RNA), we also unlink from linked data, which makes actual deletion possible and safe. Note that with previous behavior (2.77 one), linked object would be deleted, including from linked data - but then, once file is saved and reloaded, indirect usage would link back the deleted object, without any instanciation in scene, which made it somehow virtual and unreachable... With new behavior, this is no more possible, but on the other hand it means that in situations of dependency cycles (two linked objects using each other), linked objects become impossible to delete (from user space). Not sure what's best here, behavior with those corner cases of library linking is very poorly defined... :(
2016-07-01Outliner: pass operator's reports to all operation callbacks.Bastien Montagne
Also define single callback func typedef, cleaner this way! Note: maybe we want to do that for the other callbacks too (data, etc.), but will be enough for now.
2016-07-01Fix T48666: Segfault on boolean operation when exiting edit mode of ↵Sergey Sharybin
instanced operand This is quite tricky situation which combined: - Boolean modifier which accesses other object's derived mesh (in fact, it's nothing to do with boolean modifier, any other modifier which uses other's DM will have same bug). - Dependency cycles in the scene which is rather russian-roulette from the cycle solver point of view. - Multiple instanced objects used as boolean operand. With all this things combined boolean modifier was accessing operand's derived mesh which was referencing data from Mesh datablock. The issue is that those references are becoming invalid after EDBM_mesh_load(). This function already had code to make sure object itself does not end up with dangling pointers from derived mesh. Make it now so no possible instanced objects are left with dangling pointers. And who said it's a good idea to reference something from derived mesh..
2016-07-01UI: take zoom into account w/ curves widgetAlexander Gavrilov
The Curves widget has buttons to zoom in on the curve. However the click detection code doesn't take it into account, and at full zoom in click on curve is detected very far from the actual visible curve. Change it to compare the position to the actual line segments in the UI coordinate space, i.e. with curve zoom applied.
2016-07-01Add wait cursor toggling dyntopoCampbell Barton
2016-07-01UI: move dyntopo button to headerCampbell Barton
This looks a bit odd, but being able to see if dyntopo is enabled when the panel is collapsed is handy.
2016-07-01Sculpt: skip normal calculation entering dyntopoCampbell Barton
When no triangulation runs we can skip re-calculating normals.
2016-07-01BGE: Display Hardware infos only in standalone.Ulysse Martin
This patch moves the PrintHardwareInfo() function in standalone only, not in embedded. Why? Because you can need this infos for debugging purpose in "compiled" blender files but it was boring to have it displayed each time you launched embedded. So you can have this infos when you click standalone or when you run your executable app from a console. Reviewers: moguri, kupoman, panzergame.
2016-07-01Enable dyntopo re-entering sculpt modeCampbell Barton
2016-07-01BMesh: make toolflags optionalCampbell Barton
Saves 8 bytes per vert/edge/face. Gives overall ~20-25% memory saving for dyntopo sculpting and modifiers that use BMesh.
2016-06-30Fix T48757: Broken in D1120 normal bakingAlexander Romanov
2016-06-30Fix T48728, part 2: Vertex colors not shown in texture modeSergey Sharybin
2016-06-30Transform Snap: Optimize edge-snap using BVH treeGermano Cavalcante
changes in BLI_kdopbvh: - `BLI_bvhtree_find_nearest_to_ray` now takes is_ray_normalized and scale argument. - `BLI_bvhtree_find_nearest_to_ray_angle` has been added (use for perspective view). changes in BLI_bvhutils: - `bvhtree_from_editmesh_edges_ex` was added. changes in math_geom: - `dist_squared_ray_to_seg_v3` was added. other changes: - `do_ray_start_correction` is no longer necessary to snap to verts. - the way in which the test of depth was done before is being simulated in callbacks.
2016-06-30CMake: list buildinfo.h as buildinfo.cmake's outputCampbell Barton
Keep the fake header to ensure we always run.
2016-06-30Correct fix for MSVCCampbell Barton