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
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2011-01-05edits for BPY_extern.h functions, no functional changesCampbell Barton
- remove unused code. - BPY_run_python_script() split in 2, BPY_filepath_exec, BPY_text_exec - renamed funcs.
2010-12-23Bugfix #25341Ton Roosendaal
Child-of constraint issue: on adding, it wasn't checking owner correctly for Bones, resulting in a constraint working in wrong space; it looked as if transform was applied double when moving the object. Only adding via Py API went wrong btw. Also found a silly check for drawing constraints, which caused constraint initialization to happen for every object on every redraw! Implementation note: con->flag CONSTRAINT_SPACEONCE was only used for child-of constraints in Bones, so I've patched it on file reading to always set the flag. Marked with XXX, so it can be removed one day. Now at least things get corrected well for imported armatures.
2010-12-17Fix #25272: shrinkwrap with dependency cycle could lead to eternalBrecht Van Lommel
loop and increasing memory usage. Modifiers should never call mesh_get_derived_final or similar, only use ob->derivedFinal if it exists, if the dependencies are set correct and there are no cycles, it will be there.
2010-12-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-02fixed crash with rigid body constraints not having their child pointer read ↵Campbell Barton
correctly.
2010-11-28minor changes to the python api.Campbell Barton
- pep8 script was giving an error on non utf8 scons source files. - use PyList_SET_ITEM macro when list type is ensured. - all mathutils types use subtypes to create new types when available. - use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.
2010-11-19bugfix for pivot constraint.Campbell Barton
- no rotation resulted in NAN location. - subtraction of pivot done in wrong order made the constraint give odd results when rotating on more then 1 axis.
2010-11-07bugfix [#24574] setting location gained from a ↵Campbell Barton
matrix_world.copy().translation_part() (visual loc) after constraints causes NAN in object location after python script ends shrinkwrap constraint was dividing by zero. also the shrinkwrap UI was incorrectly trying to draw a subtarget.
2010-11-05tedious string copying changesCampbell Barton
- use sizeof() in more places. - fixed some off by 1 bugs copying strings. setting curve font family for instance was 1 char too short. - replace strncpy and strcpy with BLI_strncpy
2010-10-31initialize structs to zero rather then using memset().Campbell Barton
2010-10-31rename and negate DISABLE_PYTHON --> WITH_PYTHONCampbell Barton
2010-10-30change mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the ↵Campbell Barton
smallest one. mat4_to_eul & mat3_to_eul are already working this way. Without this we get problems with constraints, eg: rotation on the Y axis over 90d can be represented by setting the X and Z to -PI, Y would decrease to 0 (infact 180d).
2010-10-30the pivot constraint was translating when the pivot was offset along the ↵Campbell Barton
rotation axis. fixed by projecting the pivot along the axis of rotation and subtracting this from the pivot.
2010-10-26partial bugfix [#24002] Constraint "Limit rotation" doesn't work properlyCampbell Barton
this fixes the obvious problems but there are still some rotation jumping when clamping in some cases.
2010-10-23warning fixes.Campbell Barton
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-08bugfix [#21483] Twisting when Dupliframing a Surface Circle (Nurbs) along a ↵Campbell Barton
Curve. use the curve's twist for follow path constraint and parent-path.
2010-09-28images bigger then 32k no longer crash blender, use unsigned int for image ↵Campbell Barton
size rather then short. also check if jpeg fails to allocate an imbuf.
2010-09-24Fix for [#21875] Copy rotation only on y axiesJanne Karhu
2010-09-24Fix for [#23549] Copy rotation don't work if influence is another than 0 or 1Janne Karhu
* Replaced constraint result interpolation with much simpler logic, hopefully this doesn't create any unseen complications :)
2010-09-20bugfix [#22263] Child of constraint - only rotationCampbell Barton
2010-08-24py/rna remove functions now all work in a similar way.Campbell Barton
- some remove() functions took an int argument rather then the item to remove. - disallow None argument. - raise an error if the item isnt in the collection.
2010-08-15use more BLI math functions.Campbell Barton
2010-07-26replace macros VECCOPY and QUATCOPY with inline math functions no functional ↵Campbell Barton
changes also replace mul_m4_v3() with mul_v3_m4v3() in a few places.
2010-05-27Various constraint code cleanups:Joshua Leung
1) Fixed some weird formatting introduced during math-lib cleanups, and some other inconsistencies 2) Optimised the Maintain Volume constraint by taking the value calculations out Copy All Constraints Operators: * Added one for bones too * These are now included in the menus * Removed some weird/extra code copying/changing/bleh the actcol/totcol stuff...
2010-05-27== Pivot Constraint ==Joshua Leung
This constraint allows an object or bone to have their rotations applied as if their origin/pivot-point was located elsewhere. The most obvious uses include foot-roll, see-saws, but could also include more complicated rolling-box examples. == Usage Examples == === Foot Roll === 1. Add 'Pivot' Constraint to the bone without any target. 2. Set the 'Y' value of the offset to the length of the bone. Usually this should be negative (if you rig with feet facing 'forwards' along -Y axis). This gives you a pivot point relative to the bone's (preconstraint) location, which should be at the tip of the bone here. Disabling the 'Use Relative Offset' would make this offset be relative to 0,0,0 instead of to the owner/bone-head. 3. Ensure that the 'Pivot When' setting is set to '-X Rot', (default) which means that the pivot will only used when the rotation on the X-Axis is negative to get tip-toe 'roll'. === See Saw === 1. Add a 'Pivot' constraint too see-saw plank object, this time with a target that you wish to have as the pivot-point. It's possible to do this without too (as before), but is less intuitive. 2. Optionally, if you want the plank slightly raised, set the z-offset value, which should make the pivot-point used to be relative to the target with the z-offset applied. 3. Ensure that 'Pivot When' is set to 'Always', which means that the pivot will always be used, irrespective of the rotation. == Notes == * The 'Pivot When' setting has been integrated in the constraint, since this is something that will often be required for these setups. Having to set up additional drivers to drive the constraint to do this kindof beats the purpose of providing this. * The 'Offset' functionality is probably not presented as clearly as it could be. We may need to go over this again. * For foot-roll - if any scaling of the foot is required, simply set up a driver on the y-offset to make this dynamically respond to the "scale" RNA property of the bones (don't use the "Transform Channel" vartype since that won't work correct here). However, this shouldn't be common enough to warrant special treatment.
2010-04-29option to copy constraints without making their ID references direct links.Campbell Barton
needed because proxies are causing libs to be linked directly when they should be kept indirect (likely slowing load times though I didnt time this)
2010-04-26Assorted code cleanups:Joshua Leung
* Removed some un-needed armature code stubs * Manually copying over the values of constraints in the constraint copy() callbacks should NOT be needed. Removed this from the Spline IK constraint. The manual process is only a hacky aspect of the modifier stack only!
2010-04-26Pass constraint names as operator properties in constraint operatorsMatt Ebb
This is similar to commit revision 22078, but for constraint operators rather than modifiers, making it possible to use them from scripting.
2010-04-25bugfix [#22117] Memory Error messages with Spline IKCampbell Barton
chainlen was initialized as 0
2010-04-25minor mathutils updateCampbell Barton
- docstring for Euler.rotate - rotate_eul, use upper case in Py and C. - use less verbose repr method.
2010-04-21replace add_v3_v3v3() --> add_v3_v3() where possibleCampbell Barton
2010-04-21option to use curve point weights to influence particle effectors.Campbell Barton
2010-04-18remove config.h references, was added for automake build system rev around ↵Campbell Barton
124-126 but isnt used by any build systems now.
2010-04-12- use more inline math funcitons where possibleCampbell Barton
- swapped in less verbose math functons - modifier include cleanup
2010-04-05Fix #21885: constraint with copy location/rotation from vertex group crashes.Brecht Van Lommel
2010-03-264 Devs in Agreement - End of the Road for Old Track Joshua Leung
This commit removes the Old Track method (used to be found under Object -> Animation -> Track), with all existing instances of this being converted to Track To Constraints. In fact, while performing this removal, I found that this was supposed to have happened in version 2.27 already, but for some reason the options were left in, and this function managed to survive for a further decade. I've left the tracking axes around still, since it seems some curve tools still use that. However, that usage should probably get faded out in future too? Misc notes: * Fixed compiling error with constaints from harkyman's Maintain Volume patch. * Subversion of 2.52 now bumped up to .2
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-03-21removed unused includes, except for physics and particle related filesCampbell Barton
2010-03-16New "Maintain Volume" constraint. When attached to a bone, you specify a ↵Roland Hess
"free" axis. Upon scaling, this free axis scales normally, but the constraint forces the other two axes to adjust themselves appropriately so that overall bone volume is maintained. So, setting "Y" as the free axis (the default) creates a bone that automatically squashes and stretches when scaling. Thanks to Aligorith, Fweeb, Cessen and others for the feedback.
2010-03-01Missed a spot when renaming the API functions for adding Keying Set pathsJoshua Leung
Also some indention/whitespace tweaks
2010-02-27rename flag for auto script execution since scriptlinks are no more.Campbell Barton
2010-02-21Bugfix #21245: "Track to" (Ctrl + T) operator was missing notifier updatesJoshua Leung
Bugfix #21255: Clear track operator did not remove TrackTo constraints too. This could still be made to do Locked Track and other tracking constraints later too, but for now this will do.
2010-02-18constraints unique name length was set too long (could overrun the buffer), ↵Campbell Barton
use sizeof() with other instances of BLI_uniquename too
2010-02-12correct fsf addressCampbell Barton
2010-02-10Fix crash in copying constraints for proxy.Brecht Van Lommel
2010-02-09Bugfix: Inserting keyframes from the buttons now ensures that the Graph ↵Joshua Leung
Editor is updated in the process...
2010-02-08run id_lib_extern on all constraint ID data when copying. solves possible ↵Campbell Barton
errors when running make proxy on a library object.
2010-02-06Constraints API: ID-LoopersJoshua Leung
Added a system for running a callback on all the ID-blocks referenced by constraints (like for modifiers). Also, added an API function which calls these on the constraints present in the given list. These could be used for: - the proxies + action/pyconstraint fix that campbell committed - simplification of file loading code