Commit Graph

9853 Commits

Author SHA1 Message Date
190c18a62a mistake in adding Ipo Extend mode menu 2008-04-16 07:27:42 +00:00
d5c1042ed8 Bugfix: editmode mesh transform was doing slow x-axis mirror
computations with the option disabled. Also small memory usage
optimization for vertex groups.
2008-04-15 18:07:04 +00:00
6e6a6cdf55 This fixes a Buffer Overflow Vulnerability reported by
Secunia Research

SAID: SA29818 (http://secunia.com/advisories/29818/)
Credit: Stefan Cornelius, Secunia Research

The old code trys to do a sscanf %s %d %s %d from a line in the
image file.

Now it copies over that line to a max buffer of size 540 chars before doing
the sscanf.  
(I just picked a constant that was siginficatly large)

It also checks to see if it gets all 4 values if not return NULL.

Kent
2008-04-15 15:52:18 +00:00
e971f84927 lock view area wasnt working when all bones were de-selected 2008-04-15 15:29:32 +00:00
0346ed80bd added a E as a key shortcut to IPO Extend Mode 2008-04-15 14:34:57 +00:00
67e2d05dcd Ipo View Option - Loc View Area - stops using each ipo's view area when changing ipo's. 2008-04-15 14:15:56 +00:00
13ec85aeb5 Bug #8950: dependency cycles weren't always printed correct. For
debugging, also added a name for each dependency relation, and when
a cycle is detected it now prints the full cycle to the console.
2008-04-15 13:07:56 +00:00
2147e74bc5 made sculpt axis locking use local/global space (using the transform space)
also added some checks for sculpt mixing with other modes (was possible to mix sculpt+posemode)
2008-04-15 09:20:13 +00:00
815791920f terrain sculpting enhancements, axis locking and brush strength multiply by grid 2008-04-14 21:37:23 +00:00
0b8b4369c9 Patch #8034: "soft" option for halos, which avoids ugly intersections
with geometry, and makes halos look more volumetric.

Patch contributed by Markus Ilmola, thanks!
2008-04-14 19:48:14 +00:00
7eb1b45281 Fix for bug #7903 and #8960: arealight giving black borders and not
working correct with translucency. Removed a check that presumably
is an optimization, but can't work correct and also gives no noticable
performance difference in my tests.
2008-04-14 15:40:32 +00:00
f8a29350ad Fix for bug #8957: undo lost scenes assigned to screens. 2008-04-14 13:09:08 +00:00
6da7b60cd3 Attempted fix for bug #8349: QMC raytracing being very slow on some
computers, probably due to slow multithreaded malloc. Now each render
thread keeps a list of qmc samplers that it fills as needed while
rendering (since it is hard to predict the actual amount needed in
advance due to ray recursion).
2008-04-14 10:14:59 +00:00
3dcb3cc4cd Bugfix: modifier buttons in the particle panel were locked unnecessarily
with edited hair.
2008-04-14 10:09:44 +00:00
ca5821af25 minor output button layout changes for touch/no overwrite/extension/set 2008-04-14 08:51:10 +00:00
7b0cd8a71f == Transform ==
adding missing init on handleEvent callback
2008-04-13 20:09:44 +00:00
ebae9b1a88 UV Editing
* Changed default UV wire drawing do be a grey line with a black outline, highlighting aroudn selected points.
* Moved some draw options out of the View menu into the View panel.
* Changed header buttons to make Vert/Face modes less confusing.
2008-04-13 19:42:39 +00:00
4e40e6becc == FFMPEG ==
Added flash video menu entries. (Encoder was compiled in anyways)
2008-04-13 18:50:16 +00:00
6b81045bc3 * Made Armature auto name L/R, Top/Bot, Fr/Bk remove existing, known extensions.
* Added fromDupli MTex setting to python api
* Shift+RMB was setting the active face in the UV view.
* Armature scripts menu was broken
2008-04-13 15:14:32 +00:00
209ff9e663 -> Bevel transform crash fix
Transinfo transform event callback is not cleared once
a transform event is over, this casued handleEventBevel
to dereference a null pointer. Added a check for this,
but it seems the callbacks should be set to NULL when
transform loop is done?
2008-04-13 05:51:13 +00:00
e17b13d9d2 Made octree size always available since its used for baking.
Documented obscure environment variables
2008-04-12 22:17:23 +00:00
d0d4604dad Fix for bug #8927: halo blending with solid has poor antialiasing,
which as far as I can see is an old issue, but with FSA it is quite
simple to do better.
2008-04-12 21:44:08 +00:00
6b94db570f error in last commit. also use smaller fonts in the sequencer for frame numbers, number string was too long. 2008-04-12 20:36:35 +00:00
ad6b1e16a5 active face can now be unselected, also extrude and copy keep the active face. 2008-04-12 19:56:53 +00:00
f8d1bc8ee7 Fix for bug #8463: object texture mapping for duplis was changed to
act as if the object was in its original position, instead of being
different for all instances. However, this is desired behavior in
some cases and so breaks compatibility. Now it only does the new
behavior when enabling the "From Original" option.
2008-04-12 18:44:03 +00:00
ea4a315f3d Fix for bug #8936: particle system crash with vertex groups and
zero vertices in a mesh.
2008-04-12 18:15:10 +00:00
98741e0392 Fix for bug #7100: when rendering on solaris, pressing esc could
kill the process. Some time ago SIGVTALRM was replaced with SIGALRM
to solve issues on linux, but this signal can kill the process on
solaris, so now it uses SIGVTALRM again there.
2008-04-12 17:34:48 +00:00
f810245076 Fix or bug #8712: transparency + sss gave too bright results. 2008-04-12 16:31:29 +00:00
0ec76c6dcf removed blenders backup feature.
sprintf(str, "/bin/su root -c 'cd %s; /bin/tar cf - \"%s\" | (/bin/cd %s; /bin/tar xf -)'", from, file, to);
 return system(str);

This would ask for a password in blenders terminal, in ubuntu there is no root user...
If this feature is added back it should be written in a much nicer way.

Also made HKey toggle hidden files in the file selector.
2008-04-12 15:03:47 +00:00
165bfce94e Fix for bug #8934: parenting or connecting armature bones didn't really
sync tip and root selection intuitively.
2008-04-12 14:53:29 +00:00
0b60ff01b4 Fix for bug #6753: metaballs instanced by a particle system did not
refresh properly, also fixed a memory leak.
2008-04-12 14:30:17 +00:00
ff77d00544 Fix for bug #5862: crash rendering to quicktime h.264. This would need
an upgrade to the new quicktime api to work, but that's not really
compatible with rendering out frames sequentially. For now it sets the
compression to minimum quality, which doesn't need seeking forward and
backwards.
2008-04-12 13:49:00 +00:00
8355a71365 Fix for bug #8932: crash converting old particle system. 2008-04-12 13:00:01 +00:00
6b02c7b12d Fix for bug #8930: issue removing temporary pointcache directory on windows. 2008-04-12 12:56:49 +00:00
1886872089 simple fix for "Unable to make version backup" warning when saving files. missing a return.
For *nix sustems, recent physics pointcache refactor uses stdio.h's remove() rather then system("rm -f ...") for removing files, since it was a lot slower for removing pointcache.

Ton used the system command because there was some problem using remove() ~6years back, but he cant remember why, (maybe its not a problem now)

Simple error, remove wasn't returning a value, but keep an eye out for problems removing files, and if anyone can reproduce the "Unable to make version backup" problem when saving, we should look into it.

Also added a note about using # in the output path for blenders command line help text.
2008-04-12 10:55:10 +00:00
Chris Want
8f6a16c12e Moved initialization of vertex flags up a bit in the subdivide
routine because they were trumping a fix I had made earlier
to deal with subdivide smooth and mirror modifiers.

Campbell, could you please check that this commit is compatible
with the results you were expecting from commit 14227? Here
is the log of that commit:

http://projects.blender.org/plugins/scmsvn/viewcvs.php/trunk/blender/source/blender/src/editmesh_tools.c?root=bf-blender&view=log#rev14227
2008-04-11 20:46:12 +00:00
c92660b18c This is patch [#8531] Change gamma node max value
Submitted By:
Stephane SOPPERA (soppera)

It just increases the max value for gamma correction to 10f.  Which
as noted in the patch is the same as the Gimp's color level tool.

Kent
2008-04-11 18:07:27 +00:00
f057a38e98 Changed BLI_convertstringcode to replace any number of hashes with the frame number.
somefile_##.png -> somefile_01.png
somefile_########-image.png -> somefile_00000001-image.png

Before, A hash at the end of the string would be replaced by a number with 4 characters. This is still default if no #'s are in the string, so nothing has changed.

To use this function from the python api use scene.render.getFrameFilename()
2008-04-11 15:47:21 +00:00
a02937d86c Fix for bug #8920: particles reactor crash and memory leak. 2008-04-11 12:29:29 +00:00
716f400182 Constraints-UI:
* Fixed typo in tooltip for IK Constraint
* Beautified Limit Distance constraint a little bit
2008-04-11 07:27:52 +00:00
0e8a6448dd Little cloth code cleanup needed because of from new cache code merge 2008-04-10 18:00:59 +00:00
f95f4ac8b4 2nd Part: Partial commit of patch #8812 (static caused problems on sunOS) 2008-04-10 16:42:19 +00:00
bdafa1dd91 Partial commit of patch #8812 (fixing inlining on sunOS) 2008-04-10 16:36:46 +00:00
7751a18c0b Fix for mistake in pointcache refactor commit. 2008-04-10 13:20:36 +00:00
8b2b470d44 Fix for bug #8898: QMC AO not working correct on objects pointing
directly at the camera in some cases.
2008-04-10 12:52:48 +00:00
1fe5302cce Point Cache Refactoring
=======================

Caching and Baking:
- The point cache is now cleared on DAG_object_flush_update(), and not cleared for time dependency graph updates.
- There is now a Bake button instead of Protect. Also cache start and end frames were added to softbody and particles.
- The cloth autoprotect feature was removed.
- The Ctrl+B menu now also bakes cloth and particles next to softbody and fluids. Additionally there are now frree bake and free cache menu entries.
- The point cache api has been changed. There is now a PTCacheID struct for each point cache type that can be filled and then used to call the point cache functions.
- PointCache struct was added to DNA and is automatically allocated for each physics type.
- Soft body now supports Bake Editing just like cloth.
- Tried to make the systems deal consistently with time ipo's and offsets. Still not sure it all works correct, but too complicated to solve completely now.

Library Linking:
- Added some more warnings to prevent editing settings on library linked objects.
- Linked objects now read from the cache located next to the original library file, and never write to it. This restores old behavior for softbodies. For local simulation the mesh and not the object should be linked.
- Dupligroups and proxies can't create local point caches at the moment, how to implement that I'm not sure. We probably need a proxy point cache for that to work (ugh).

Physics UI:
- Renamed deflection panel to collision for consistency and reorganized the buttons. Also removed some softbody collision buttons from the softbody panel that were duplicated in this panel for cloth.
- Tweaked field panel buttons to not jump around when changing options.
- Tabbing e.g. Soft Body Collision into the Soft Body panel, it now only shows Collision to make the panel names readable.
- I tried to make enabled/disabling physics more consistent, since all three system did things different. Now the two modifier buttons to enable the modifier for the viewport and rendering are also duplicated in the physics panels. Toggling the Soft Body and Cloth buttons now both remove their modifiers.
- Fixed modifier error drawing glitch.

Particles:
- Particles are now recalculated more often than before. Previously it did partial updates based on the changes, but that doesn't work well with DAG_object_flush_update() ..
- Fixed memory leak loading keyed particle system. Now keys are not written to file anymore but always created after loading.
- Make particle threads work with autothreads.

Continue Physics:
- The timeline play now has a Continue Physics option in the playback menu, which keeps the simulations going without writing them to the cache.
- This doesn't always work that well, some changes are not immediately updated, but this can be improved later. Still it's fun to get a feel for the physics.

Todo:
- Point cache can get out of sync with and undo and changing a file without saving it.
- Change the point cache file format to store a version (so old point cache files can be either converted or at least ignored), and to do correct endian conversion.
- Menu item and/or buttons for Ctrl+B.
- A system("rm ..") was changed to remove() since the former is very slow for clearing point caches. These system() calls were already giving trouble in a bug in the tracker, but really most use of this system("") should be changed and tested.
- The Soft Body Collision and Clot Collision panel titles don't mention there's point cache settings there too, doing that makes them unreadable with the default panel setup.. but may need to make the names longer anyway.
2008-04-10 11:39:20 +00:00
36288dabb8 Fix for render scemode in the python api, forgot to commit this file
when i changed it from a short to an int.
2008-04-10 11:34:36 +00:00
b955a53425 Cloth bugfix for new timescaling feature 2008-04-09 19:10:03 +00:00
ec1262944e Bugfix: scaling images anti-aliased with either the width or height
staying the same did not work correct (showed up in the sequencer).
2008-04-09 17:14:02 +00:00
906666a4d8 Cloth enhancement for upcomming cache changes: support different speed using clmd->sim_parms->timescale 2008-04-09 16:38:26 +00:00