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
2017-08-11RNA: Use hash lookups for structsCampbell Barton
Adding structs was checking for duplicates causing approx 75k string comparisons on startup. While overall speedup is minimal, Python access to `bpy.types` will now use a hash lookup instead of a full linked list search. See D2774
2017-05-30Fix strict compiler warning in C++ RNASergey Sharybin
Hopefully it is supported by all the compilers.
2017-04-11Cleanup: quiet harmless but annoying overflowCampbell Barton
Caused asan to print warnings generating RNA
2016-12-20Fix strict compiler warning in generated C++ RNASergey Sharybin
2016-12-12Refactor RNA property: split flags in property flags, parameter flags, and ↵Bastien Montagne
internal flags. This gives us 9 flags available again for properties (we had none anymore), and also makes things slightly cleaner. To simplify (and make more clear the differences between mere properties and function parameters), also added RNA_def_parameter_flags function (and its clear counterpart), to be used instead of RNA_def_property_flag for function parameters. This patch is also a big cleanup (some RNA function definitions were still using 'prop' PropertyRNA pointer, etc.). And yes, am aware this will be annoying for all branches, but we really need to get new flags available for properties (will need at least one for override, etc.). Reviewers: sergey, Severin Subscribers: dfelinto, brecht Differential Revision: https://developer.blender.org/D2400
2016-11-20Fix Xcode link error, missing definitions in RNA C++ API that other ↵Brecht Van Lommel
compilers ignored.
2016-08-16Fix release build after recent fix for debug oneSergey Sharybin
It's becoming annoying to have public API dependent on build type and everything. Let's just always have API defined and do stubs in the function implementation instead.
2016-08-06Basic Alembic supportKévin Dietrich
All in all, this patch adds an Alembic importer, an Alembic exporter, and a new CacheFile data block which, for now, wraps around an Alembic archive. This data block is made available through a new modifier ("Mesh Sequence Cache") as well as a new constraint ("Transform Cache") to somewhat properly support respectively geometric and transformation data streaming from alembic caches. A more in-depth documentation is to be found on the wiki, as well as a guide to compile alembic: https://wiki.blender.org/index.php/ User:Kevindietrich/AlembicBasicIo. Many thanks to everyone involved in this little project, and huge shout out to "cgstrive" for the thorough testings with Maya, 3ds Max, Houdini and Realflow as well as @fjuhec, @jensverwiebe and @jasperge for the custom builds and compile fixes. Reviewers: sergey, campbellbarton, mont29 Reviewed By: sergey, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D2060
2016-06-28Fix MSVC error, co_return now a reserved wordCampbell Barton
D2073 by @LazyDodo
2016-06-22Cleanup: use proper RNA struct type for ListBase typeBastien Montagne
(otherwise all code using RNA has to link DNA_listbase.h, not clean at all!).
2016-01-30Cycles: Pass Blender's C++ RNA structures by referenceSergey Sharybin
This way we avoid passing structures which could be up to few hundred bytes by value to the utility functions. Ideally we'll also have to add `const` qualifier in majority of the calls, but C++ RNA does not allow us to do that because it does not know if some function modifies contents or not.
2015-11-28C++ RNA: Pass structures by referenceSergey Sharybin
C++ structures might be rather big and passing them by value is not really optimal. There should be no functional changes apart from better memory access pattern when synchronizing huge scenes to Cycles.
2015-10-28Fix makesrna generated C++ header have consistent whitespace for strings.Martijn Berger
2015-10-10Fix various compiler warnings.Brecht Van Lommel
2015-07-10makesrna: use int64 for rounding checkCampbell Barton
Harmless but larger values would overflow
2015-05-12Depsgraph: New dependency graph integration commitSergey Sharybin
This commit integrates the work done so far on the new dependency graph system, where goal was to replace legacy depsgraph with the new one, supporting loads of neat features like: - More granular dependency relation nature, which solves issues with fake cycles in the dependencies. - Move towards all-animatable, by better integration of drivers into the system. - Lay down some basis for upcoming copy-on-write, overrides and so on. The new system is living side-by-side with the previous one and disabled by default, so nothing will become suddenly broken. The way to enable new depsgraph is to pass `--new-depsgraph` command line argument. It's a bit early to consider the system production-ready, there are some TODOs and issues were discovered during the merge period, they'll be addressed ASAP. But it's important to merge, because it's the only way to attract artists to really start testing this system. There are number of assorted documents related on the design of the new system: * http://wiki.blender.org/index.php/User:Aligorith/GSoC2013_Depsgraph#Design_Documents * http://wiki.blender.org/index.php/User:Nazg-gul/DependencyGraph There are also some user-related information online: * http://code.blender.org/2015/02/blender-dependency-graph-branch-for-users/ * http://code.blender.org/2015/03/more-dependency-graph-tricks/ Kudos to everyone who was involved into the project: - Joshua "Aligorith" Leung -- design specification, initial code - Lukas "lukas_t" Toenne -- integrating code into blender, with further fixes - Sergey "Sergey" "Sharybin" -- some mocking around, trying to wrap up the project and so - Bassam "slikdigit" Kurdali -- stressing the new system, reporting all the issues and recording/writing documentation. - Everyone else who i forgot to mention here :)
2015-03-27Makesrna: Fix function prototypes for struct used RNA_def_struct_sdna_fromSergey Sharybin
Previously makesrna would have generated code expecting DNA structure from RNA_def_struct_sdna_from() to be passed to it. This was wrong because actual PointerRNA points to a "parent" structure, making it impossible to add functions to certain RNA structures. It so far never needed and we didn't notice this issue, but it's needed for some ongoing development now.
2015-03-27C++ RNA API: Code cleanup, prepare for strict C++ flagsSergey Sharybin
2015-03-20Cleanup: warnings bit-shift int overflowCampbell Barton
2015-03-18RNA: move palette into its own fileCampbell Barton
2015-03-12makesrna: move extern prototypes into own headerCampbell Barton
Patch T36049 by @jeske
2015-02-07RNA: packing functions for vfont & soundCampbell Barton
D389 by @kevindietrich
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...
2015-01-13Cleanup: fixes for building with recent clangCampbell Barton
2014-12-16Fix nasty typo in CPP RNA that would break on int or bool dynarrays...Bastien Montagne
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-18BLI_assert: print a backtrace with the errorCampbell Barton
Add BLI_system_backtrace()
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-07-28RNA: check for valid ranges with int properties (C11 only)Campbell Barton
2014-04-27RNA: Use unsigned ints when bit-shiftingCampbell Barton
2014-04-26Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, ↵Campbell Barton
modifiers, nodes)
2014-04-11Code cleanup: use boolCampbell Barton
2014-04-05RNA: optimization to avoid malloc for iterators.Brecht Van Lommel
This mostly helps making Cycles scene synchronization a bit faster.
2014-04-01Correction for error in own recent commit (makesrna c++ api, un-init var)Campbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-01-29RNA: add rna_space_api.c for space functionsCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2013-12-17'Transform' Python Function for armature, curve and lattice.Campbell Barton
patch by Paolo Acampora with some edits.
2013-12-12RNA: Add pixels property typeScott Petrovic
2013-10-22style cleanupCampbell Barton
2013-10-22style cleanupCampbell Barton
2013-10-14code cleanup: correct unsigned int in string formatting and use empty() ↵Campbell Barton
checks for vectors.
2013-10-13code cleanup: use more obvious assignments for transform snapping angles.Campbell Barton
2013-09-20code cleanup: quiet rna warnings, remove remove_strict_flags() for cmake/rna.Campbell Barton
also set_source_files_properties() wasn't working for rna_*_gen.c files, set dna.c and generated data files with generated property too.
2013-09-10makesrna fix: The C++ wrapper functions for collection lookup (both int and ↵Lukas Toenne
string) were not clearing the return pointer if no item is found, but only in case there is a custom lookup function defined. This causes trouble with Cycles because the C++ API uses the returned pointer to determine validity - if no item is found the pointer should be NULL for checking.
2013-08-26RNA fixes regarding dynamic array properties in functions parameters ↵Bastien Montagne
(reviewed by Brecht, thanks!): * It was not clear that RNA_parameter_length_get() & co only affected dynamic properties, renamed them to RNA_parameter_dynamic_length_get() and such. * Fixed RNA_function_find_parameter(), we can't use BLI_findstring() here, need to call RNA_property_identifier()! * Fixed RNA_parameter_get() and RNA_parameter_set(), which were completely wrong for dynamic properties. * Fixed RNA_parameter_dynamic_length_get/set_data(), they did not check the property was actually a dynamic one and were using again ugly blackmagic casting intead of ParameterDynAlloc structure! * makesrna was still using an ugly hackish (and perhaps not always working) code when handling dynamic parameters, now synchronized with RNA_parameter_dynamic_length_get_data and RNA_parameter_get code.
2013-08-11Fix RNA parameter passing issue with dynamic arrays, was computing the wrongBrecht Van Lommel
size in some cases.
2013-08-04avoid runtime overflow (1 << 31), for RNA and armature layer UI.Campbell Barton
2013-07-29fix for possible dounle fclose in makesrna's replace_if_different function.Campbell Barton
2013-07-29make code style of makesrna.c conform to the rest of blender, was also some ↵Campbell Barton
odd indentation for property and struct definitions.