blender-staging.git
11 years agoapplied patch from Boris van Schooten, [#8148] Animation bugfix for md2_export script
Campbell Barton [Fri, 18 Apr 2008 23:04:54 +0000 (23:04 +0000)]
applied patch from Boris van Schooten, [#8148] Animation bugfix for md2_export script
made some other small fixes while testing. (divide by zero errors)

11 years agoBGE: fix compilation error with 2D filters on System without GL extenstion: add condi...
Benoit Bolsee [Fri, 18 Apr 2008 22:22:50 +0000 (22:22 +0000)]
BGE: fix compilation error with 2D filters on System without GL extenstion: add conditional compile statements

11 years agobugfix from Teppo Känsälä, makes moving textures up/down also move their enabled...
Campbell Barton [Fri, 18 Apr 2008 22:13:22 +0000 (22:13 +0000)]
bugfix from Teppo Känsälä, makes moving textures up/down also move their enabled state.
bug: [#9437] Moving texture up/down bug
patch: [#8938] Moving texture up/down to also move 'enabled/disabled'-status of texture

11 years agoBlenderstorm: idea #164: Hide useless World Shading buttons
Campbell Barton [Fri, 18 Apr 2008 21:59:54 +0000 (21:59 +0000)]
Blenderstorm: idea #164: Hide useless World Shading buttons
Simple button change

11 years agoipo transform didnt take NLA scaling into account when getting the boundbox
Campbell Barton [Fri, 18 Apr 2008 20:55:29 +0000 (20:55 +0000)]
ipo transform didnt take NLA scaling into account when getting the boundbox

11 years agoThis is an expanded patch of this:
Kent Mein [Fri, 18 Apr 2008 19:10:03 +0000 (19:10 +0000)]
This is an expanded patch of this:

[#8067] external texture plugin thread-safe modifications
Submitted By: David Anderson (davywavy)

It makes it so the "result" array is passed in, instead of a global var.
I expanded the patch so it will play nice with older plugins  that are not
thread safe as well.

I also updated the existing plugins in the release, so they are thread safe.

---------------  What do people think of this.... ------------------
This should maybe be talked about in the functionality board or something,
but what do people think of adding in default texture/sequence plugins.
or making a seperate tree like lib for plugins.

The reason I ask is we have had a couple of upgrades to the plugin system.
(supporting float buffers for sequencer, and this one for textures)

http://www.cs.umn.edu/~mein/blender/plugins does not store revisions of
plugins I just make sure they work with the latest version.  This is
getting messy.  I haven't upgraded a lot of them to use floats (I know,
I'm lazy, and now this will also make modifications to the plugins)
It would be nice to have some of the standard ones under revision control.

We also seem to be having an explosion of platforms supported.  It would
be nice to have platform maintainers compiling plugins as well for releases.
(Its getting to be more work for me to keep up with things...)

I'll go back to my corner now and be quite. ;)

Kent

11 years agoFluid: got to the real problem of the issue --> wrong float epsilon resulted in norma...
Daniel Genrich [Fri, 18 Apr 2008 18:25:11 +0000 (18:25 +0000)]
Fluid: got to the real problem of the issue --> wrong float epsilon resulted in normalizing a vector to fail, reverted other change from today

11 years agoYesterday was not my day. Forgot about end of string.
Kent Mein [Fri, 18 Apr 2008 14:25:36 +0000 (14:25 +0000)]
Yesterday was not my day.  Forgot about end of string.

Kent

11 years agoFluid bugfix [#8395] [#6200]: this should solve the popping/inconsistency/flickering...
Daniel Genrich [Fri, 18 Apr 2008 14:12:42 +0000 (14:12 +0000)]
Fluid bugfix [#8395] [#6200]: this should solve the popping/inconsistency/flickering issue with fluids, please give feedback :)

11 years agoMore changes to GET_INT_FROM_POINTER and SET_INT_IN_POINTER to get rid of
Ken Hughes [Fri, 18 Apr 2008 00:21:40 +0000 (00:21 +0000)]
More changes to GET_INT_FROM_POINTER and SET_INT_IN_POINTER to get rid of
other warnings that only occurred with 64bit systems.  Wish I'd known about
these macros earlier!

11 years agoUsed GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit...
Campbell Barton [Thu, 17 Apr 2008 21:14:55 +0000 (21:14 +0000)]
Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit os's
Also use Py_ssize_t which we might need to define for older python's

11 years agoI can't spell ;)
Kent Mein [Thu, 17 Apr 2008 20:29:57 +0000 (20:29 +0000)]
I can't spell ;)
(typo fix in the comments)

Kent

11 years agomilkshape3d model importer, can import a textured model with materials and animation
Campbell Barton [Thu, 17 Apr 2008 20:15:37 +0000 (20:15 +0000)]
milkshape3d model importer, can import a textured model with materials and animation

11 years agoChange scons so OpenMP library is appended at end of linkage line with other
Ken Hughes [Thu, 17 Apr 2008 19:01:00 +0000 (19:01 +0000)]
Change scons so OpenMP library is appended at end of linkage line with other
libraries (fixes a problem with statically linking OpenMP).

11 years agoMy last commit for the sscanf buffer overflow did not really fix the
Kent Mein [Thu, 17 Apr 2008 15:41:06 +0000 (15:41 +0000)]
My last commit for the sscanf buffer overflow did not really fix the
problem.  Now the fixed length strings are limited in the sscanf so
it should be much better now.

Kent

11 years agoBugfix for [#8962] Blender crashes on joining meshes with python
Campbell Barton [Thu, 17 Apr 2008 14:10:40 +0000 (14:10 +0000)]
Bugfix for [#8962] Blender crashes on joining meshes with python
blenders screen needs initializing before running python scripts when not in background mode.

11 years agoFix for bug #9075: the crash with stars rendering was not
Brecht Van Lommel [Thu, 17 Apr 2008 12:11:15 +0000 (12:11 +0000)]
Fix for bug #9075: the crash with stars rendering was not
completely fixed yet.

11 years agoMot importer from ZanQdo
Campbell Barton [Thu, 17 Apr 2008 08:43:22 +0000 (08:43 +0000)]
Mot importer from ZanQdo

11 years agoPatch from GSR that a) fixes a whole bunch of GPL/BL license
Chris Want [Wed, 16 Apr 2008 22:40:48 +0000 (22:40 +0000)]
Patch from GSR that a) fixes a whole bunch of GPL/BL license
blocks that were previously missed; and b) greatly increase my
ohloh stats!

11 years agoZanQdo fixed exporting of mot files
Campbell Barton [Wed, 16 Apr 2008 20:03:59 +0000 (20:03 +0000)]
ZanQdo fixed exporting of mot files

11 years agoBGE: SetCamera actuator tool tip updated to reflect new feature: ...Leave empty to...
Benoit Bolsee [Wed, 16 Apr 2008 18:58:11 +0000 (18:58 +0000)]
BGE: SetCamera actuator tool tip updated to reflect new feature: ...Leave empty to refer to self object

11 years agoBGE: Fix restitution: object will now bounce according to material restitution setting
Benoit Bolsee [Wed, 16 Apr 2008 18:47:36 +0000 (18:47 +0000)]
BGE: Fix restitution: object will now bounce according to material restitution setting

11 years agoThis is a patch from the FreeBSD people:
Kent Mein [Wed, 16 Apr 2008 17:53:09 +0000 (17:53 +0000)]
This is a patch from the FreeBSD people:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/blender/files/patch-source_blender_blenlib_intern-storage.c

Kent

11 years agoThis patch spawns from this game engine issue:
Kent Mein [Wed, 16 Apr 2008 17:40:59 +0000 (17:40 +0000)]
This patch spawns from this game engine issue:
[#7113] GE crash pressing as soon as P on 64 bit

Note:         glext.h has been removed from the source
        If you get errors compiling with it you have 2 options
                download/install  glext.h        (preferred method)
                or set WITH_BF_GLEXT=false
        If your a user and having problems with game engine try
                setting the env var: WITHOUT_GLEXT 1

Kent

11 years ago== Action Editor - Group Colours for Channels ==
Joshua Leung [Wed, 16 Apr 2008 11:02:08 +0000 (11:02 +0000)]
== Action Editor - Group Colours for Channels ==

It is now possible for Action Channels to be displayed using the colour of its group. The colour for an Action Group is only set when it is auto-created by keyframing (controls to tweak this may/may-not be added, time permitting).

To enable the display of these colours, the View -> 'Use Group Colors' must be enabled. However, this is disabled by default.

11 years agoFix for bug #9017: crash in stars rendering.
Brecht Van Lommel [Wed, 16 Apr 2008 09:08:02 +0000 (09:08 +0000)]
Fix for bug #9017: crash in stars rendering.

11 years agoreplace magic numbers with constants for (G.vd->persp), view naming was also using...
Campbell Barton [Wed, 16 Apr 2008 08:48:49 +0000 (08:48 +0000)]
replace magic numbers with constants for (G.vd->persp), view naming was also using persp as a flag which worked but isnt correct.

11 years agoBugfix #8948: Transformation constraint - destination rotation is in radians
Joshua Leung [Wed, 16 Apr 2008 07:33:54 +0000 (07:33 +0000)]
Bugfix #8948: Transformation constraint - destination rotation is in radians

Unfortunately, my previous fixes here to get gears working resulted in this problem. The flip side of that was that gears worked for quite a few cases.

Alas, it is not to be... The bug is now fixed, but gears no longer work any more. Sadly, there is not much I can do about this.

11 years agomistake in adding Ipo Extend mode menu
Campbell Barton [Wed, 16 Apr 2008 07:27:42 +0000 (07:27 +0000)]
mistake in adding Ipo Extend mode menu

11 years agoBugfix: editmode mesh transform was doing slow x-axis mirror
Brecht Van Lommel [Tue, 15 Apr 2008 18:07:04 +0000 (18:07 +0000)]
Bugfix: editmode mesh transform was doing slow x-axis mirror
computations with the option disabled. Also small memory usage
optimization for vertex groups.

11 years agoThis fixes a Buffer Overflow Vulnerability reported by
Kent Mein [Tue, 15 Apr 2008 15:52:18 +0000 (15:52 +0000)]
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

11 years agolock view area wasnt working when all bones were de-selected
Campbell Barton [Tue, 15 Apr 2008 15:29:32 +0000 (15:29 +0000)]
lock view area wasnt working when all bones were de-selected

11 years agoadded a E as a key shortcut to IPO Extend Mode
Campbell Barton [Tue, 15 Apr 2008 14:34:57 +0000 (14:34 +0000)]
added a E as a key shortcut to IPO Extend Mode

11 years agoIpo View Option - Loc View Area - stops using each ipo's view area when changing...
Campbell Barton [Tue, 15 Apr 2008 14:15:56 +0000 (14:15 +0000)]
Ipo View Option - Loc View Area - stops using each ipo's view area when changing ipo's.

11 years agoBug #8950: dependency cycles weren't always printed correct. For
Brecht Van Lommel [Tue, 15 Apr 2008 13:07:56 +0000 (13:07 +0000)]
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.

11 years agomade sculpt axis locking use local/global space (using the transform space)
Campbell Barton [Tue, 15 Apr 2008 09:20:13 +0000 (09:20 +0000)]
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)

11 years agoBGE fix: keep reference count consist on source object when replicating property...
Benoit Bolsee [Mon, 14 Apr 2008 22:45:28 +0000 (22:45 +0000)]
BGE fix: keep reference count consist on source object when replicating property copy actuator

11 years agoterrain sculpting enhancements, axis locking and brush strength multiply by grid
Campbell Barton [Mon, 14 Apr 2008 21:37:23 +0000 (21:37 +0000)]
terrain sculpting enhancements, axis locking and brush strength multiply by grid

11 years agofix BGE bug #8309: After Parent Object added to the visual layer, Child Camera won...
Benoit Bolsee [Mon, 14 Apr 2008 20:54:20 +0000 (20:54 +0000)]
fix BGE bug #8309: After Parent Object added to the visual layer, Child Camera won't follow.

This bug fix is made of two parts:
1) It's now possible to dynamically add a camera.
2) Empty camera name on a SetCamera actuator now points to the actuator's parent object if this object is a camera.
This trick is useful to make current a dynamically created camera: just add a SetCamera actuator on the camera itself and leave the name empty. Later, when the camera is added in the scene with an AddObject actuator, either directly or via a parent object, you just need to activate the actuator to make the newly created camera current. If you set a name on a SetCamera actuator, it will always point to the original camera, even after replication.

11 years agoPatch #8034: "soft" option for halos, which avoids ugly intersections
Brecht Van Lommel [Mon, 14 Apr 2008 19:48:14 +0000 (19:48 +0000)]
Patch #8034: "soft" option for halos, which avoids ugly intersections
with geometry, and makes halos look more volumetric.

Patch contributed by Markus Ilmola, thanks!

11 years agoFix for bug #7903 and #8960: arealight giving black borders and not
Brecht Van Lommel [Mon, 14 Apr 2008 15:40:32 +0000 (15:40 +0000)]
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.

11 years agoFix for bug #8957: undo lost scenes assigned to screens.
Brecht Van Lommel [Mon, 14 Apr 2008 13:09:08 +0000 (13:09 +0000)]
Fix for bug #8957: undo lost scenes assigned to screens.

11 years agoAttempted fix for bug #8349: QMC raytracing being very slow on some
Brecht Van Lommel [Mon, 14 Apr 2008 10:14:59 +0000 (10:14 +0000)]
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).

11 years agoBugfix: modifier buttons in the particle panel were locked unnecessarily
Brecht Van Lommel [Mon, 14 Apr 2008 10:09:44 +0000 (10:09 +0000)]
Bugfix: modifier buttons in the particle panel were locked unnecessarily
with edited hair.

11 years agominor output button layout changes for touch/no overwrite/extension/set
Campbell Barton [Mon, 14 Apr 2008 08:51:10 +0000 (08:51 +0000)]
minor output button layout changes for touch/no overwrite/extension/set

11 years ago== Transform ==
Martin Poirier [Sun, 13 Apr 2008 20:09:44 +0000 (20:09 +0000)]
== Transform ==

adding missing init on handleEvent callback

11 years agoUV Editing
Campbell Barton [Sun, 13 Apr 2008 19:42:39 +0000 (19:42 +0000)]
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.

11 years ago== FFMPEG ==
Peter Schlaile [Sun, 13 Apr 2008 18:50:16 +0000 (18:50 +0000)]
== FFMPEG ==

Added flash video menu entries. (Encoder was compiled in anyways)

11 years ago== FFMPEG ==
Peter Schlaile [Sun, 13 Apr 2008 17:45:56 +0000 (17:45 +0000)]
== FFMPEG ==

Added XVid to trunk. Again: only works with scons.

11 years ago== FFMPEG ==
Peter Schlaile [Sun, 13 Apr 2008 15:17:06 +0000 (15:17 +0000)]
== FFMPEG ==

Added H264-encoding support using libx264.

Beware: it currently only works with scons and it needs nasm or yasm as
an additional dependency!

11 years ago* Made Armature auto name L/R, Top/Bot, Fr/Bk remove existing, known extensions.
Campbell Barton [Sun, 13 Apr 2008 15:14:32 +0000 (15:14 +0000)]
* 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

11 years ago-> Bevel transform crash fix
Geoffrey Bantle [Sun, 13 Apr 2008 05:51:13 +0000 (05:51 +0000)]
-> 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?

11 years agoMade octree size always available since its used for baking.
Campbell Barton [Sat, 12 Apr 2008 22:17:23 +0000 (22:17 +0000)]
Made octree size always available since its used for baking.
Documented obscure environment variables

11 years agoFix for bug #8927: halo blending with solid has poor antialiasing,
Brecht Van Lommel [Sat, 12 Apr 2008 21:44:08 +0000 (21:44 +0000)]
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.

11 years agofix BGE bug #8880: blenderplayer closing when esc is pressed
Benoit Bolsee [Sat, 12 Apr 2008 21:18:58 +0000 (21:18 +0000)]
fix BGE bug #8880: blenderplayer closing when esc is pressed

ESC now quits the game by default in all modes unless a keyboard sensor is set on ESC.
In this case, the game designer must arrange for an alternative way to quit the game.

11 years agoerror in last commit. also use smaller fonts in the sequencer for frame numbers,...
Campbell Barton [Sat, 12 Apr 2008 20:36:35 +0000 (20:36 +0000)]
error in last commit. also use smaller fonts in the sequencer for frame numbers, number string was too long.

11 years agoactive face can now be unselected, also extrude and copy keep the active face.
Campbell Barton [Sat, 12 Apr 2008 19:56:53 +0000 (19:56 +0000)]
active face can now be unselected, also extrude and copy keep the active face.

11 years agoFix for bug #8463: object texture mapping for duplis was changed to
Brecht Van Lommel [Sat, 12 Apr 2008 18:44:03 +0000 (18:44 +0000)]
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.

11 years agoFix for bug #8936: particle system crash with vertex groups and
Brecht Van Lommel [Sat, 12 Apr 2008 18:15:10 +0000 (18:15 +0000)]
Fix for bug #8936: particle system crash with vertex groups and
zero vertices in a mesh.

11 years agoFix for bug #7100: when rendering on solaris, pressing esc could
Brecht Van Lommel [Sat, 12 Apr 2008 17:34:48 +0000 (17:34 +0000)]
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.

11 years agoFix or bug #8712: transparency + sss gave too bright results.
Brecht Van Lommel [Sat, 12 Apr 2008 16:31:29 +0000 (16:31 +0000)]
Fix or bug #8712: transparency + sss gave too bright results.

11 years agoremoved blenders backup feature.
Campbell Barton [Sat, 12 Apr 2008 15:03:47 +0000 (15:03 +0000)]
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.

11 years agoFix for bug #8934: parenting or connecting armature bones didn't really
Brecht Van Lommel [Sat, 12 Apr 2008 14:53:29 +0000 (14:53 +0000)]
Fix for bug #8934: parenting or connecting armature bones didn't really
sync tip and root selection intuitively.

11 years agoFix for bug #6753: metaballs instanced by a particle system did not
Brecht Van Lommel [Sat, 12 Apr 2008 14:30:17 +0000 (14:30 +0000)]
Fix for bug #6753: metaballs instanced by a particle system did not
refresh properly, also fixed a memory leak.

11 years agoFix for bug #5862: crash rendering to quicktime h.264. This would need
Brecht Van Lommel [Sat, 12 Apr 2008 13:49:00 +0000 (13:49 +0000)]
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.

11 years agoFix for bug #8932: crash converting old particle system.
Brecht Van Lommel [Sat, 12 Apr 2008 13:00:01 +0000 (13:00 +0000)]
Fix for bug #8932: crash converting old particle system.

11 years agoFix for bug #8930: issue removing temporary pointcache directory on windows.
Brecht Van Lommel [Sat, 12 Apr 2008 12:56:49 +0000 (12:56 +0000)]
Fix for bug #8930: issue removing temporary pointcache directory on windows.

11 years agosimple fix for "Unable to make version backup" warning when saving files. missing...
Campbell Barton [Sat, 12 Apr 2008 10:55:10 +0000 (10:55 +0000)]
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.

11 years agofix BGE patch #7892: dRot motion is reversed on non-dynamic objects
Benoit Bolsee [Fri, 11 Apr 2008 21:19:00 +0000 (21:19 +0000)]
fix BGE patch #7892: dRot motion is reversed on non-dynamic objects

Positive dRot motion actuator will now make the dynamic and non-dynamic objects rotate counter-clock wise.

11 years agoMoved initialization of vertex flags up a bit in the subdivide
Chris Want [Fri, 11 Apr 2008 20:46:12 +0000 (20:46 +0000)]
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

11 years agoMake blenderplayer link to binreloc on linux.
Chris Want [Fri, 11 Apr 2008 19:58:54 +0000 (19:58 +0000)]
Make blenderplayer link to binreloc on linux.

11 years agoThis is patch [#8531] Change gamma node max value
Kent Mein [Fri, 11 Apr 2008 18:07:27 +0000 (18:07 +0000)]
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

11 years agoChanged BLI_convertstringcode to replace any number of hashes with the frame number.
Campbell Barton [Fri, 11 Apr 2008 15:47:21 +0000 (15:47 +0000)]
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()

11 years agoFix for bug #8920: particles reactor crash and memory leak.
Brecht Van Lommel [Fri, 11 Apr 2008 12:29:29 +0000 (12:29 +0000)]
Fix for bug #8920: particles reactor crash and memory leak.

11 years agoConstraints-UI:
Joshua Leung [Fri, 11 Apr 2008 07:27:52 +0000 (07:27 +0000)]
Constraints-UI:

* Fixed typo in tooltip for IK Constraint
* Beautified Limit Distance constraint a little bit

11 years agofix BGE bug #8813: new rayCastTo() function hits near sensor collision box
Benoit Bolsee [Thu, 10 Apr 2008 20:17:12 +0000 (20:17 +0000)]
fix BGE bug #8813: new rayCastTo() function hits near sensor collision box

11 years agoLittle cloth code cleanup needed because of from new cache code merge
Daniel Genrich [Thu, 10 Apr 2008 18:00:59 +0000 (18:00 +0000)]
Little cloth code cleanup needed because of from new cache code merge

11 years ago2nd Part: Partial commit of patch #8812 (static caused problems on sunOS)
Daniel Genrich [Thu, 10 Apr 2008 16:42:19 +0000 (16:42 +0000)]
2nd Part: Partial commit of patch #8812 (static caused problems on sunOS)

11 years agoPartial commit of patch #8812 (fixing inlining on sunOS)
Daniel Genrich [Thu, 10 Apr 2008 16:36:46 +0000 (16:36 +0000)]
Partial commit of patch #8812 (fixing inlining on sunOS)

11 years agoFix for mistake in pointcache refactor commit.
Brecht Van Lommel [Thu, 10 Apr 2008 13:20:36 +0000 (13:20 +0000)]
Fix for mistake in pointcache refactor commit.

11 years agoFix for bug #8898: QMC AO not working correct on objects pointing
Brecht Van Lommel [Thu, 10 Apr 2008 12:52:48 +0000 (12:52 +0000)]
Fix for bug #8898: QMC AO not working correct on objects pointing
directly at the camera in some cases.

11 years agoPoint Cache Refactoring
Brecht Van Lommel [Thu, 10 Apr 2008 11:39:20 +0000 (11:39 +0000)]
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.

11 years agoFix for render scemode in the python api, forgot to commit this file
Brecht Van Lommel [Thu, 10 Apr 2008 11:34:36 +0000 (11:34 +0000)]
Fix for render scemode in the python api, forgot to commit this file
when i changed it from a short to an int.

11 years agoCloth bugfix for new timescaling feature
Daniel Genrich [Wed, 9 Apr 2008 19:10:03 +0000 (19:10 +0000)]
Cloth bugfix for new timescaling feature

11 years agoBugfix: scaling images anti-aliased with either the width or height
Brecht Van Lommel [Wed, 9 Apr 2008 17:14:02 +0000 (17:14 +0000)]
Bugfix: scaling images anti-aliased with either the width or height
staying the same did not work correct (showed up in the sequencer).

11 years agoCloth enhancement for upcomming cache changes: support different speed using clmd...
Daniel Genrich [Wed, 9 Apr 2008 16:38:26 +0000 (16:38 +0000)]
Cloth enhancement for upcomming cache changes: support different speed using clmd->sim_parms->timescale

11 years agoMade aspx/y into floats so we can render precise regions (for apricot terrain baking)
Campbell Barton [Wed, 9 Apr 2008 15:46:26 +0000 (15:46 +0000)]
Made aspx/y into floats so we can render precise regions (for apricot terrain baking)

11 years agoCloth/Collision modifier now gets add to the tail of the modifier stack as that is...
Daniel Genrich [Wed, 9 Apr 2008 15:28:46 +0000 (15:28 +0000)]
Cloth/Collision modifier now gets add to the tail of the modifier stack as that is normal behaviour for all other modifiers, too.

11 years agoAction Editor - Renamed 'AfterTrans Delete Dupli-Frames' to 'AutoMerge Keys' for
Joshua Leung [Wed, 9 Apr 2008 10:33:15 +0000 (10:33 +0000)]
Action Editor - Renamed 'AfterTrans Delete Dupli-Frames' to 'AutoMerge Keys' for

11 years agoAPI Doc for new Object attributes trackAxis and upAxis.
Stephen Swaney [Wed, 9 Apr 2008 07:27:37 +0000 (07:27 +0000)]
API Doc for new Object attributes trackAxis and upAxis.
contributed by Cedric Paille.  Thanks!

Fix broken indentation in Constraint doc.

12 years agominor edit to last commit, fixed a possible python error
Campbell Barton [Tue, 8 Apr 2008 20:08:46 +0000 (20:08 +0000)]
minor edit to last commit, fixed a possible python error

12 years ago-> Fix for last commit on FLT exporter
Geoffrey Bantle [Tue, 8 Apr 2008 19:35:53 +0000 (19:35 +0000)]
-> Fix for last commit on FLT exporter

Forgot to change some dictionary keys in source which
would break export. Fixed

12 years agouse mkdtemp for the scons tempfile path rather then '.sconf_temp', this way 2 blender...
Campbell Barton [Tue, 8 Apr 2008 17:01:11 +0000 (17:01 +0000)]
use mkdtemp for the scons tempfile path rather then '.sconf_temp', this way 2 blenders can be compiled at once from the same path. (debug and release for instance, as long as they build in their own dir)

12 years agofix compiler warnings - deja vu all over again.
Stephen Swaney [Tue, 8 Apr 2008 16:50:20 +0000 (16:50 +0000)]
fix compiler warnings - deja vu all over again.

buttons_object.c:2326: warning: too many arguments for format
buttonns_object.c:3829: warning: ordered comparison of pointer with integer zero

12 years agoOptimization for the sequencer wipe effect, was doing a lot of unnecessary
Brecht Van Lommel [Tue, 8 Apr 2008 16:28:55 +0000 (16:28 +0000)]
Optimization for the sequencer wipe effect, was doing a lot of unnecessary
computations for each pixel making it quite slow.

12 years agosetting the blend value for a sequencer strip would crash when the strip had both...
Campbell Barton [Tue, 8 Apr 2008 15:07:40 +0000 (15:07 +0000)]
setting the blend value for a sequencer strip would crash when the strip had both char and float buffers.

12 years agoProper fix for camera transform with snap.
Martin Poirier [Tue, 8 Apr 2008 13:40:05 +0000 (13:40 +0000)]
Proper fix for camera transform with snap.

Please email me or report a bug when such problem arise, it's simpler if done properly the first time.

12 years agoSorry, reverting bad things in modifier.c
Daniel Genrich [Tue, 8 Apr 2008 12:58:25 +0000 (12:58 +0000)]
Sorry, reverting bad things in modifier.c

12 years agoCloth bugfix: used old dm instead of new created result derivedmesh; Code cleanup...
Daniel Genrich [Tue, 8 Apr 2008 12:55:35 +0000 (12:55 +0000)]
Cloth bugfix: used old dm instead of new created result derivedmesh; Code cleanup + deactivation of unsued selfcollision code in kdop.c + little speedup there

12 years agomoving the camera on the local Z axis while in the camera view didn't work when snapp...
Campbell Barton [Tue, 8 Apr 2008 11:57:10 +0000 (11:57 +0000)]
moving the camera on the local Z axis while in the camera view didn't work when snapping was enabled (even though the CTRL key was not pressed)