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
2020-06-18LibOverride: increase speed of RNA diffing process.Bastien Montagne
By using own path construction instead of handy printf-like functions, we get a 10% improvement on overall diffing process! This remains way to slow on some complex production characters, but always good to have still.
2020-06-10Fix (unreported) disapearance of some overrides after save & reload.Bastien Montagne
The override operations generated from 'do not follow' RNA pointer properties (i.e. pointers to other IDs) were not properly clearing their 'no more used' flag, and hence were incorrectly deleted on second save.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-02-11CLeanup: clang-formatCampbell Barton
2020-02-10Cleanup: Rename `BKE_library_override_` functions to `BKE_lib_override_library_`Bastien Montagne
pqrt of T72604.
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2019-10-07Fix T70555: Crash when attempting to create an override for an object with a ↵Bastien Montagne
cloth modifier. Was not taking into account the case where pointer RNA prop is valid, but has no data (i.e. is a 'null' pointer)...
2019-09-25LibOverride: Fix several issues in handling of overridable status for IDProps.Bastien Montagne
The triple possible status of an PropertyRNA (actual C-defined prop, py-defined IDprop behaving similar ot RNA one, or actual 'pure' custom prop) is really confusing... Not to mention the _RNA_UI ugly thingy on top of that. :/
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-19Fix T68831: use NULL instead of the wrong pointer to read default array.Alexander Gavrilov
The pointer argument is supposed to be the object the property belongs to, not a pointer to the property metadata itself. This only worked before because the argument was never used.
2019-08-16Fix T68651: LibOverride: Fix bad handling of RNA collections pointers.Bastien Montagne
We were storing the 'item' part in the RNA path of the override op itself, which will not work with IDs because overriding local one might not have the same name as the linked one (when some local ID with same name already exists). Now we are properly handling this using the expected actual override operation, which stores necessary data (names or indices) from both local and linked data.
2019-08-14Cleanup: move trailing comments to avoid wrapping codeCampbell Barton
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
2019-08-02Cleanup: clang-format, also typo fix.Campbell Barton
2019-07-31Clarify in FloatProperty generated docs: single precision floats.Howard Trickey
At least one script writer was upset that this was not specified, as it is different from "floating point" in Python. Also, docstring for hard and soft min and max for FloatProperty was wrong, using sys.float_info.min and sys.float_info.max.
2019-07-10Cleanup: avoid line breaks from trailing commentsCampbell Barton
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-03Cleanup: style, use braces in RNACampbell Barton
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-04-22Cleanup: style, use braces for makesdna, makesrnaCampbell Barton
2019-04-21Cleanup: comments (long lines) in makesrnaCampbell Barton
2019-04-17ClangFormat: format '#if 0' codeCampbell Barton
Previous cleanups didn't account for space after '#'.
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-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-17Units: add support for light power units in Watt. Use for Eevee lights.Brecht Van Lommel
This affects point, spot and area lights. Sun light strength remains without a unit. This change does not affect .blend file compatibility in any way, as with the rest of the unit system it's purely a display and editing feature. Not used for Cycles yet, that will be done after unifying the settings with Eevee.
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-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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-02Cleanup: indentation, namingCampbell Barton
Use rna naming conventions for unit-settings callbacks.
2018-11-15RNA: always allow fallback from defaultarray to defaultvalue.Alexander Gavrilov
The python getters for the array already allowed that, but not the actual C RNA access functions. This is inconsistent, so implement the fallback in all cases. Now if by default the property should contain the same value in all positions, it is not necessary to actually use an array. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D3940
2018-09-24Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-08-31Merge branch 'master' into blender2.8Sergey Sharybin
2018-08-31Python: Enable MASS unit in FloatPropertyMonique Dewanchand
MASS unit was already implemented for the C api. Only making sure it is accessible in the python api. Also added 'CAMERA' to the documentation as a valid option.
2018-07-05Merge branch 'master' into blender2.8Campbell Barton
2018-07-05RNA: correct callback typeCampbell Barton
Missed when changing callbacks from int to bool type.
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-29Refactor static override code to pass Main around.Bastien Montagne
Access to main database is actually rarely needed, but some custom 'apply' functions do need it (like Collections' overriding of objects or children collections).
2018-06-28Static Override: fix diffing logic for ietms ID pointers case.Bastien Montagne
I.e. we can now use REPLACE operation directly on items of an RNA collection, when those items are ID pointers. Again, mandatory to support new Collection's objects/children override.
2018-06-28Static Override: RNA apply code: pass extra 'item_ptr' to apply callbacks.Bastien Montagne
This is unused currently, but is mandatory for incomming support to Collections objects and children items override support.
2018-06-09Merge branch 'master' into blender2.8Campbell Barton
2018-06-09Cleanup: trailing space in RNACampbell Barton
2018-06-05Static Override: progresses towards full support for material slots.Bastien Montagne
Material slots are a real pain to get working, due to all the black magic they do to hide object vs. obdata storage of the material... Currently hitting an order problem - we need to always set 'link' (to object or obdata) property of the slot first, before we set its material... *super-sigh*
2018-06-05RNA/Override: Move override-related property flags to own variable.Bastien Montagne
We are already running out of available flags in main, generic int, and everytime I work on static override I find new special cases that will need new specific propflag, so...
2018-05-17RNA: move enums to rna_rna.cCampbell Barton
Needed for use in rna non runtime code.
2018-05-17RNA: move enums to rna_rna.cCampbell Barton
Needed for use in rna non runtime code.
2018-05-17Static Override/RNA diffing: Use a nasty macro to factorize a bit the code.Bastien Montagne
This piece of code remains annoyingly verbose, but at least now we do not have anymore twice the same logic duplicated between single array element handling, and non-array properties.
2018-05-02Static overrides: make it clear collections need specific apply callbacks.Bastien Montagne
2018-05-02Static override: initial work for generating 'insertion' in collections.Bastien Montagne
Does not yet support applying those operations, only detecting insertions and generating matching rules was already rather complicated. Also got rid of ;ost rna_path string allocation in collection diffing code, could help a bit with speed too.
2018-04-23Static Overrides: more performances improvements.Bastien Montagne
Moved another dynamic allocating print into (usually) static one, gives us another average 8% speedup on Autumn rig.