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-02-24Add "Gravitation" option to "Force" type force fieldsLuca Rood
This adds an option to force fields of type "Force", which enables the simulation of gravitational behavior (dist^-2 falloff). Patch by @AndreasE Reviewers: #physics, LucaRood, mont29 Reviewed By: #physics, LucaRood, mont29 Tags: #physics Differential Revision: https://developer.blender.org/D2389
2016-08-16Fix depsgraph to compute more accurate links for collision & force.Alexander Gavrilov
Current implementation more or less indiscriminately links physics objects to colliders and forces, ignoring precise details of layer checks and collider groups. The new depsgraph seemed to lack some such links at all. The relevant code in modifiers suffers from a lot of duplication. Different physics simulations use independent implementations of collision and similar things, which results in a lot of variance: * Cloth collides with objects on same or visible layer with dupli. * Softbody collides with objects on same layer without dupli. * Non-hair particles collide on same layer with dupli. * Smoke uses same code as cloth, but needs different modifier. * Dynamic paint "collides" with brushes on any layer without dupli. Force fields with absorption also imply dependency on colliders: * For most systems, colliders are selected from same layer as field. * For non-hair particles, it uses the same exact set as the particles. As a special quirk, smoke ignores smoke flow force fields; on the other hand dependency on such field implies dependency on the smoke domain. This introduces two utility functions each for old and new depsgraph that are flexible enough to handle all these variations, and uses them to handle particles, cloth, smoke, softbody and dynpaint. One thing to watch out for is that depsgraph code shouldn't rely on any properties that don't cause a graph rebuild when changed. This was violated in the original code that was building force field links, while taking zero field weights into account. This change may cause new dependency cycles in cases where necessary dependencies were missing, but may also remove cycles in situations where unnecessary links were previously created. It's also now possible to solve some cycles by switching to explicit groups, since they are now properly taken into account for dependencies. Differential Revision: https://developer.blender.org/D2141
2016-07-31Support limiting collisions by group for softbody and particlesAlexander Gavrilov
This feature is extremely useful for layering multiple cloth objects, and there is no reason there shouldn't be the same kind of feature for softbody.
2016-05-23Fix T48487: Physics cache names allow (back)slashes, which breaks its handling.Bastien Montagne
For now, just validate new pointcache names as if they were filnames. Ideal solution would be rather to validate names in `ptcache_filename()`, but it would likely break some existing caches - and we'd also have to ensure we still have uniqueness of name after it has been cleaned up, wich would not be trivial at this stage. So let's go for simple solution for now, especially since this part of code is to be fully rewritten in 2.8...
2016-01-07Cleanup: use generic xyz axis enumsCampbell Barton
2015-11-23Cleanup: shadowing (rna, modifiers, *misc*)Campbell Barton
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-11-18RNA: reuse axis enumCampbell Barton
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-10-12RNA: correct tipsCampbell Barton
2015-04-16RNA: avoid past tense in property namesCampbell Barton
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...
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-09-16Fix T41840: bpy.context.object.collision.thickness_inner has no effect on cloth.Bastien Montagne
Only change the tip to stress that, in fact, cloth sim does not use inner thickness at all, only outer one, through the Collision modifier, afaik.
2014-08-10Fix for rB3cd2c6145ae1.Bastien Montagne
ID using EffectorWeight is not always a scene...
2014-08-10Fix T41295: Rigid bodyfield weights not working.??Bastien Montagne
Looks like `rna_EffectorWeight_update()` was not really working, now uses same kind of code as `rna_Physics_update()` from rna_scene.c.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-21Fix T37906: Adding force field settings to boids gives hard crashSergey Sharybin
Was a regression since fix for another bug T37189.
2013-12-04Fix T37189: Inconsistent icons for Force fieldSergey Sharybin
There's still an issue with Curve Guide force field which you can not so easily change type from/to. This i would consider TODO for later.
2013-11-19Remove Surface modifier when removing force field from objectSergey Sharybin
Summary: Before this adding Surface type of force field and removing this field would leave Surface modifier alive in the stack. This might be really misleading and annoying. Now removing force field will ensure no modifiers needed for it are remained in the stack. This also fixes missing notifier to redraw modifier stack when changing force field type. Reviewers: brecht, campbellbarton Reviewed By: brecht Differential Revision: http://developer.blender.org/D13
2013-10-11code cleanup: reuse rna_matrix_dimsize_NxN defines between RNA functionsCampbell 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-10Usual UI messages fixes...Bastien Montagne
2013-09-05simplify idprop reallocation with MEM_recallocNCampbell Barton
2013-09-03Related to #36382: for linked object point caches, show a message that diskBrecht Van Lommel
cache must be used for baking.
2013-08-02Fix [#35541]: Point cache doesn't load existing frames from disk if cache ↵Miika Hamalainen
file name is changed.
2013-04-24fix for mistake in own recent commit r56249 with rna_EffectorWeight_pathCampbell Barton
2013-04-24fix [#34958] keyframe many items would fail if there was a (") in the text.Campbell Barton
2013-03-17fix for missing NULL pointer checks and incorrect array freeCampbell Barton
2013-03-07use bool for rna funcs.Campbell Barton
2013-02-22code cleanup: remove unused argCampbell Barton
2013-02-21Dependency Graph: some refactoring which should have no user visible impactBrecht Van Lommel
besides performance in some cases. * DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in most cases. This will clear the dependency graph, and only rebuild it right before it's needed again when the scene is re-evaluated. This is done because DAG_scene_sort is slow when called many times from python operators. Further the scene argument is not needed because most operations can potentially affect more than the current scene. * DAG_scene_relations_update will now rebuild the dependency graph if it's not there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare cases that need it. * Remove various places where ob->recalc was set manually. This should go through DAG_id_tag_update() in nearly all cases instead since this is now a fast operation. Also removed DAG_ids_flush_update that goes along with such manual tagging of ob->recalc.
2013-02-18pointcache: Set start frame soft limit to 1Sergej Reich
Right now most simulations can't handle cache start frame < 1 unfortunately. There are two main problems: 1. frame 0 is a special case so some simulations will just pop back to their initial state on frame 0. 2. blender doesn't allow playing the animation starting from negative start frames, so most simulations only work when baked and not during regular playback. Just change soft limit since sart frame < 1 can work in some cases, but this needs to be fixed properly in the individual simulations if we really want to allow it.
2013-01-23rigidbody: Add force field supportSergej Reich
Force fields work with rigid bodies just like they do with other simulations. Increase min and max strength of force fields so they can influence heavy rigid bodies. TODO: Adjust force field strength based on the time step taken. Part of GSoC 2010 and 2012. Authors: Joshua Leung (aligorith), Sergej Reich (sergof)
2012-12-30code cleanup: text editor formatting enums were named crypticly, also add ↵Campbell Barton
asserts if the continuation values are wrong (which can happen with buffer overflows on formatting).
2012-12-29Long ago we used to be able to bake physics from negative frames, feature ↵Pablo Vazquez
that got lost at some point. Now we can do it again. Example is for physics like Cloth or Hair Dynamics that start on a shaky state for a few frames until they settle (for say baking subtle grass or hair movement). Reviewed on IRC by kaito, Uncle_Entity and DingTo.
2012-11-07code cleanup: use min/max functions rather then macros.Campbell Barton
2012-10-23comment quick cache RNA and quiet compiler werning.Campbell Barton
2012-10-10Google Summer of Code project: "Smoke Simulator Improvements & Fire".Daniel Genrich
Documentation & Test blend files: ------------------ http://wiki.blender.org/index.php/User:MiikaH/GSoC-2012-Smoke-Simulator-Improvements Credits: ------------------ Miika Hamalainen (MiikaH): Student / Main programmer Daniel Genrich (Genscher): Mentor / Programmer of merged patches from Smoke2 branch Google: For Google Summer of Code 2012
2012-10-09And more UI messages fixes...Bastien Montagne
2012-07-04Revert the DNA pdef_stickness -> pdef_stickiness part of r48556.Bastien Montagne
Forgot DNA needed stable names... :/ Correct spelling would involve keeping the old one for load code anyway, so better live with incorrect spelling here.
2012-07-03First load of spell and typo fixes (mostly UI messages, but also one or two ↵Bastien Montagne
pieces of code using mis-spelled names).
2012-05-12style cleanup: mostly whitespace in rnaCampbell Barton
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-04-14Fixed some UI message typos (spotted by Leon Cheung, thx).Bastien Montagne
2012-04-10Address [#30842] Blenders Measurement Units set to Metric, makes some ↵Campbell Barton
Precision Flaws. use the same precision for location all over (2-5 was used), use define as 5. also disallow boolean to have any subtype besides PROP_LAYER_MEMBER, some booleans had TRANSLATION / XYZ subtypes which don't make sense.
2012-03-30Node socket values now only have soft limits, rather than hard limits, so youBrecht Van Lommel
can type in any value, and only when sliding the number value there is a limit. It was already possible to assign any value to a socket with node linking, so this shouldn't cause any new issues. Also raised the limits on the math nodes, with a patch by Agustin Benavidez.
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-18Code style edits (mostly spliting long lines, and removing trailing spaces).Bastien Montagne
Note about long lines: I did not touch to two pieces of code (because I don’t see any way to keep a nicely formated, compact code, with shorter lines): * The node types definitions into rna_nodetree_types.h * The vgroup name functions into rna_particle.c