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-11-14BMesh: fix edge-rotation selection state bugCampbell Barton
Failed edge rotation could leave unselected edge between selected faces, also report warning when edges fail to be rotated.
2016-11-13BMesh: BM_face_exists no longer uses return argCampbell Barton
Just return the face or NULL, like BM_edge_exists(), Also for BM_face_exists_overlap & bm_face_exists_tri_from_loop_vert. No functional changes. Old code did some partial overlap checks where this made some sense, but it's since been removed.
2016-10-26Cleanup: rename functions in BLI_bitmap_draw_2dCampbell Barton
2016-10-26Cleanup: move bitmap drawing into its own moduleCampbell Barton
Bitmap drawing is out-of-scope for a general math API, move to BLI_bitmap_draw_2d.
2016-09-24Mesh: added default UVs for Monkey, improved UVs for UV Sphere and Icosphere.Peter Lu
Fixes T47488 and T47478. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2224
2016-09-03Fix T49228: Separate by material, materials dissappear after reload.Bastien Montagne
Yet another mismatch where code would decrease usercount (of Material here) but never increase it again when re-assigning the datablock...
2016-08-29Fix for Bevel segments bug T49183; but doesn't fix whole report yet.Howard Trickey
2016-08-18Cleanup: some bad sizeof() usages.Bastien Montagne
2016-08-12Depsgraph: tag relations for update when aterial slots changesSergey Sharybin
New dependency graph puts materials to the graph in order to deal with animation assigned to them and things like that. This leads us to a requirement to update relations when slots changes. This fixes: T49075 Assignment of a keyframed material using the frame_change_pre handler doesn't update the keyframe using the new dependency graph
2016-07-22remove double-checked conditionsMike Erwin
Checking a condition right after we’ve checked it (and it hasn’t changed). Most of these are trivial to understand. split_quads in convertblender.c: It seems quads should be processed and triangles should be marked as not needing split. So I removed the outer vlr->v4 check. Found with PVS-Studio T48917
2016-07-21Cleanup: warningsCampbell Barton
2016-07-16Cleanup: spellingCampbell Barton
2016-07-10Cleanup/Refactor: pass Main pointer to all ID copy functions.Bastien Montagne
Also allows us to get rid of a few _copy_ex() versions...
2016-07-09Add BKE_key_copy_ex() that takes a Main as parameter.Bastien Montagne
2016-07-08Rework/split test_object_materials().Bastien Montagne
Now test_object_materials only handles one object. New test_all_objects_materials checks the whole bmain->object list for cases where it is actually needed. Should avoid some useless looping over all objects!
2016-07-08BMesh: add decimate edit-mode toolCampbell Barton
Support applying decimate to the mesh selection.
2016-07-08Mesh/Curve Join: remove edit-mode toggleCampbell Barton
Toggling edit-node after joining objects is redundant as far as I can see - (dates back to first revision). Also caused all edges to be drawn w/ meshes, redundant undo step w/ curves.
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
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-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-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-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-25GPU: move select index code out of WMCampbell Barton
This avoids bad-level calls.
2016-06-22ID-Remap - Step one: core work (cleanup and rework of generic ID datablock ↵Bastien Montagne
handling). This commit changes a lot of how IDs are handled internally, especially the unlinking/freeing processes. So far, this was very fuzy, to summarize cleanly deleting or replacing a datablock was pretty much impossible, except for a few special cases. Also, unlinking was handled by each datatype, in a rather messy and prone-to-errors way (quite a few ID usages were missed or wrongly handled that way). One of the main goal of id-remap branch was to cleanup this, and fatorize ID links handling by using library_query utils to allow generic handling of those, which is now the case (now, generic ID links handling is only "knwon" from readfile.c and library_query.c). This commit also adds backends to allow live replacement and deletion of datablocks in Blender (so-called 'remapping' process, where we replace all usages of a given ID pointer by a new one, or NULL one in case of unlinking). This will allow nice new features, like ability to easily reload or relocate libraries, real immediate deletion of datablocks in blender, replacement of one datablock by another, etc. Some of those are for next commits. A word of warning: this commit is highly risky, because it affects potentially a lot in Blender core. Though it was tested rather deeply, being totally impossible to check all possible ID usage cases, it's likely there are some remaining issues and bugs in new code... Please report them! ;) Review task: D2027 (https://developer.blender.org/D2027). Reviewed by campbellbarton, thanks a bunch.
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-13Bevel segments also changeable with mouse (S toggle).Howard Trickey
Also, can use numeric input to set segments and profile when in those respective value-adjusting modes (as per S or P toggle). Finally, fixed problem with previous bevel commit: when changing value-adjusting mode, would like to start off resumed value adjustment where it was before.
2016-06-08BLI_array_store: move helper functions into their own APICampbell Barton
2016-06-06Added P key toggle to allow mouse movement to control bevel profile (modal).Howard Trickey
The Shift key can be held while adjusting profile to make finer changes to the profile (just as it already does when adjusting offset).
2016-06-03Cleanup & simplify snapping functionsGermano Cavalcante
- the name of the enumerator `SNAP_NOT_OBEDIT` was changed to `SNAP_NOT_ACTIVE`. - the parameter `snap_to_flag` was moved to outside `SnapObjectParams`. - the member `use_object_edit` was renamed to `use_object_edit_cage`. - added the arg `params` in `ED_transform_snap_object_project_ray`. - simplifications in the loop of the function `snapObjectsRay`.
2016-05-30Editmesh undo memory optimizationCampbell Barton
Previously a whole mesh was stored between undo steps, This commit uses BLI_array_store to de-duplicate memory use between undo steps. Memory saving depends entirely on kinds of edits performed, in own tests 5x-15x less memory use is common. Compacting the memory does give some overhead however its done in a background thread so its not blocking in most cases. New behavior and threading can be ifdef'd out to check for regressions. See D2026 for details.
2016-05-25Move editmesh undo into its own fileCampbell Barton
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-05-14Fix T48426: Use same length for all header message strings.Bastien Montagne
Some languages like Chinese or Japanese take three or four bytes per char... Also fixed some missing translation markers for UI header messages.
2016-05-12BMesh: use active face fallback w/ select-pathCampbell Barton
From user perspective, last selected face is the same as the active face, use this as a fallback.
2016-05-09Fix error introduced by removing faces before executing bridgeCampbell Barton
Commit 86abddc9, caused an error when the face-region included boundary edges. Since removing the faces first, caused the edges along the boundaries to be removed. Add support for deleting faces and internal edges, that keeps boundaries.
2016-05-08Fix T48372: missing OS X trackpad scroll support for increasing loop cut / ↵Brecht Van Lommel
bevel segments.
2016-05-07Fix T48362: Spin tool broken after recent commit.Bastien Montagne
Typo in rBrBa48d74079, spin tool was now using the wrong view axis.
2016-05-06Fix error bridging edge loops flippingCampbell Barton
Calculating the winding failed when faces exist on both sides of the edge.
2016-05-05Transform/Snap: EditMesh/BKE_bvhutils API improvementsGermano Cavalcante
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh. This was meant to simplify the API, but didn't work out so well. `bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`. This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh. In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once bvhtree is being used in functions that change(tag) the DM cleaning the cache. - Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled. - Remove em_evil. - bvhtree of EditMesh is now really cached in the snap functions. - Code becomes organized and easier to maintain. This is an important patch for future improvements in snapping functions.
2016-04-29Fix T48290: Hook fails after deleting geometryCampbell Barton
Now CD_SHAPEKEY_INDEX customdata is stored in edit-mode when hooks and vertex parents are used. This also fixes a bug where undo would loose key-index data. Move to structs for BM_mesh_bm_to/from_me to avoid passing many argument, which mostly aren't used.
2016-04-28Fix T48300: 3D view tools outside the 3d view crashCampbell Barton
2016-04-25Fix T48085: Select linked w/ seam delimit gives random resultsCampbell Barton
This changes behavior so seams aren't used for the bmesh walker.
2016-04-25Cleanup: use boolCampbell Barton
2016-04-22Transform Snap: initial snap context refactorCampbell Barton
This introduces a snap-context that can be re-used for casting rays into the scene (by operators such as walk-mode, ruler and transform code). This can be used to cache data between calls too.
2016-04-05Expose new Recast partitioning methods for navmesh generationReinier de Blois
This patch depends on D1747, which upgrades the Recast version. It exposes the new Recast partitioning methods in the navmesh generation. Reviewers: campbellbarton, moguri Reviewed By: moguri Projects: #bf_blender Differential Revision: https://developer.blender.org/D1748
2016-04-05Update Recast version to 1.5.0Reinier de Blois
The version of Recast that Blender ships with is from 2009. This patch updates the Recast version to the latest version, 1.5.0. The Detour version remains untouched. Reviewers: campbellbarton, moguri Reviewed By: moguri Projects: #bf_blender Differential Revision: https://developer.blender.org/D1747
2016-04-01Knife Project: revert fix for T43896Campbell Barton
For now leave precision at half a pixel until we have real fix. Resolves T48023.
2016-04-01BMesh: improve path-select fill region w/ ngonsCampbell Barton
Rewrote to work with ngons and and more complex topology, now uses separate function. Fixes T48009.
2016-03-31Fix NULL check before freeCampbell Barton
2016-03-30Use Ctrl-Shift-RMB for to enable 'Fill Region'Campbell Barton