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-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
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
2015-10-08Modifiers: add 'cd_flag' parameter to their ID looping callbacks, neededBastien Montagne
since some IDs (objects) are not 'refcounted' while others (textures) are... Partial merge from id-remap branch.
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-03-30Cleanup: use const for typeinfoCampbell Barton
2015-02-13Make modifier_unique_name return whether modifier was renamed or notSergey Sharybin
2015-01-13Cleanup: fixes for building with recent clangCampbell Barton
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-23Refactor: BLI_path_util (part 2)Campbell Barton
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-08-20Cleanup: some const and bool cleanup.Bastien Montagne
2014-08-17Fix T41467: Modifier view buttons changing positions.Bastien Montagne
Commits early in this year (to save some space) broke this. Hopefully this time it works in all cases - lastCageIndex is no more influenced by realtime/edit active states. Also, inactivate buttons instead of hiding them, can be useful to set those data even though it does not have any immediate effect. Took the opportunity to switch cage buttons to RNA, btw.
2014-08-15Modifiers: consider all constructive modifiers as 'preview' ones as well.Bastien Montagne
Indeed, constructive modifiers are highly likely to modify CDLayers like vgroups or vcols! See vertexgroup2.blend file ({F93770}) in T40523, especially obvious with subsurf modifier.
2014-06-23T39690: Modifications to Blender's 'temp dir' system.Bastien Montagne
Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never automatically cleaned up, and can end being quite big when used by Blender, especially when we have to store per-process data (using getpid() in file names). To address this, this patch: * Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path), the other is a mkdtemp-generated sub-dir, specific to each Blender instance. * Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always reuse the same filename (quit.blend...) or generate small file (crash reports...). * Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option). * Erases temp sub-dir on quit or crash. To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows. Note that, as in current code, the 'recover render result' hack-feature that was possible with SaveBuffer option is still removed. A real renderresult cache feature will be added soon, though. Reviewers: campbellbarton, brecht, sergey Reviewed By: campbellbarton, sergey CC: sergey Differential Revision: https://developer.blender.org/D531
2014-05-30Fix T40445: Disabled modifiers prevent cage edit mode.Bastien Montagne
No valid reason to make non-mapping modifiers break edit cage, when they are disabled in 3DView/edit mode!
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-03-20Code cleanup: use boolsCampbell Barton
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2014-02-26Further work for fix T38804: unnecessary empty space in the modifier UI.Brecht Van Lommel
2013-12-21Mesh Modifiers: refactor copying using a generic functionCampbell Barton
2013-12-18Style Cleanup: minor edits in recent changesCampbell Barton
2013-12-13Interface / Modifiers: Don't show cage placeholder in modifier header, if ↵Thomas Dinges
the current modifier does not support it or the cage is disabled (like Subsurf 0). This way we save some space but still avoid the jumping around while changing settings in the header itself. Thanks to Brecht for help on this. :)
2013-09-24modifiers_isCorrectableDeformed now checks a modifier is enabled before ↵Campbell Barton
returning true, also check deformMatricesEM callback for modifier_isCorrectableDeformed() rather then checking modifier types.
2013-08-19Made modifiers_getVirtualModifierList safe for threadingSergey Sharybin
Move static variables to context filling in by this fcuntion and owned by a callee function. This ensures no conflicts between threads happens because of static variables used in this function. Also moved modifier types and virtual modifiers data to a function called from creator. This is needed to be sure all the information is properly initialied to the time when threads starts to use this data. -- svn merge -r57899:57900 ^/branches/soc-2013-depsgraph_mt
2013-07-05fix for [#35911] wasn't complete, while weigths would show in editmode, ↵Campbell Barton
weights that were modified by a weight modifier wouldn't.
2013-06-19move modifier callback wrappers into modifier.cCampbell Barton
2013-06-13fix for problem with creating weight-paint preview.Campbell Barton
In the case where the modifier stack didnt need deform-verts to calculate, they would not be available for the preview either. This fixes a bug caused by r57206 which set mirror to preview so the mirrored weights would be displayed, but it only worked when there was an armature after it, see [#35545].
2013-06-02use booleans for modifiers and api callbacks.Campbell Barton
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-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-02code cleanup: clarify comment about virtial-modifiers, also add comments to ↵Campbell Barton
DNA headers when its not so obvious what their purpose is.
2012-12-15remove modifiers_indexInObject(), just call BLI_findindex directly.Campbell Barton
2012-12-15add checks to style checker script for 'a . b' and 'a []'Campbell Barton
also use BLI_findindex for modifiers_indexInObject
2012-11-13disable applying constructive modifiers when in sculpt mode with multi-res ↵Campbell Barton
data, since this would crash. also rename modifier_sameTopology -> modifier_isSameTopology(), modifier_nonGeometrical -> modifier_isNonGeometrical()
2012-10-27A few more BMesh errors messages translated, and "automated" translation for ↵Bastien Montagne
modifers too!
2012-10-15Parenting an object to a deformer (armature/curve/lattice) will now attempt toJoshua Leung
check if the object is already parented to said deformer before trying to add a new modifier This should help reduce the number of cases where users inadvertantly end up creating multiple deform modifiers pointing to the same object, which has been known to be a cause of "double-transform" artifacts. Note that this is only able to detect these cases by checking if the parent object is selected, so this will only really work for the Ctrl-P shortcut where you have to select both objects first. However, it shouldn't be a problem either in the Outliner (drag and drop), as the object probably won't be a child of its parent already if you're doing this.
2012-10-07style cleanup: if();Campbell Barton
2012-09-19code cleanup: make shape key api names consistent with our new convention.Campbell Barton
2012-07-04Bugfix Smoke / DynamicPaint: Missing update call from depsgraph was missing ↵Daniel Genrich
when force fields were used.
2012-05-20Fix bug #31529 Remesh remove Apply as Shape buttonNicholas Bishop
Change modifier_sameTopology() to not not treat Nonconstructive modifiers as having same topology. This function is only used to test whether Apply as Shape is allowed. The exact nature of "nonconstructive" modifiers is not documented, but current list is remesh, fluidsim, decimate, mask, build, and boolean. All of these modify topology, and should not be making making shape keys.
2012-05-09style cleanup: whitespace/operatorsCampbell Barton
2012-05-06style cleanup: blenkernelCampbell Barton
2012-05-06Removing the old armature 'deform' settings (use vertex groups/envelopes/quats).Joshua Leung
As far as I could tell, these were really only still used for "virtual modifiers", though we really don't use these anymore. Instead, most of the time, people need to set these settings in armature modifiers directly (these didn't even get copied over in that case). This was a source of confusion and redundancy, so removing these now. This change can be reverted if these were actually of some use out there...
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-04-21style cleanup: multi-line if statements.Campbell Barton
2012-03-26Fix for truncation of 64-bit CustomDataMasks.Nicholas Bishop
Can't use GET_INT_FROM_POINTER anymore with CD masks, as this truncates to 32-bit. Bug: http://projects.blender.org/tracker/index.php?func=detail&aid=30680&group_id=9&atid=498 CR: http://codereview.appspot.com/5905059/
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-18spelling cleanupCampbell Barton
2012-03-09style cleanup: spelling.Campbell Barton
also remove large, duplicate comments from sunsky.h
2012-03-04style cleanup / comment formatting for bli/bke/bmeshCampbell Barton