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-18Cleanup: redundant parenthesisCampbell Barton
2020-06-04LibOverride: Add Pointer properties to 'overridable by default'.Bastien Montagne
There is in fact no reason not to do so, RNA pointers are either to other IDs (which is properly handled by default diffing code), or to sub-structures that should almost always be diffed as well. Exceptions (like backward ID pointers or strictly runtime caches and data) are to be handled with proper 'no comparison' flag in any case.
2020-06-03RNA: add option to enable by default lib overridale flag of defined properties.Bastien Montagne
Similar to the one allowing to deactivate DNA check, etc. Will helps reduce verbosity when making many new properties overridable. Note that pointer properties always remain non-overridable by default, since basically only ID pointers should be. Reviewed By: brecht Maniphest Tasks: T77083 Differential Revision: https://developer.blender.org/D7906
2020-06-02Turn most flags in BlenderDefRNA into proper bool.Bastien Montagne
2020-06-02Cleanup: RNA: use `BlenderDefRNAtruct` named members initialization.Bastien Montagne
2020-04-03Cleanup: Rename ExtensionRNA variables from ext to rna_extJulian Eisel
Makes it more clear that code using this is related to the RNA integration of a type. Part of T74432. Also ran clang-format on affected files.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-18Fix BPY enum property definiton failing if items contain spacesJulian Eisel
Mistake in 03a4d3c33f82, turns out this actually is called from BPY (which I didn't think it was). So only error out during makesrna, not at runtime.
2020-03-17Cleanup: Fix warnings about function signature of register passRay Molenkamp
RE_engine_register_pass is sometimes in the headers with type as an integer parameter, sometimes as eNodeSocketDatatype. This caused warnings, the root cause was makesrna was not able to generate the proper type for enums and defaulted to int. makesrna has been extended with the RNA_def_property_enum_native_type that allows telling makesrna the native type of an enum, if set it will be used otherwise it will still fall back to int. Differential Revision: https://developer.blender.org/D7117 Reviewed By: brecht
2020-03-04Cleanup: use MEM_recallocN_id utility functionCampbell Barton
2020-03-04RNA: ensure missing calls to RNA_enum_item_end crash in debug modeCampbell Barton
Would have prevented T74227 from slipping through since it didn't crash on some systems.
2020-03-03RNA: support 64 bit boolean bitflags in DNABrecht Van Lommel
This does not affect the RNA access API, since how the boolean is read from DNA abstracted away in the API. Differential Revision: https://developer.blender.org/D7002
2020-02-19RNA: Fail makesrna if enum identifiers contain spacesJulian Eisel
We could of course always add checks for more invalid characters, but I'd say they are more unlikely to happen.
2020-01-16UI: Use same precision in "Move" redo panel as elsewhereJulian Eisel
The floating "Move" redo panel showed transform values with less precision than in other places (e.g. sidebar and properties editor). With Millimeters as unit it would even round to full integers, which may be an issue since you typically work at higher precisions with this unit. Note that this only applies to the visual precision, internally we use full floating point `float`s still. Fixes T70367.
2019-10-27Cleanup: remove redundant NULL checksCampbell Barton
2019-10-01RNA: add check for zero step argumentsCampbell Barton
Avoids errors like T70281 slipping through.
2019-09-12Cleanup: line breaks with commentsCampbell Barton
2019-09-11Cleanup: remove redundant RNA defaultsCampbell Barton
These are now set from DNA defaults.
2019-09-11DNA: defaults for ID typesCampbell Barton
2019-09-11RNA: automatically initialize defaults from DNACampbell Barton
Use defaults from DNA_*_defaults.h headers, this avoids calling RNA_def_property_*_default explicitly & having to repeat values.
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-06-03Cleanup: style, use braces in makesrnaCampbell Barton
2019-05-22RNA: add fallback update functionCampbell Barton
Use so we can have a default update function, that doesn't need to be set for every property.
2019-05-13RNA: disable undo on OperatorProperties and its subclasses.Alexander Gavrilov
Since these are temporary properties, changing them shouldn't cause undo pushes. There already is a flag to disable that, but since each operator inherits its own properties from the base, RNA define code also had to be changed to allow inheriting the flag.
2019-04-22Cleanup: style, use braces for makesdna, makesrnaCampbell Barton
2019-04-21Cleanup: comments (long lines) in makesrnaCampbell 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-03-01Cleanup: de-duplicate RNA array default argsCampbell Barton
2019-02-18DNA: support renaming structs that use the old renaming hackCampbell Barton
2019-02-18RNA: use clog for logging error messagesCampbell Barton
Some RNA errors are quite similar, use clog for consistent logging that always includes the file, function and line number - making errors quicker to troubleshoot.
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-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.
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-11-11Merge branch 'master' into blender2.8Campbell Barton
2018-11-11PyAPI: update keyword listCampbell Barton
2018-10-30PyAPI: Support for 'None' string args from PythonCampbell Barton
This is needed because some RNA functions differentiate a NULL 'char *' argument from an empty string. Previously a NULL argument could be passed when the C definition defined the default as NULL and the argument wasn't passed which is a fairly hidden way of handling things. Now strings use `PROP_NEVER_NULL` by default which can be cleared for function arguments that allow None -> NULL.
2018-10-29UI: allow off/on icons to be in reverse order.Brecht Van Lommel
The same icons are reused for "hide" and "show" properties, which need to be in reverse order compared to each other.
2018-10-03Cleanup: tiny improvement in error reporting for makesrnaInes Almeida
2018-07-30Silencing a bunch of compiler warningsJoshua Leung
Most of these were mismatched const qualifiers
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-07-01Cleanup: reduce variable scopeCampbell Barton
2018-07-01Cleanup: avoid calloc when immediately overwrittenCampbell Barton
2018-06-09Merge branch 'master' into blender2.8Campbell Barton
2018-06-09Cleanup: trailing space in RNACampbell Barton
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...