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
2016-11-07Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/blender/addon/properties.py
2016-11-07Expose Bullet rotational spring settings in the UI.Alexander Gavrilov
Bullet spring constraint already supports rotational springs, but they are not exposed in blender UI, likely due to a simple oversight. Supporting them is as simple as adding a few DNA/RNA properties with appropriate UI and passing them on to Bullet. Reviewers: sergof Reviewed By: sergof Differential Revision: https://developer.blender.org/D2331
2016-08-11Fix T49004 and motion blur of cloth, softbody, etc past the end frame.Alexander Gavrilov
Point cache read code contains checks designed to prevent it reading stale data when the relevant simulation code should instead compute the next frame from the previous one. However in some situations like motion blur subframes the simulation can't possibly do it and just exits. This causes completely incorrect motion blur at or after the last cached frame. To fix, add a parameter that tells the cache code whether it should apply the checks and exit, or read what it can even if stale (true means exactly same as old behavior). Doing this in cache rather than clamping the frame number better in the caller lets it handle the case of incomplete cache that stops before the official last frame. Reviewed By: mont29, lukastoenne Maniphest Tasks: T49004 Differential Revision: https://developer.blender.org/D2144
2016-04-30Removed DNA for point caches.temp_remove_pointcacheLukas Tönne
2016-04-29Removed point cache blenkernel code.Lukas Tönne
2016-04-13Removed particle DNA.Lukas Tönne
2015-10-08Fix compilation error with bullet disabledSergey Sharybin
2015-10-08Add rigidbodyworld to id looper.Bastien Montagne
2015-07-21Cleanup: styleCampbell Barton
2015-07-20Minor edits for consistencyCampbell Barton
2015-07-19Cleanup: styleCampbell Barton
Also 'com' as abbreviation for center-of-mass is a bit confusing, rename to 'center'.
2015-07-19Convert rigidbody conversion to looptri.Antony Riakiotakis
Patch D1417 by Martin Felke, with minor edits thanks!
2015-05-12Depsgraph: Add evaluation callbacks for granular nodes updateSergey Sharybin
This commit only adds callbacks which then later be used with major dependency graph commit, keeping the upcoming commit more clean to follow. Should be no functional changes so far still.
2015-02-10Fix T43611: Collision shape of rigid bodies changes inadvertentlySergey Sharybin
The issue was caused by the fix for T34108, which modified DNA in order to get a fallback box collision shape. Not sue why it's needed, we can just get box shape directly, without modifying user's settings.
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-18Code cleanupCampbell Barton
2014-07-17Cleanup: dead codeCampbell Barton
2014-07-16Clean up of dead code.Bastien Montagne
dm can’t be NULL here (found by Coverity).
2014-07-11Fix T41019: Calculate Mass does not calculate actual volume.Lukas Tönne
This was a ToDo item, for mesh-based rigid body shapes (trimesh, convex) the operator was simply using the bounding box volume, which can grossly overestimate the volume and mass. Calculating the actual volume of a mesh is not so difficult after all, see e.g. http://research.microsoft.com/en-us/um/people/chazhang/publications/icip01_ChaZhang.pdf This patch also allows calculating the center-of-mass in the same way. This is currently unused, because the rigid body system assumes the CoM to be the same as the geometric object center. This is fine most of the time, adding such user settings for "center-of-mass offset" would also add quite a bit of complexity in user space, but it could be necessary at some point. A number of other physical properties could be calculated using the same principle, e.g. the moment of inertia.
2014-05-29Cleanup: Use doxy for more structured commentsCampbell Barton
2014-05-14Dirty fix for memory corruption in the rigid body API.Lukas Tönne
Problem happens when removing a rigid body reference in a constraint, and then jumping to the start frame right away. This will cause a full rebuild of the rigid body world. However, the btRigidBodys are removed before the constraints, and this leaves dangling pointers in the btTypedConstraints, which causes corruption when deleting those constraints later. Fix for now is to explicitly delete constraints in advance when rebuilding, while they still have valid btRigidBody pointers. Ultimately the whole memory management and ownership of Bullet data needs redesign. This is already happening in the particles_refactor branch and could be ported to master separately: https://developer.blender.org/diffusion/B/browse/particles_refactor/source/blender/blenkernel/intern/rigidbody.c
2014-05-12Fix crash removing objects rigid body constraintsCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-14Fix for crash caused by effectors doing precalculation //during// DAGLukas Tönne
updates. This file crashes on loading with NULL pointer access to curve_cache: {F77132} The pdInitEffectors function was amalgamating the simple collection of effector objects with an automatic precalculation for curve guides and the like. This precalculation requires object data that may not be available until the DAG has finished. Since for DAG dependencies only the list of effectors is required, added an argument to disable precalculation when collecting effectors.
2014-01-29Fix T38388: Creating a new scene with full copy sets rigidbody collision ↵Sergej Reich
shapes to box. Tweak world rebuilding logic, so it's not done before object data was updated.
2014-01-04Rigidbody: Code cleanupSergej Reich
Convert int to bool.
2013-12-30Code Cleanup: unused defines & styleCampbell Barton
2013-12-27Rigidbody: Code cleanupSergej Reich
Make some functions private. Remove unneeded nested if statements. Avoid mixing short and bool.
2013-12-26Rigidbody: Allow triangle mesh shapes to deform during simulationSergej Reich
Only supported when using the "Deform" mesh source.
2013-12-26Rigidbody: Use own structure to store mesh data for collision shapesSergej Reich
This gives us better access to the data and should also be faster to create.
2013-12-26Rigidbody: Add option to choose mesh source for collision shapesSergej Reich
The options are: Base: Base mesh Deform: shape keys and deform modifiers Final: All deformations and modifiers It would be nice to have a way of specifying where exactly in the modifier stack the collision shape is generated. However this is not staight forward since the rigid body simulation is not part of the modifier system and would require hacks to make it work.
2013-12-26Code Cleanup: remove object arg to CDDM_from_mesh mesh_create_derivedCampbell Barton
2013-10-31code cleanup: spellingCampbell Barton
2013-09-29Fix [#36847] If Force Field in Ridgid Body group, crash at first frame of ↵Bastien Montagne
animation on playback Not all objects in RB group actually have a "rigid body object", needs to be checked.
2013-07-21Fixes for recent Wlimit stuff, which makes strict gcc freak outSergey Sharybin
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-07-04rigidbody: Code clenupSergej Reich
Remove duplicate null check.
2013-07-04rigidbody: Remove constraint when removing one of it's objectsSergej Reich
This is not the nicest behaviour but trying to keep both bullet and blender side objects in sync breaks in this case. There might be a better soluion but this avoids crashes for now. Fixes: [#35995] Delete crash on specific scene (Physics)
2013-05-26BLI_math rename functions:Campbell Barton
- mult_m4_m4m4 -> mul_m4_m4m4 - mult_m3_m3m4 -> mul_m3_m3m4 these temporary names were used to avoid problems when argument order was switched.
2013-04-25style cleanupCampbell Barton
2013-04-25Fix #34806: rigid body world settings were not copied with a full scene copy.Brecht Van Lommel
Now copying a scene will also duplicate groups that consist entirely of objects that are duplicated with the scene. The rigid body world will then also pointers to these new groups.
2013-04-07rigidbody: Fix/workaround for transforming rigid bodies with parentsSergej Reich
Since we use the rigid body transform when transforming rigid bodies things like parents and constraints add an offset because rigid body transforms are in global space. Now we just don't take rigid body transform into account on simulation start frame so there are no problems when doing the initial setup. The problem still exists when simulation is running of course. To properly fix this we'd have to solve parenting and constratins while taking rigid bodies into account before and after transform. We'll have to see if it's really needed, would like to avoid it though.
2013-03-27sequencer gapsCampbell Barton
- remove unneeded checks (poll checks editor is non-null) - use booleans - rename operator SEQUENCER_OT_gap_remove, _gap_insert also quiet shadow warning in rigidbody.c (shadowing 'loc')
2013-03-15code cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,Campbell Barton
also correct odd indentation.
2013-03-04code cleanup: unused vars in collada, preprocessor formatting & warning in ↵Campbell Barton
mingw. also compiling without bullet needed a stub added.
2013-03-03rigidbody: Revert to running simulation on frame updateSergej Reich
Instead of flagging the rigid body world for frame update just call BKE_rigidbody_do_simulation() recursively for all scenes. This avoids having to constantly check if the simulation needs to be updated.