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-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
2015-12-06Fix generate UV's adding extra layersCampbell Barton
Adding a new meshes when there were no faces would always add a new uv-layer.
2015-12-05Fix T37879: Default UV generation for mesh primitives.Bastien Montagne
Adds default-generated UVs to mesh primitives (cone, cylinder, icosphere, uvsphere, cube, circle, grid) when they are added to the scene, since some of them can be pretty awkward to unwrap manually. Original patch: Liam Mitchell (CommanderCorianderSalamander). Main review work: Campbell Barton (campbellbarton). Finalization, fixes and cleanup: Bastien Montagne (mont29). Reviewers: mont29, #mesh_modeling, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: lkruel, campbellbarton, michaelknubben, kevindietrich Maniphest Tasks: T37879 Differential Revision: https://developer.blender.org/D481
2015-12-01Fix T46900: Inset Faces Thickness & Depth Do Not Use Scene Units (i.e. ↵Bastien Montagne
Imperial). Was the case of several Mesh operators actually (and probably others, but cannot check everything). Added `RNA_def_property_float_distance` helper, avoids having to set PROP_DISTANCE subtype explicitly each time...
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-06-21Fix/Cleanup possibility to type insane values in 'add' operators options.Bastien Montagne
Our 'hard limit' values was too often max_int/float here, mis-typing could lead to crash (or infinite hanging) of Blender, see e.g. http://blender.stackexchange.com/questions/32790/blender-forces-computer-to-reboot-after-mistyping-extreme-value-for-resolution-i
2015-05-04Add name argument to data creation API callsCampbell Barton
Was adding then renaming, unnecessarily.
2015-02-09more direct fix for last commitCampbell Barton
2015-02-09Fix T43498: New curves fails /w radius & rotationCampbell Barton
Scaling matrix assumed no rotation, also remove unused apply_diameter arg.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-16Fix T38217: Fix glitch adding Monkey with view alignCampbell Barton
added an option so view-align can default to a different axis.
2013-11-26Fix T37617: "Add plane" was adding a 2*2 gridBastien Montagne
Was a regression from rBaa3c06b41ca9, hope this time all things are OK again (note the X/Y subdivision values still are different than before (-1 for same result), but imho they make more sense this way).
2013-09-16fix [#36537] "Grid Floor Scaling" can have some unexpected behaviour on new ↵Campbell Barton
objects curves and metaballs now behave the same as meshes wrt grid scaling. remove WM_operator_view3d_distance_invoke(), and replace with a function called from exec which initializes defaults, this way operators can have their own invoke functions.
2013-09-16move make_prim_radius_prop into a generic function.Campbell Barton
2013-07-25triangulate and beauty fill also needed changes to selection handling after ↵Campbell Barton
recent changes.
2013-06-25Include DNA_scene_types before ED_object instead of forward enum declarationSergey Sharybin
Forward enum declaration is a bad idea, especially for C++ which requires enum specification to dteermine which data type to use to store it. Alternative would be to not use enum as an arument and pass it as int, but actually would rather be strict on typing -- using explicit enum as parameter type helps understanding the code and prevents possible mistakes when using the function.
2013-05-29fix [#34851] "UnitSettings.scale_length" not beeing calculated the same way ↵Campbell Barton
for all objects
2013-04-16code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and ↵Campbell Barton
BKE_editmesh_bvh.h
2013-04-15minor edits to DM_update_weight_mcol(), skip getting vars when in editmode, ↵Campbell Barton
also remove old/invalid comment.
2013-04-15code cleanup: minor BMESH_TODO's, some were left in even though they were ↵Campbell Barton
done/invalid.
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-01code cleanup: split editmesh_tools.c, into inset, bevel (both modal ↵Campbell Barton
operators) and moved extrude operators into their own file. also move some selection operators from editmesh_tools.c into editmesh_select.c
2013-03-25More new data names translation (most cases should be covered now).Bastien Montagne
Also done a few cleanup here and there...
2013-03-21code cleanup: rename editmode functions so we have ↵Campbell Barton
ED_object_editmode_load/enter/exit
2013-03-20I18n users request: add the ability to use a translated name for newly ↵Bastien Montagne
added/created objects or other datablocks. This simply adds a third "translation type" (in addition to iface and tip), "new data", with relevant user settings flag and helper funcs/macros (and py api). Currently implemented name translation when adding new objects, as well as modifiers and constraints, will add the others (cd layers, scenes, perhaps nodes [though I think they do not need this], etc.) later.
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-07use bool for rna funcs.Campbell Barton
2012-12-19include cleanupCampbell Barton
2012-12-12remove context argument from EDBM_update_generic()Campbell Barton
2012-12-12make EDBM_index_arrays's stay in memory, blender was allocating an array and ↵Campbell Barton
filling it for verts/edges/faces on every redraw. this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use. in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.
2012-12-11define the size of matrix args for both rows/cols.Campbell Barton
2012-12-09fix [#33442] UnitsCampbell Barton
adding meshes were scaling the user input values so the distance on the button didnt relate to the scale of the object added. Now use an invoke function that scales unset default values.
2012-12-03fix own mistake with recent commit to skip calculating tessface. If you were ↵Campbell Barton
already in editmode the tessfaces wouldn't get recalculated. also minor edits to bmesh rst.
2012-11-29skip recalculating tessface when adding objects if 'EnterEdit-mode' is disabled.Campbell Barton
2012-11-28bmesh operator naming - use clearer names for args eg: (mat -> matrix, ↵Campbell Barton
use_singleedge -> use_single_edge) also remove duplicate docs for operator arg formatting.
2012-11-20Fix for add plane operator broken since recent code cleanupSergey Sharybin
2012-11-20code cleanup: make bmesh operator names more consistant since python has ↵Campbell Barton
access to these as input arguments and return values. all output values currently have ".out" suffix, this may go in the future, but for now it makes it clear in C code what are inputs and outputs.
2012-11-13Bugfix, IRC report:Ton Roosendaal
The "Add Monkey" object name should be Suzanne - as it was until 2.50. :)
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-10-19Fix #32219: Inconsistent influence of Units Scale on new objectsSergey Sharybin
Made it so meshes, curves, surfaces and metaballs are scaling to a grid cell size, which makes them behave consistently now. There're still issues to be resolved still: - Lattice is not scaled to grid cell size yet, it uses slightly different add function which makes scaling a bit tricky and hacky. Would prefer to do a bit bigger refactor here, so it's a TODO for now. - Cameras, speakers and other helpers are not scaling. They don't have data on which scale could be applied and perhaps it should be some kind of draw scale. Also would consider it's a TODO for now.
2012-10-05Clean up in "add object" code:Bastien Montagne
* Get rid of ED_object_add_generic_invoke() and all invoke callbacks using it, it was doing nothing exec() callbacks would not do. In fact, its only action (setting part of common add ops properties, like loc, layers, etc.) was needed too by direct exec call, so it was done twice in case of using invoke()! * Replace custom invoke code for metaballs by WM_menu_invoke helper (as already used by lamps). * Add a new OBJECT_OT_empty_add op, to allow direct addition of empties of a given drawtype. * And some general code cleanup (like trailing spaces, empty lines, ...). Did quite a bunch of tests/verifications, but obviously could not tackle all possible scenarios... Anyway, if any, bugs should arize quite quickly (but I don’t expect any! :p ).
2012-09-23fix for crashes caused by mixups when adding objects when incompatible ↵Campbell Barton
object types were already in editmode.
2012-09-10code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more ↵Campbell Barton
places.
2012-05-31Fix #31657: adding mesh objects did not take units into account for the gridBrecht Van Lommel
scale that sets the default size.
2012-05-27code cleanup: use const float and define array sizeCampbell Barton
2012-05-04code cleanup: double promotion & some style cleanupCampbell Barton
2012-03-29fix invalid *= on an un-initialized value when adding primitives.Campbell Barton
2012-03-27Fix bug 30696, circular mesh objects had wrong orientation.Nicholas Bishop
Behavior now matches 2.62, circle, cone, and cylinder get first vertex at 0 degrees. Also fixed range for vertex property of add-cone and add-cylinder operators, changed minumum from two to three.
2012-03-27minor code/style cleanupCampbell Barton