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
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-05-27Cleanup: Fix warnings in bf_dnaRay Molenkamp
Passing a const char** to MEM_recallocN lead to C4090 'function': different 'const' qualifiers warnings with MSVC
2019-05-24Cleanup: correct function nameCampbell Barton
2019-05-22dna_genfile: add SDNA struct/elem queries that use alias namesCampbell Barton
Allow versioning code to use checks which use run-time naming instead of the old names which are only listed in dna_rename_defs.h. Addresses T64791.
2019-05-21Cleanup: rename nr_* to *_len for DNA codeCampbell Barton
2019-05-21Cleanup: make DNA_struct_find_nr_ex function more compactCampbell Barton
2019-04-21Cleanup: comments (long lines) in makesdnaCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-14Cleanup: doxy commentsCampbell Barton
Use doxy references to function and enums, also correct some names which became out of sync.
2019-04-10Cleanup: use STR_ELEM macroCampbell Barton
2019-04-02DNA: add error for DNA computed struct sizes and member offsets mismatch.Brecht Van Lommel
Ref T63164, there was a hidden bug like this on Windows 32 bit.
2019-03-28Cleanup: style, use braces for makesdna, datatocCampbell Barton
2019-03-04DNA: optimize data reconstructionCampbell Barton
Cache the result of DNA_elem_array_size which was being called for each element when reconstructing each struct. Also skip padding members during reconstruction. Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154) from the spring project.# Please enter the commit message for your changes. Lines starting Note, this was reverted recently because it caused T62181 Changes to DNA_sdna_patch_struct_member_nr were needed which caused issues loading old 2.8x files.
2019-03-04Revert "DNA: optimize data reconstruction"Campbell Barton
This reverts commit 657205530cc680012734200a8babd6232be5ee92. This caused an T62181, looking into fix but revert for now.
2019-03-03DNA: optimize data reconstructionCampbell Barton
Cache the result of DNA_elem_array_size which was being called for each element when reconstructing each struct. Also skip padding members during reconstruction. Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154) from the spring project.
2019-03-02Cleanup: SDNA/DNA namingCampbell Barton
Use 'size' instead of 'len' to represent the size of data in bytes, 'len' is used for the result of 'strlen' or the length of an array in some parts of 'makesdna.c' & 'dna_genfile.c'. Also clarify comments and some variable names, no functional changes.
2019-02-18DNA: support renaming structs that use the old renaming hackCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-16DNA: support DNA type & name aliasesCampbell Barton
This allows us to rename struct & struct members in the source code without changing the file format. This is useful because the code becomes increasingly confusing when names such as oops, ipo & dupli aren't used anywhere except DNA headers. dna_rename_defs.h is used to define renaming operations. The renaming it's self will be done separately.
2019-02-16DNA: warn about old versioning being incompleteCampbell Barton
Also sync variable names w/ D4342
2019-02-15Fix DNA struct member versioning logicCampbell Barton
Possible error changing names which are shared between structs. While the problem doesn't occur at the moment, avoid future problems.
2019-02-15Cleanup: sync minor changes from D4342Campbell Barton
Use naming conventions from the patch so they match when it's applied.
2019-02-13Cleanup: rename variable name for DNA utilsCampbell Barton
Rename 'elem_dna' to 'elem_full' to signify it has array/pointer chars.
2019-02-12Cleanup: move utility functions into dna_utilsCampbell Barton
Rename old/new to src/dst since renaming happens in both directions when versioning.
2019-02-12makesdna: add shared utility moduleCampbell Barton
Currently only a single function was duplicated which isn't so bad, this change is to allow DNA versioning code to be shared between dna_genfile.c and makesdna.c.
2019-02-12DNA: support versioning structs & struct membersCampbell Barton
This is only to be used rarely because it's not forwards compatible. Replace version patching of old 2.80 DNA with a more generic API.
2019-02-11Cleanup: avoid string copy for comparing int id'sCampbell Barton
More direct and readable.
2019-02-10Cleanup: unused struct memberCampbell Barton
Also replace intptr_t -> int (no good reason to cast to intptr here).
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-15Cleanup: comment line length (DNA)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-06Speedup: optimize DNA_elem_array_size to speedup file loadingJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4037
2018-09-24Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-19BLI_utildefines: rename pointer conversion macrosCampbell Barton
Terms get/set don't make much sense when casting values. Name macros so the conversion is obvious, use common prefix for easier completion. - GET_INT_FROM_POINTER -> POINTER_AS_INT - SET_INT_IN_POINTER -> POINTER_FROM_INT - GET_UINT_FROM_POINTER -> POINTER_AS_UINT - SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19Merge branch 'master' into blender2.8Campbell Barton
2018-06-26Merge branch 'master' into blender2.8Sybren A. Stüvel
2018-06-26Fix bug in DNA_struct_elem_find when checking the first fieldSybren A. Stüvel
find_elem(olddata=NULL) doesn't work reliably for existence checks; it will return NULL both when the field is found at offset 0 and when it is not found at all.
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for DNA headersCampbell Barton
2018-05-18Collections and groups unificationBrecht Van Lommel
OVERVIEW * In 2.7 terminology, all layers and groups are now collection datablocks. * These collections are nestable, linkable, instanceable, overrideable, .. which opens up new ways to set up scenes and link + override data. * Viewport/render visibility and selectability are now a part of the collection and shared across all view layers and linkable. * View layers define which subset of the scene collection hierarchy is excluded for each. For many workflows one view layer can be used, these are more of an advanced feature now. OUTLINER * The outliner now has a "View Layer" display mode instead of "Collections", which can display the collections and/or objects in the view layer. * In this display mode, collections can be excluded with the right click menu. These will then be greyed out and their objects will be excluded. * To view collections not linked to any scene, the "Blender File" display mode can be used, with the new filtering option to just see Colleciton datablocks. * The outliner right click menus for collections and objects were reorganized. * Drag and drop still needs to be improved. Like before, dragging the icon or text gives different results, we'll unify this later. LINKING AND OVERRIDES * Collections can now be linked into the scene without creating an instance, with the link/append operator or from the collections view in the outliner. * Collections can get static overrides with the right click menu in the outliner, but this is rather unreliable and not clearly communicated at the moment. * We still need to improve the make override operator to turn collection instances into collections with overrides directly in the scene. PERFORMANCE * We tried to make performance not worse than before and improve it in some cases. The main thing that's still a bit slower is multiple scenes, we have to change the layer syncing to only updated affected scenes. * Collections keep a list of their parent collections for faster incremental updates in syncing and caching. * View layer bases are now in a object -> base hash to avoid quadratic time lookups internally and in API functions like visible_get(). VERSIONING * Compatibility with 2.7 files should be improved due to the new visibility controls. Of course users may not want to set up their scenes differently now to avoid having separate layers and groups. * Compatibility with 2.8 is mostly there, and was tested on Eevee demo and Hero files. There's a few things which are know to be not quite compatible, like nested layer collections inside groups. * The versioning code for 2.8 files is quite complicated, and isolated behind #ifdef so it can be removed at the end of the release cycle. KNOWN ISSUES * The G-key group operators in the 3D viewport were left mostly as is, they need to be modified still to fit better. * Same for the groups panel in the object properties. This needs to be updated still, or perhaps replaced by something better. * Collections must all have a unique name. Less restrictive namespacing is to be done later, we'll have to see how important this is as all objects within the collections must also have a unique name anyway. * Full scene copy and delete scene are exactly doing the right thing yet. Differential Revision: https://developer.blender.org/D3383 https://code.blender.org/2018/05/collections-and-groups/
2018-03-13Merge branch 'master' into blender2.8Campbell Barton
2018-03-13Cleanup: doxygen commentsCampbell Barton
2018-01-18Merge branch 'master' into blender2.8Brecht Van Lommel
2018-01-17Fix buffer overflow vulernability in thumbnail file reading.Brecht Van Lommel
Fixes CVE-2017-2908 from T52924. Differential Revision: https://developer.blender.org/D3001
2017-11-23Fix specific 2.8 broken filesDalai Felinto
Short of checking for types (SceneLayer) this is the only reliable way of getting all 2.80 files to date.
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
The RenderResult struct still has a listbase of RenderLayer, but that's ok since this is strictly for rendering. * Subversion bump (to 2.80.2) * DNA low level doversion (renames) - only for .blend created since 2.80 started Note: We can't use DNA_struct_elem_find or get file version in init_structDNA, so we are manually iterating over the array of the SDNA elements instead. Note 2: This doversion change with renames can be reverted in a few months. But so far it's required for 2.8 files created between October 2016 and now. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D2927
2016-12-13Fix strict warnings on WindowsSergey Sharybin