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-07-26Functions: move tests closer to codeJacques Lucke
2020-07-24Cleanup: can use guarded instead of raw allocator nowJacques Lucke
2020-07-24BLI: add MultiValueMapJacques Lucke
This is a convenience wrapper for `Map<Key, Vector<Value>>`. It does not provide any performance benefits (yet). I need this kind of map in a couple of places and before I was duplicating the lookup logic in many places.
2020-07-23Cleanup: unify naming between different spansJacques Lucke
2020-07-23Particles: improve mesh emitterJacques Lucke
Particles are now emitted from vertices of the mesh.
2020-07-22Cleanup: spellingCampbell Barton
2020-07-21Particles: initial object socket and emitter node supportJacques Lucke
Object sockets work now, but only the new Object Transforms and the Particle Mesh Emitter node use it. The emitter does not actually use the mesh surface yet. Instead, new particles are just emitted around the origin of the object. Internally, handles to object data blocks are passed around in the network, instead of raw object pointers. Using handles has a couple of benefits: * The caller of the function has control over which handles can be resolved and therefore limit access to specific data. The set of data blocks that is accessed by a node tree should be known statically. This is necessary for a proper integration with the dependency graph. * When the pointer to an object changes (e.g. after restarting Blender), all handles are still valid. * When an object is deleted, the handle is invalidated without causing crashes. * The handle is just an integer that can be stored per particle and can be cached easily. The mapping between handles and their corresponding data blocks is stored in the Simulation data block.
2020-07-20BLI: add typedefs for containers that use raw allocatorsJacques Lucke
Those are useful when you have to create containers with static storage duration. If those would use Blender's guarded allocator, it would report memory leaks, that are not actually leaks.
2020-07-20Particles: support removing particles during the simulationJacques Lucke
This still cannot be controlled by the user. Currently, all particles are killed after two seconds
2020-07-20Refactor: Update integer type usageJacques Lucke
This updates the usage of integer types in code I wrote according to our new style guides. Major changes: * Use signed instead of unsigned integers in many places. * C++ containers in blenlib use `int64_t` for size and indices now (instead of `uint`). * Hash values for C++ containers are 64 bit wide now (instead of 32 bit). I do hope that I broke no builds, but it is quite likely that some compiler reports slightly different errors. Please let me know when there are any errors. If the fix is small, feel free to commit it yourself. I compiled successfully on linux with gcc and on windows.
2020-07-18Simulation: cleanup deduplicating attribute input nodesJacques Lucke
2020-07-17Cleanup: avoid static initialization order issues when accessing CPPTypesJacques Lucke
Instead of depending on static initialization order of globals use static variables within functions. Those are initialized on first use. This is every so slighly less efficient, but avoids a full class of problems.
2020-07-16Nodes: support default function for partially implemented nodesJacques Lucke
2020-07-16Cleanup: missing CMake headers from source listsCampbell Barton
2020-07-13Cleanup: fix clang tidy warningJacques Lucke
The code was actually correct, but clang tidy complaint about using the Vector after it was moved from.
2020-07-12Functions: minor improvementsJacques Lucke
2020-07-12Functions: minor api improvementsJacques Lucke
2020-07-11Nodes: support implicit conversions and incorrectly linked socketsJacques Lucke
2020-07-11Fix: incorrect attribute type in networkJacques Lucke
2020-07-10Functions: add utility to find dependencies of input socketsJacques Lucke
2020-07-10Functions: make constant folding work on unfinished networksJacques Lucke
2020-07-10Functions: use new is-equal and hash function of CPPTypeJacques Lucke
2020-07-10Functions: make generic types hashableJacques Lucke
2020-07-10Functions: make generic types equality comparableJacques Lucke
2020-07-10Cleanup: various cleanups in for CPPTypeJacques Lucke
2020-07-10Cleanup: structure CPPType according to code style guideJacques Lucke
2020-07-10Cleanup: spellingCampbell Barton
2020-07-08Cleanup: remove unnecessary calls to as_spanJacques Lucke
This uses the new implicit conversions and constructors that have been committed in the previous commit. I tested these changes on Linux with gcc and on Windows.
2020-07-08Cleanup: use c++17 helper variable templatesJacques Lucke
2020-07-08Functions: add AttributesRef classJacques Lucke
This is the same as MutableAttributesRef, but the data in it cannot be changed.
2020-07-08Cleanup: use different internal socket nameJacques Lucke
2020-07-08Functions: support hashing MFDataType and CPPTypeJacques Lucke
2020-07-08Functions: implement common subnetwork elimination optimizationJacques Lucke
This was the last of the three network optimizations I developed in the functions branch. Common subnetwork elimination and constant folding together can get rid of most unnecessary nodes.
2020-07-08Functions: Support getting MFSocket based on its idJacques Lucke
2020-07-08Functions: Support accessing socket index of MFSocketJacques Lucke
2020-07-08Functions: initial hash/equals implementation for constant multi-functionsJacques Lucke
2020-07-08Functions: allow multi-functions to override a hash and equals functionJacques Lucke
2020-07-08Functions: add dead node removal and constant folding optimizationJacques Lucke
Those optimizations work on the multi-function network level. Not only will they make the network evaluation faster, but they also simplify the network a lot. That makes it easier to understand the exported dot graph.
2020-07-08Cleanup: fix commentJacques Lucke
2020-07-07Functions: cleanup loop that traverses the MFNetworkJacques Lucke
2020-07-07Functions: add generic functions that output constantsJacques Lucke
2020-07-07Functions: extend multi-function network apiJacques Lucke
2020-07-07Functions: Add debug print and destruct callback to CPPTypeJacques Lucke
2020-07-03Cleanup: use nested namespacesJacques Lucke
2020-07-03Cleanup: use trailing underscore for non-public data membersJacques Lucke
2020-06-30Functions: provide dummy multi functionJacques Lucke
Sometimes it is convenient to be able to return a reference to some dummy function.
2020-06-30Functions: add methods to multi-function network classesJacques Lucke
Those are necessary to query and modify the network.
2020-06-30Functions: use raw allocator for function signatureJacques Lucke
This allows multi-functions to have static storage duration.
2020-06-30Functions: add two more customizable multi-functionsJacques Lucke
2020-06-29BLI: remove blender::Optional in favor of std::optionalJacques Lucke
`std::optional` can be used now, because we switched to C++17.