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-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-02-01Logging: Use CLOG for blenkernelCampbell Barton
Part of D4277 by @sobakasu
2019-01-19Cleanup: add trailing commasCampbell Barton
Prevents clang-format merging into a single line.
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-07-13Merge branch 'master' into blender2.8Campbell Barton
2018-07-13Cleanup: id-property API useCampbell Barton
Also clarify comments.
2018-06-29Merge branch 'master' into blender2.8Campbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-05-05Merge branch 'master' into blender2.8Campbell Barton
2018-05-05IDProp API: add native C repr functionCampbell Barton
Was using Python which wasn't very efficient (even for logging).
2018-05-05Merge branch 'master' into blender2.8Campbell Barton
2018-05-05IDProp API: Avoid redundant group replace lookupCampbell Barton
2018-05-04Merge branch 'master' into blender2.8Campbell Barton
2018-05-04IDProp API: expose repr utility functionCampbell Barton
Useful for logging properties passed to operators.
2018-03-14Merge branch 'master' into blender2.8Bastien Montagne
2018-03-14Style cleanup.Bastien Montagne
2018-03-14Fix (unreported) broken IDarray case in IDP_EqualsProperties_ex.Bastien Montagne
For IDProps IDarray, IDP_EqualsProperties was called for each item, instead of IDP_EqualsProperties_ex, discarding value of `is_strict` option. Probably not an issue with current code, though.
2018-01-24Add utility function to reset ID property value to a given oneSergey Sharybin
This is similar to idproperty_reset() defined in layer.c, but it does not re-alloc property itself. We should replace idproperty_reset() with IDP_Reset() now.
2017-08-15Bring new IDP_MergeGroup() on par with other copying logic.Bastien Montagne
We now have to support more complex copying types, which are controlled by flags, so all copying logic will need to take those at some point (at least, all potentially dealing with IDs).
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-05-03Make IDP_MergeGroup recursiveDalai Felinto
With this we also do not need IDP_MergeGroupValues anymore. If this causes problems in the future we can always make recursion an option (like overwrite is).
2017-04-24Merge branch 'master' into blender2.8Campbell Barton
2017-04-24Cleanup: styleCampbell Barton
2017-04-20IDProperty: New util function to merge groups recursivelyDalai Felinto
2017-04-13Merge branch 'master' into blender2.8Alexander Romanov
2017-04-13Datablock ID PropertiesAlexander Romanov
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks. This functionality is implemented for `PointerProperty` and now such properties can be created with Python. In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch. Original author: @artfunkel Alexander (Blend4Web Team) Reviewers: brecht, artfunkel, mont29, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne Maniphest Tasks: T37754 Differential Revision: https://developer.blender.org/D113
2017-04-10Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/gpencil/drawgpencil.c
2017-04-10PyAPI: Fast buffer access to id property arraysJacques Lucke
Support Python's buffer protocol for ID-properties.
2017-04-09Merge branch 'master' into blender2.8Julian Eisel
2017-04-09Cleanup: use doxy code blockCampbell Barton
2017-04-09Merge branch 'master' into blender2.8Campbell Barton
2017-04-09ListBase: Add insert-replace functionCampbell Barton
Handy to replace an existing link (without having to store before/after links) Use for id-props
2017-03-31Merge branch 'master' into blender2.8Campbell Barton
2017-03-30Cleanup/fix bad code in IDP_SetIndexArray()Bastien Montagne
Mainly, using index before checking for its validity...
2017-03-30Layers: use IDProperty and override collection properties systemDalai Felinto
First this replace a custom data struct with IDProperty, and use IDProperty group merge and copying functions. Which means that a collection property setting is only created if necessary. This implements the "Layer Collection settings" override system, as suggested in the "Override Manifesto" document. The core is working, with Scene, LayerCollection and Object using a single IDProperty to store all the render settings data. Next step is to migrate this to depsgraph. Note: Clay engine "ssao_samples" was hardcoded to 32 for now. It will come back as part of "Workspace Settings" later. Many thanks for Bastien Montagne for the help with the UI template nightmare ;) Differential Revision: https://developer.blender.org/D2563
2016-07-31PyAPI: Add PyC_UnicodeAsByteAndSizeCampbell Barton
Read the string length from Python directly when assigning id-properties
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2014-12-14Fix for idproperty comparisonCampbell Barton
comparing arrays had flipped logic
2014-12-12Fix T42883: ID-Prop arrays longer than 'shot' failCampbell Barton
2014-11-21Cleanup: typoCampbell Barton
2014-11-15Cleanup (mostly 0/1 -> false/true).Bastien Montagne
2014-11-10Fix/workaround T37073: Crash updating custom props visible in the UICampbell Barton
2014-11-03Cleanup: remove rarely used IDProp iteratorCampbell Barton
2014-08-15CleanupCampbell Barton
2014-08-11Fix compilation error with debug sconsSergey Sharybin
The issue is that we've got hell with DEBUG and _DEBUG, theu're defined really inconsistent acros CMake and SCons. Used more reliable NDEBUG definition for IDP_spit.