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-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell Barton
2019-04-20Cleanup: add missing macros to clang-formatCampbell 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-16Fix T62913: datablock append removing unrelated rigid body objects.Brecht Van Lommel
2019-04-16Fix proxy remapping on make local failing for more than one object.Brecht Van Lommel
2019-03-29Cleanup: Fix comment.Bastien Montagne
2019-03-11Add WorkSpace to list of ID types that are not supported by standard copy ↵Bastien Montagne
mechanism for now. Am not sure whether we want to support that at some point, but at least if we don’t, make it safe and get out of copy code early, previously trying to duplicate workspace through BKE_id_copy() would have given a very bad a broken result...
2019-03-10Fix T62393: Materials made from 'Make Single User' have linked animation.Bastien Montagne
`id_single_user()` was still code from older ID management, now we can use modern code to handle animdata duplication for us (which allows to keep handling of nasty sub-data ID horrors like nodtrees in a single place, much safer and simpler).
2019-03-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-03-06Cleanup: remove useless extra-processing after BKE_id_new_name_validate() call.Bastien Montagne
This function already handles sorting of ID in its listbase.
2019-03-06Cleanup: use default ID type's name instead of generic 'Untitled' for new IDs.Bastien Montagne
2019-03-06Cleanup: rename BKE_library's `new_id()` to `BKE_id_new_name_validate()`.Bastien Montagne
The former was probably one of the worst function names in our whole code base, totally misleading, and quiet often used as a variable name too.
2019-03-01Cleanup: Update commentDalai Felinto
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-22Fix T61600: Physics properties inactive when appending objectsDalai Felinto
This problem existed in 2.79 as well. The rigid body setting is related to the scene the object was created. We now clear all the rigid body properties of the appended objects to prevent them from lingering in this state where they have settings yet cannot be used in the simulation. Reviewers: mont29, brecht Differential Revision: https://developer.blender.org/D4380
2019-02-18ID management: use FOREACH_MAIN_ID in some places.Bastien Montagne
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-13Cleanup: do not cleanup runtime data twice during ID copying...Bastien Montagne
More or less same code was being executed twice during ID copying. Makes no sense to add yet another switch-by-ID-type to handle specificaly runtime data during ID copying, we already have BKE_xxx_copy_data() functions for that.
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-05Cleanup: use LIB_ID_COPY_LOCALIZE in BKE_libblock_copy_for_localize().Bastien Montagne
This is a slightly more risky commit, as it is very difficult to fathom all that may happen when localazing IDs. Would not expect any issue though. Note that a big TODO remain to refactor fully that ID localization process (for 'shading IDs'), it's still doing pretty much same thing as regular out-of-main copies, but the infamous ntree topic makes it delicate to handle...
2019-02-05Cleanup: sanitize BKE_libblock_copy_for_localize() copy flags.Bastien Montagne
Asking to not copy animdata, but copy actions, is pure nonsense (and make LIB_ID_COPY_ACTIONS flag totally useless/no-op).
2019-02-05Cleanup: Remove old deprecated BKE_libblock_copy_nolib() from BKE_library.Bastien Montagne
Was not used anymore, time to get rid of it.
2019-02-05Cleanup: initial regrouping of ID create/copy flags.Bastien Montagne
Those two first sets of flags should represent some common use cases. The goal here is to reduce verbosity of calls to BKE_id_copy_ex, and help make it more obvious the 'common behaviours' of ID copying across codebase.
2019-02-05Cleanup: BKE_library: rename id_copy to BKE_id_copy.Bastien Montagne
Time to follow conventions for that one as well.
2019-02-05Cleanup: BKE_library: remove 'test' param of id_copy.Bastien Montagne
This was used in *one* place only... much better to have a dedicated helper for that kind of things. ;)
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-30Fix T60957: ASSERT when reloading double-linked file.Bastien Montagne
Kind of funny to see that this has been missing presumably since the first version of library linking in Blender, and only gets noticed now. Then again, that was not really a critical issue, iirc write code ensures all libraries directly used get properly written, even if flags are incorrect.
2019-01-30Cleanup: use proper bitflag operators.Bastien Montagne
2019-01-29Fix duplicate brushes from recent startup filesCampbell Barton
Default versioning caused duplicates when the startup was re-saved. See c305759762aa3
2019-01-29Library: tag memfile undo for writing after renameCampbell Barton
Needed for T60809 fix.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-16Fix BKE_id_copy_ex() being able to 'return' garbage in copied ID.Bastien Montagne
Reported/noted in D4178, it would return immediatly in case of NULL source ID, without ensuring that return 'copied' ID was properly initialized.
2019-01-15Cleanup: removed disabled 'slow but safer' piece of code in make_local process.Bastien Montagne
Has been disabled for nearly two years now, think we can safely assume new, quicker code is working properly now. :)
2019-01-15Cleanup: replace usages of deprecated BKE_libblock_free_ex by BKE_id_free_ex.Bastien Montagne
2019-01-15Cleanup: replace usages of deprecated BKE_libblock_free by BKE_id_free.Bastien Montagne
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-21Library: correct BKE_id_to_unique_string_key fixCampbell Barton
2018-12-20Fix possible key collision w/ BKE_id_to_unique_string_keyCampbell Barton
BKE_id_full_name_get doesn't ensure unique output, use a simple method to create a unique key, guaranteed not to collide.
2018-12-17Fix T58652: Crash editing shape keys weirdness with instancesSergey Sharybin
This is a second attempt to get the crash fixed. The original fix worked, but it was reverted by d3e0d7f0825. Now the logic goes as: - All pointers which we can not have shared (the ones which are owned by the runtime) are cleared. - The rest of runtime stays untouched. This seems to be enough to keep particles happy.
2018-12-14Fix broken particle distribution after recent fixSergey Sharybin
2018-12-14Fix T58652: Crash editing shape keys weirdness with instancesSergey Sharybin
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-07Depsgraph: Remove duplicated sets of recalc/update flagsSergey Sharybin
There were at least three copies of those: - OB_RECALC* family of flags, which are rudiment of an old dependency graph system. - PSYS_RECALC* which were used by old dependency graph system as a separate set since the graph itself did not handle particle systems. - DEG_TAG_* which was used to tag IDs. Now there is a single set, which defines what can be tagged and queried for an update. It also has some aggregate flags to make queries simpler. Lets once and for all solve the madness of those flags, stick to a single set, which will not overlap with anything or require any extra conversion. Technically, shouldn't be measurable user difference, but some of the agregate flags for few dependency graph components did change. Fixes T58632: Particle don't update rotation settings
2018-12-04Cleanup: typo in comments.Bastien Montagne
2018-12-04Fix for assert failure in material previewSergey Sharybin
All localized datablocks are not supposed to have animation data associated with them. There was an easy way to reproduce assert failure: toggle animation decorator for Viewport Display -> Color.
2018-11-09BKE_id_is_in_gobal_main > BKE_id_is_in_global_mainDalai Felinto