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-07-19Cleanup messed-up comment formating from codestyle apply...Bastien Montagne
2019-07-07Cleanup: use BKE_packedfile prefix for function namesCampbell Barton
Avoid ambiguity with terms check & compare.
2019-07-02Cleanup: move comments onto own lines to avoid breaking linesCampbell Barton
2019-06-24Fix T63828, T62005: copy/paste or append loses rigid body objectBrecht Van Lommel
Previously settings were removed, now add to the rigid body world automatically even if it's a bit ill defined, since this is confusing for users. Fundamentally the concept of a rigid body world collection could be revised, and left only as an optional thing.
2019-06-15Cleanup: Rename: Static Override -> Library Override.Bastien Montagne
Better to make internal code naming match official/UI naming to some extent, this will reduce confusion in the future. This is 'breaking' scripts and files that would use that feature, but since it is not yet officially supported nor exposed in 2.80, as far as that release is concerned, it is effectively a 'no functional changes' commit.
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-05-31Cleanup: style, use braces in source/ (include disabled blocks)Campbell Barton
2019-05-23Cleanup: modernize code of new `BLE_main_id_refcount_recompute()`.Bastien Montagne
No functional change expected!
2019-05-23Merge branch 'blender2.7'Bastien Montagne
Conflicts: source/blender/blenkernel/intern/library.c source/blender/blenloader/intern/readfile.c source/blender/editors/screen/screen_edit.c
2019-05-22BKE Library handling: add function to recompute usercounts of IDs.Bastien Montagne
This will be needed in undo/redo case, since we do not re-read linked IDs, their usercounts become total garbage (especially in 'used by local ID' cases)...
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-05-10Fix T64304: Objects in appended scene from 2.79 file disappear after saving.Bastien Montagne
Versionning code generating collections from old 2.79 scene layers was setting new collections' library from scene, but it also needs to properly set the `LIB_TAG_INDIRECT` tag, otherwise localizing code does not know what to do, and most of append process fails.
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-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. :)