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
2014-02-25Assert for invalid customdata allocsCampbell Barton
2014-02-14Code cleanup: duplicate headersCampbell Barton
2014-02-05Code cleanup: use bool for static methodsCampbell Barton
2014-02-04Fix T37577: Joining two objects with different UVs destroys UVs of one ↵Bastien Montagne
object in some specific, reproducable, cases MLOOPUV CDlayers had "UV Coord" default name, instead of "UVMap", when it is mandatory matching MTEXPOLY and MLOOPUV to have the same name!
2014-01-31Code cleanup: be less vague checking invalid index valuesCampbell Barton
2014-01-23Fix T38284: Crash with several shrinkwrap constraint using same targetSergey Sharybin
Issue is caused by the race condition between getting custom data layers from target's derived mesh (for vertices and faces) and releasing this derived mesh from other threads. When one releases the derived mesh it'll free temporary data from it, and it'll also update data layers mapping. General rule for threading is that no one is ever allowed to modify data he doesn't own. This means that no temp layers are to be allocated in derived mesh and making it so `CustomData_free_temporary()` doesn't update mapping if nothing was freed will solve the race condition. It is still possible to do other improvements, namely detect which additional data/layers are to be present in derived mesh and create it as a part of `object_handle_update()`, but this is to be solved separately.
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-11Add tangent space computation/access from RNA (i.e. python).Bastien Montagne
This simply mimics code used for loopnormals, to enable py scripts to generate and access (temporary) a tangent 3D vector and bitangent sign for each loop. Together with the split normals, this allow to recreate a complete tangent space for normal mapping (bitangent = bitangent_sign * cross(normal, tangent)). Expects all faces to be tri or quads. Reviewed By: Brecht, campbellbarton Differential Revision: https://developer.blender.org/D185
2013-11-29Fix T37407: removing cd-layer didn't set the active layer correctlyCampbell Barton
2013-11-26Fix T37541: multires not reading external displacement file after entering ↵Brecht Van Lommel
edit mode.
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-10-05Fix for my last customdata fix, accidentally left in comments.Brecht Van Lommel
2013-10-05Fix for unnecessary customdata warning with empty meshes.Brecht Van Lommel
2013-10-01Fix issues reported by coverity scan in recent changes to customdata code.Brecht Van Lommel
2013-09-24fix [#36781] triangulation modifer creasesCampbell Barton
new geometry was initializing its original index to 0 (so all edges displayed with the first edges crease value). now initialize to NONE.
2013-09-21bugfix: [#36786] customdata layers are not merging taken the names into ↵Dalai Felinto
consideration (which is also "[#36749] Joining objects with more than one uv map depends on list order") Thanks Bastien Montagne and Brecht van Lommel for reviewing and some advice.
2013-09-15use stack memory for deform weight interpolation.Campbell Barton
2013-09-10Update to writefile: do not save TEMPORARY or NO_COPY CD layers!Bastien Montagne
Neede for next commit (split normals API).
2013-07-22optimization:Campbell Barton
- halve the number of allocs in layerInterp_mdeformvert list creation. - use direct loop access in emDM_copyLoopArray
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-07-19code cleanup: use MEM_mallocN rather then MEM_callocN when the array isCampbell Barton
overwritten immediately after.
2013-07-15previous commit r58256, had error in editmode (somehow it worked in most ↵Campbell Barton
tests still). also don't decrement active indices below zero (also a problem in 2.67).
2013-07-15fix for error (-1 index into array) when removing customdata layers with no ↵Campbell Barton
data, delete_customdata_layer was using layer data pointer to check weather to adjust index values (but both pointers can be NULL). Remove this code and do in customdata.c
2013-07-10add asserts for passing in bad index values to DM_get_***_data, CustomData_get()Campbell Barton
2013-05-30remove CD_MASK_NORMAL from CD_MASK_DERIVEDMESH, bmesh merge included this ↵Campbell Barton
but its not needed. Now add asserts to make sure this layer is only added once the modifier stack has been calculated. this saves normal layer being calculated whenver vertex normals need updating.
2013-05-21code cleanup: remove callbacks only added to wrap MEM_freeNCampbell Barton
2013-05-14Fix #35347: constraints with vertex group targets were not using the vertex ↵Brecht Van Lommel
group weights, it assumed all weights were 1. This gave very different results with the new bevel modifier due to slightly different vertex group interpolation.
2013-05-09bmesh speedup: skip free-realloc while running CustomData_bmesh_merge() when ↵Campbell Barton
nothing is changed (happens quite often that there is nothing to do).
2013-05-08minor speedup for bmesh - add CustomData_bmesh_free_block_data(), useCampbell Barton
when the block would be immediately allocated again.
2013-05-08speedup for freeing bmeshes, skip calling free on everyCampbell Barton
vert/edge/face/loop if there are no free functions for the customdata layers.
2013-05-08use bool for customdata functions.Campbell Barton
2013-04-05Removed CD_MASK_FREESTYLE_EDGE and CD_MASK_FREESTYLE_FACE from CD_MASK_BAREMESHTamito Kajiyama
and moved them to init_render_mesh() in convertblender.c where these CustomData layers are specifically required.
2013-03-27Fix for Freestyle edge/face marks not working with most modifiers (except ↵Tamito Kajiyama
for Subdivision Surface).
2013-03-26Merging r55547 through r55594 from trunk into soc-2008-mxcurioniSergey Sharybin
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-24Merged changes in the trunk up to revision 55546.Tamito Kajiyama
Conflicts resolved: source/blenderplayer/bad_level_call_stubs/SConscript Partly reverted changes to intern/cycles/blender/addon/ui.py in revision 52899 to make it easier to merge trunk changes.
2013-03-22python api: add functionality to remove vertex color layers.Campbell Barton
note: that this intentionally removes check to exit vpaint mode when a vertex color layer is removed, since being in vertex-paint mode without a vertex color layer is supported. also minor change to drawing camera limits while picking from previous commit.
2013-03-18Merged changes in the trunk up to revision 55357.Tamito Kajiyama
Resolved conflicts: release/datafiles/startup.blend source/blender/editors/space_nla/nla_buttons.c Also updated source/blender/blenkernel/intern/linestyle.c as a follow-up of recent changes for the use of bool.
2013-03-17- ghost-sdl builds again.Campbell Barton
- without python builds without warnings. - replace MAXFLOAT -> FLT_MAX in some areas, MAXFLOAT overflows (lager then float range). - add cmake option WITH_GCC_MUDFLAP to enable libmudflap use.
2013-03-13New implementation of Freestyle edge/face marksTamito Kajiyama
The previous implementation of Freestyle edge/face marks was refactored based on suggestions from the latest code review by Campbell. The new implementation relies on mesh CustomData to store edge/face marks, instead of introducing extra flags in the core Mesh and BMesh data structures. The CustomData-based implementation will allow further additions of new edge/face attributes because of the independence from Mesh/BMesh. This revision is work in progress, mainly intended to address the review comments and ask for further code review in view of the trunk merger in the upcoming 2.67 release.
2013-03-06Alternate fix for bug [#34369], where invalid polygon normals could be saved ↵Campbell Barton
in the mesh data and in the file. This was from initial BMesh merge, but should not have been added in since face normals are calculated and stored in the DerivedMesh. Toggling editmode would remove poly-normals so its unlikely anything relies on this custom-data.
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-02-04code cleanup: warningsCampbell Barton
2013-01-11code cleanup: warnings, also add check in crash handler that a ↵Campbell Barton
wmWindowManager is present.
2013-01-11remove CustomData_get_active_offset(), use CustomData_get_offset to return ↵Campbell Barton
the active layer, matching CustomData_get()
2013-01-10editmesh texface drawing, reuse customdata offset rather then looking up ↵Campbell Barton
each UV and vertex color, gives overall ~9.5% drawing speedup in my tests. was also doing NULL checks on UV's which are never NULL in this case.
2013-01-10don't store bevel weights or edge crease customdata layers in editmode ↵Campbell Barton
unless they are needed. configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
2013-01-08fix [#33797] decimate modifier bug on uv-coordinates when mesh uses vertex colorCampbell Barton
if vertex colors had no seams - it would interpolate the UV's too, now interpolate per-layer.
2013-01-08fix [#33792] Accessing a bmesh object created by from_object crashes blenderCampbell Barton
Issue was customdata wasnt being initialized for layers in the destination BMesh but not in the source data.
2013-01-07minor improvement to CustomData_bmesh_merge(), allocate the correct size ↵Campbell Barton
pool rather then always 512.