14 years agoadded missing -DWITH_FREETYPE2 stuff, provided by Eugene Reilly.
Kent Mein [Wed, 6 Dec 2006 00:04:53 +0000 (00:04 +0000)]
added missing -DWITH_FREETYPE2 stuff, provided by Eugene Reilly.


14 years agoFixed bug #5361, multiple 3d views additional cursors in wrong place
Nicholas Bishop [Tue, 5 Dec 2006 23:49:58 +0000 (23:49 +0000)]
Fixed bug #5361, multiple 3d views additional cursors in wrong place

14 years agoAnother multires triangle fix
Nicholas Bishop [Tue, 5 Dec 2006 23:36:05 +0000 (23:36 +0000)]
Another multires triangle fix

14 years agoFixed broken triangle handling in multires.
Nicholas Bishop [Tue, 5 Dec 2006 23:25:45 +0000 (23:25 +0000)]
Fixed broken triangle handling in multires.

14 years agoUpdated the vertex color and mtface handling in multires.c to work with editmesh.
Nicholas Bishop [Tue, 5 Dec 2006 23:01:01 +0000 (23:01 +0000)]
Updated the vertex color and mtface handling in multires.c to work with editmesh.

This is the last of the changes needed to support all the EditMesh data that
previously worked only with the regular Mesh, so this should fix bug #5331,
Various problems with Editmode Undo and Multi-Resolution Meshes.

14 years agoNode editor: when adding a new node, automatic links are created:
Ton Roosendaal [Tue, 5 Dec 2006 21:33:56 +0000 (21:33 +0000)]
Node editor: when adding a new node, automatic links are created:

- from all selected nodes
- only connections between highest order socket types; so if there's RGBA
  and Value sockets, only RGBA sockets are connected. This because in
  these cases the Value sockets usually are for user input.
  Example: Mix node.

Thanks Trip for the hint!

14 years agoNode shaders bug: using 'shadeless' material inside of node tree, a mode
Ton Roosendaal [Tue, 5 Dec 2006 19:47:45 +0000 (19:47 +0000)]
Node shaders bug: using 'shadeless' material inside of node tree, a mode
flag messed up that tried to detect if shadow was needed.

14 years agoBugfix, irc report:
Ton Roosendaal [Tue, 5 Dec 2006 18:58:58 +0000 (18:58 +0000)]
Bugfix, irc report:

OSA 16 crashed. Wrong sizeof() for memset...

14 years ago==== MSVC 7 project files ====
Andrea Weikert [Tue, 5 Dec 2006 18:35:03 +0000 (18:35 +0000)]
==== MSVC 7 project files ====
- small update for added files shadeinput.c and shadeoutput.c

14 years agoTwo more fixes for pass composite:
Ton Roosendaal [Tue, 5 Dec 2006 18:27:43 +0000 (18:27 +0000)]
Two more fixes for pass composite:

- Blur nodes didn't accept RGB buffers (only RGBA or single channel ones)
- Mix node had maximum for 'mix' on 1.0, for passes edit that could become
  more, made it 5!

14 years agoTwo fixes:
Ton Roosendaal [Tue, 5 Dec 2006 18:02:43 +0000 (18:02 +0000)]
Two fixes:

- Shaded view was black, needed to tell it to use 'combined' pass :)
- Crash when deleting in compositor all nodes with an output.

14 years agoModifier Stack: Limit calculation to required data.
Ben Batt [Tue, 5 Dec 2006 17:42:03 +0000 (17:42 +0000)]
Modifier Stack: Limit calculation to required data.
This commit upgrades the modifier stack to only calculate the data which is
needed, either by modifiers further down the stack or by other functions at
the end of the stack (e.g. drawing functions).

This speeds up modifier stack recalculation, especially where vertex
groups and UV coordinates are concerned. For example, a mesh with an Armature
modifier followed by a Subsurf modifier would previously have required the
Subsurf modifier to interpolate all the vertex groups in the mesh, slowing
down modifier calculations considerably. With this update, vertex group data
is not propagated beyond the Armature modifier, so calculations are faster.

Note that this depends on the order of modifiers in the stack. If the Armature
and Subsurf modifiers were swapped in the above example, the Subsurf modifier
would have to interpolate vertex groups, as they are needed by the Armature

14 years agoDamn! Commit for render passes in wrong dir....
Ton Roosendaal [Tue, 5 Dec 2006 16:44:57 +0000 (16:44 +0000)]
Damn! Commit for render passes in wrong dir....

14 years agoNext stage of RenderPipe refactor: now everything within the pixel was
Ton Roosendaal [Tue, 5 Dec 2006 16:43:01 +0000 (16:43 +0000)]
Next stage of RenderPipe refactor: now everything within the pixel was

Resulting features:
- render passes
- new pass: Object Index, for masking
- sub-sample alpha masks


Note that these changes might mean things to not render fully identical...
For the next days a lot of testing is needed!

14 years agoSome more action editor goodies:
Joshua Leung [Tue, 5 Dec 2006 05:25:34 +0000 (05:25 +0000)]
Some more action editor goodies:

* Now it is possible to invert the selection status of keyframes and markers.
These options can only be found in the Select menu in the header.

* It is also possible to select the keyframes that occur within the 2
'extreme' selected markers. Hotkey for this is Ctrl K

14 years ago== Action Editor - Column Select Tools ==
Joshua Leung [Tue, 5 Dec 2006 03:48:39 +0000 (03:48 +0000)]
== Action Editor - Column Select Tools ==

Now it is possible to column select keyframes that occur on the
same frame as selected markers with the hotkey: SHIFT K

More selection goodies to come :-)

14 years agoRemoved a few unused variables - compiler warnings.
Joshua Leung [Tue, 5 Dec 2006 02:06:51 +0000 (02:06 +0000)]
Removed a few unused variables - compiler warnings.

14 years ago== Action Editor ==
Joshua Leung [Tue, 5 Dec 2006 01:11:51 +0000 (01:11 +0000)]
== Action Editor ==

Cleaned-up drawing code of keyframes. Code redundancy has been
reduced, and there should be slight performance gains (less looping,
no sorting of keys needed, possibly less memory usage).

14 years agoResolved a few compiler warnings:
Joshua Leung [Mon, 4 Dec 2006 23:27:53 +0000 (23:27 +0000)]
Resolved a few compiler warnings:
* Line 2451: unusued variable 'removed'
* Line 3513: implicit declaration of function freeN. should be MEM_freeN

Hopefully I didn't break anything.

14 years ago* Auto-Keyframing Option: 'Needed'
Joshua Leung [Mon, 4 Dec 2006 23:16:55 +0000 (23:16 +0000)]
* Auto-Keyframing Option: 'Needed'
Now, when auto-keyframing, there is the option to have 'cleaner'
ipo curves. This is a user-pref option, and is based on the same
code responsible for the 'Only Needed' keyframing mode.

* Bugfix for Nicholas Bishop's recent sculptmode hotkeys:
When entering text in a text object, hotkeys were not disabled,
eg. type n = floating panel appears press 2 = layer 2 becomes visable.
Was 'if' instead of 'else if'

Reported by mfoxdogg on cvs.

14 years agoA few more sculptmode hotkeys. NKey for the floating properties panel (also added...
Nicholas Bishop [Mon, 4 Dec 2006 21:28:05 +0000 (21:28 +0000)]
A few more sculptmode hotkeys. NKey for the floating properties panel (also added menu item for that), pageup/pagedown for changing multires level, and alt+HKey for unhiding hidden areas of the sculptmesh.

14 years agoHotkeys for changing sculptmode properties should redraw the view3d to update the...
Nicholas Bishop [Mon, 4 Dec 2006 21:10:15 +0000 (21:10 +0000)]
Hotkeys for changing sculptmode properties should redraw the view3d to update the floating panel.

14 years ago== Sequencer ==
Peter Schlaile [Mon, 4 Dec 2006 20:00:17 +0000 (20:00 +0000)]
== Sequencer ==

Fixed an off by one error in Speed Controller.
If no IPO is present, enlarging the strip will now "stretch" time.
Shrinking doesn't work right now because of stripdata-handling...

14 years agoupdate to latest Bullet 2.x sources. prepare to make near sensors much faster
Erwin Coumans [Mon, 4 Dec 2006 15:48:32 +0000 (15:48 +0000)]
update to latest Bullet 2.x sources. prepare to make near sensors much faster

14 years ago==SCons==
Nathan Letwory [Mon, 4 Dec 2006 14:32:07 +0000 (14:32 +0000)]

* make blender_python understand we're doing a debug build when BF_DEBUG=1. Otherwise
 we get linking errors with scons/mingw

14 years agoLarge change to the way sculptmode drawing works. The default is now to draw
Nicholas Bishop [Mon, 4 Dec 2006 05:36:50 +0000 (05:36 +0000)]
Large change to the way sculptmode drawing works. The default is now to draw
using the standard drawing functions. Enabling the "Partial Redraw" item in the
sculpt menu will turn on the optimizations which stores unmodified parts of the
color buffer and only redraws the polygons that are within the modified area(s).

The Partial Redraw option uses the accumulation buffer to store the copy, and
unfortunately this is not accelerated on older cards. There are alternatives,
e.g. drawing to an auxiliary buffer or downloading the data from the graphics
card with glReadPixels, but there's no guarantee that these will run at an
acceptable speed on older graphics cards either. For the cards that do
accelerate the accumulation buffer (for nvidia cards, I would assume that is at
least FX5200 and up, and maybe earlier) it provides a very significant speedup.

14 years ago=IDProperties Small Update=
Joseph Eagar [Mon, 4 Dec 2006 04:51:32 +0000 (04:51 +0000)]
=IDProperties Small Update=

BPy conventions were not being followed for PyObject_New;
now they are.  I still doubt the usefullness of doing this,
however its important to maintain module standards.

Which reminds me, anyone know where I can get that source code
prettier that was used on the api files?  It was kindof
hard following the coding style of bpy with it being so
different from normal blender, and also what with having
to write the IDProperty code from scratch. :)

14 years agoadded some 'angularFactor' for character control (to avoid rotation)
Erwin Coumans [Mon, 4 Dec 2006 04:31:34 +0000 (04:31 +0000)]
added some 'angularFactor' for character control (to avoid rotation)

14 years agofixed some motionstate synchronization issues
Erwin Coumans [Mon, 4 Dec 2006 04:13:42 +0000 (04:13 +0000)]
fixed some motionstate synchronization issues
nearsensor was not synchronized at the start
wheels not synchronized properly (one frame delay)

14 years agoFix for bug #5345, sculpt tool doesn't seems to use correctly the undo setting on...
Nicholas Bishop [Mon, 4 Dec 2006 03:26:30 +0000 (03:26 +0000)]
Fix for bug #5345, sculpt tool doesn't seems to use correctly the undo setting on the global preferences

14 years agoFix for bug #5351, sculpt doesn't work in xray mode
Nicholas Bishop [Mon, 4 Dec 2006 02:36:04 +0000 (02:36 +0000)]
Fix for bug #5351, sculpt doesn't work in xray mode

Moved depth update for sculptmode to after the point where xray/transp objects are drawn

14 years agoAdded numpad hotkeys for sculptmode
Nicholas Bishop [Mon, 4 Dec 2006 01:04:02 +0000 (01:04 +0000)]
Added numpad hotkeys for sculptmode

14 years agoForgot to add middlemouse events for sculptmode.
Nicholas Bishop [Mon, 4 Dec 2006 00:44:52 +0000 (00:44 +0000)]
Forgot to add middlemouse events for sculptmode.

14 years agoFirst pass at setting up better hotkeys for sculptmode.
Nicholas Bishop [Mon, 4 Dec 2006 00:11:25 +0000 (00:11 +0000)]
First pass at setting up better hotkeys for sculptmode.
As recommended on bf-committers, I created an entirely separate section for
sculptmode hotkeys, so none of the standard hotkeys in space.c carry over.
(However, the standard hotkeys in toets.c are left unchanged.)

There are probably some useful hotkeys that have been disabled with this commit,
and other hotkeys that still need to be added, so this needs review.

14 years agoAdded a bunch of sculpt options to the Sculpt menu; also removed the PvRot toggle...
Nicholas Bishop [Sun, 3 Dec 2006 22:57:28 +0000 (22:57 +0000)]
Added a bunch of sculpt options to the Sculpt menu; also removed the PvRot toggle button from the sculpt panel, where it didn't really fit, and put it in the menu instead.

14 years agoAdded saving/loading of multires deformedvert data. Also added a test_index_face...
Nicholas Bishop [Sun, 3 Dec 2006 22:15:50 +0000 (22:15 +0000)]
Added saving/loading of multires deformedvert data. Also added a test_index_face check when reading editmode data for multires.

14 years agoSculptmode should check for existance of undo data before undo/redo in case user...
Nicholas Bishop [Sun, 3 Dec 2006 20:35:35 +0000 (20:35 +0000)]
Sculptmode should check for existance of undo data before undo/redo in case user loads a file with sculptmode on and presses undo/redo before doing a sculpt action.

14 years agoFix for getting gcc compile GE with Py 2.5
Jean-Luc Peurière [Sun, 3 Dec 2006 20:27:59 +0000 (20:27 +0000)]
Fix for getting gcc compile GE with Py 2.5
PYobject type has changed

Usual C++ pickyness about implicit casts

debug made with erwin. thanks

Note to python mainteners :

even if it compiles there is a *Huge* list of warnings about deprecated
and incompatible pointers in api2.2. this should be corrected

14 years agoPrevious multires+editmode commits broke multires+sculptmode (oops.)
Nicholas Bishop [Sun, 3 Dec 2006 20:24:55 +0000 (20:24 +0000)]
Previous multires+editmode commits broke multires+sculptmode (oops.)

14 years agoModified multires to use CustomData for deformedverts. Deformedverts now load properl...
Nicholas Bishop [Sun, 3 Dec 2006 19:59:18 +0000 (19:59 +0000)]
Modified multires to use CustomData for deformedverts. Deformedverts now load properly from editmesh.

14 years ago=== Transform ===
Martin Poirier [Sun, 3 Dec 2006 19:54:27 +0000 (19:54 +0000)]
=== Transform ===

Modified version of patch #5281 by Joshua Leung.

It's a two part patch:

Add a Roll button in the transform properties floating panel with bones selected in edit mode

Add a Roll transform (Ctrl-R) that can be used to modify the roll of selected bones in edit mode

The transformation modifies the roll of all selected bones incrementally (like a rotation does to the bones' rotation) [that is the part that differs from the patch. The patch would set the same roll value to all bones]

Also, this commit includes some shuffling around of the functions, to keep the previously logical order. :)

14 years agoCopy vcols wasnt working me->mcol[a] needs to be me->mcol[a*4]
Campbell Barton [Sun, 3 Dec 2006 19:38:32 +0000 (19:38 +0000)]
Copy vcols wasnt working me->mcol[a] needs to be me->mcol[a*4]

14 years ago=== Interface ===
Martin Poirier [Sun, 3 Dec 2006 18:59:13 +0000 (18:59 +0000)]
=== Interface ===

Based on patch #5140 by Juho Vepsäläinen, this commit removes the requirement to type # at the start when you want to use Python expression evaluation when typing a value in a button.

In a nutshell, that means you can now type 3 + 5 in a numbut and see it change to 8.

Word of warning: The normal Python operator logic applies, so if you type in 1 / 3, you'll get 0 and not 0.333. There's no going around that.

14 years ago==== MSVC Projectfiles ====
Andrea Weikert [Sun, 3 Dec 2006 18:56:43 +0000 (18:56 +0000)]
==== MSVC Projectfiles ====
- finally update to bullet2

14 years ago=== [ #5094 ] TrackTo Constraint with an animatable "up" direction ===
Martin Poirier [Sun, 3 Dec 2006 18:38:51 +0000 (18:38 +0000)]
=== [ #5094 ] TrackTo Constraint with an animatable "up" direction ===

Patch by Matthew Plough: This adds an option to the Track To constraint to use the target's Z axis for Up axis reference instead of the global Z axis.

Off by default for backward compat.

14 years agoKlocwork pointer sanity checks in transform.
Martin Poirier [Sun, 3 Dec 2006 18:30:34 +0000 (18:30 +0000)]
Klocwork pointer sanity checks in transform.

14 years agomore work on Bullet 2.x
Erwin Coumans [Sun, 3 Dec 2006 01:16:17 +0000 (01:16 +0000)]
more work on Bullet 2.x

14 years agodifferent Bullet/graphics synchronization
Erwin Coumans [Sun, 3 Dec 2006 00:36:51 +0000 (00:36 +0000)]
different Bullet/graphics synchronization

14 years agoBetter integration of multires with editmode. Setting/adding levels no longer exits...
Nicholas Bishop [Sat, 2 Dec 2006 23:37:52 +0000 (23:37 +0000)]
Better integration of multires with editmode. Setting/adding levels no longer exits editmode, and undo should now work as expected. Still to come is loading customdata from the editmesh.

14 years agogameengine: reverted some timing experiment
Erwin Coumans [Sat, 2 Dec 2006 23:27:23 +0000 (23:27 +0000)]
gameengine: reverted some timing experiment

14 years ago- GEadded VSYNC for Mac OS X swapbuffers (can be easily undone by commenting out...
Erwin Coumans [Sat, 2 Dec 2006 22:25:47 +0000 (22:25 +0000)]
- GEadded VSYNC for Mac OS X swapbuffers (can be easily undone by commenting out the #define WAIT_FOR_VSYNC 1
- GEdon't crash when attempting to add constraint on game objects without physics controller
- GEimproved some physics -> graphics synchronization issues
- small experiment with game engine timing to smooth framerate/reduce tearing

14 years agoKlocwork warning fix
Jens Ole Wund [Sat, 2 Dec 2006 18:42:20 +0000 (18:42 +0000)]
Klocwork warning fix
Doing NULL pointer paranoia check in time.
It's completely pointless calling the function with null pointer,
but who knows.
At least it does not crash then.

14 years agoUV islands are now detected by edge connection (was using verts) - added support...
Campbell Barton [Sat, 2 Dec 2006 09:44:40 +0000 (09:44 +0000)]
UV islands are now detected by edge connection (was using verts) - added support for seams to delimit UV islands.

14 years agoAdded define for atanf to get VC7.1 linking again.
Simon Clitherow [Sat, 2 Dec 2006 09:11:32 +0000 (09:11 +0000)]
Added define for atanf to get VC7.1 linking again.

14 years agoRemoved exit/enter editmode from multires_make; this is step 1 of the fix for bug...
Nicholas Bishop [Sat, 2 Dec 2006 09:04:12 +0000 (09:04 +0000)]
Removed exit/enter editmode from multires_make; this is step 1 of the fix for bug #5331

14 years agoFix for bug #5319, multiresolution mesh - inconsistent hide behavior
Nicholas Bishop [Sat, 2 Dec 2006 07:58:53 +0000 (07:58 +0000)]
Fix for bug #5319, multiresolution mesh - inconsistent hide behavior

Multires operations now pay attention to vertex flags, so both selection and
hiding are propagated up and down the levels.

Note: only the lowest level of detail for vertex flags is retained when
switching levels. E.g., after selecting vertices at the highest level, then
switching to the lowest level, then back to the highest level, the vertex
selection will have changed. (This is a potentially fixable issue.)

14 years ago== Action Editor ==
Joshua Leung [Sat, 2 Dec 2006 06:00:31 +0000 (06:00 +0000)]
== Action Editor ==

Now it is possible to mirror selected keyframes in the action editor;
either over the current frame or the vertical axis.

Hotkey is: SHIFT M       (like in ipo editor).

14 years ago- added support for generic 6DOF constraint
Erwin Coumans [Sat, 2 Dec 2006 03:48:36 +0000 (03:48 +0000)]
- added support for generic 6DOF constraint
- only 6DOF constraint shows buttons for limits
- added python support for rigidbody constraint (untested, but required for COLLADA Physics support)

14 years agoAdded stub for multires_copy
Nicholas Bishop [Fri, 1 Dec 2006 23:06:07 +0000 (23:06 +0000)]
Added stub for multires_copy

14 years agoAdded warning in the multires panel to alert user if they have a modifier that change...
Nicholas Bishop [Fri, 1 Dec 2006 22:44:27 +0000 (22:44 +0000)]
Added warning in the multires panel to alert user if they have a modifier that changes mesh topology enabled, the render level will not have any effect.

14 years agoSmall interface update for multires; adding a new level should increment the render...
Nicholas Bishop [Fri, 1 Dec 2006 22:05:40 +0000 (22:05 +0000)]
Small interface update for multires; adding a new level should increment the render level as well, unless the render level has been set to something other than the max level. Also removed some unneeded code.

14 years agoSimplified/fixed code for rendering with multires+modifiers, no more unfree memory...
Nicholas Bishop [Fri, 1 Dec 2006 21:35:27 +0000 (21:35 +0000)]
Simplified/fixed code for rendering with multires+modifiers, no more unfree memory warnings

14 years agoPython API
Ken Hughes [Fri, 1 Dec 2006 21:20:40 +0000 (21:20 +0000)]
Python API

Bugfix: using del operator on me.verts would cause a crash.

14 years agoTwo hours of fixing details based on Klocwork source review. Useful report,
Ton Roosendaal [Fri, 1 Dec 2006 19:52:04 +0000 (19:52 +0000)]
Two hours of fixing details based on Klocwork source review. Useful report,
although it has a lot of noise. Not to mention our bad string code gives
a load of warnings.

I've reviewed specifically:
- file reading/write
- dna and library code
- node system
- entire render module

Done a couple of files in src/ too, seemed to be nice errors.

14 years agoAdded a copy function for multires; duplicating a mesh with multires now works properly.
Nicholas Bishop [Fri, 1 Dec 2006 18:41:25 +0000 (18:41 +0000)]
Added a copy function for multires; duplicating a mesh with multires now works properly.

14 years agoclean up some warnings. no executable changes.
Stephen Swaney [Fri, 1 Dec 2006 17:53:04 +0000 (17:53 +0000)]
clean up some warnings.  no executable changes.

14 years agoBugfix #5333
Ton Roosendaal [Fri, 1 Dec 2006 10:52:36 +0000 (10:52 +0000)]
Bugfix #5333

Actually no real bug, but unfinished work in Composite:
The ZCombine node only accepted images, no value inputs for sockets.
Now only the first (top) input socket should be an image, the other ones
can use constant color or values too. Nice way to split an image in
foreground and background.

Also: added an output socket for the resulting Z value.

Do note that zcombone is aliased, no AA or sample info is available.
That's for another time.

14 years agoLibrary manegement features:
Ton Roosendaal [Fri, 1 Dec 2006 10:12:41 +0000 (10:12 +0000)]
Library manegement features:

- Outliner now shows hierarchy for Libraries, indicating which Library
  files invoked loading another.
- SHIFT+F1 "Append" browser has a Library menu, allowing to directly browse
  into all open library files. This will prevent accidents like re-opening
  a same .blend via another path.

14 years agosome Bullet compound shape fix
Erwin Coumans [Fri, 1 Dec 2006 03:29:20 +0000 (03:29 +0000)]
some Bullet compound shape fix

14 years ago=IDProperties bugfix=
Joseph Eagar [Fri, 1 Dec 2006 03:04:36 +0000 (03:04 +0000)]
=IDProperties bugfix=

Another bug from the tracker, reported by Mike Stramba.
A duplicated Py_XDECREF in the wrong place made assigning
arrays from Vector objects not work.

Also, fixed nasty bug in C API of idproperties (the function
to look up a property from a group was broken).  Fixed a memory
leak too.

In addition, made "del group['property']" delete properties
from group; previously this would just crash (or at least it
should have).  Added a small addition to the example in the
epydocs for IDGroup.

14 years agoChanged sculptmode drawing to pay better attention to materials.
Nicholas Bishop [Fri, 1 Dec 2006 01:40:53 +0000 (01:40 +0000)]
Changed sculptmode drawing to pay better attention to materials.

This fixes bug #5274, changing from uvmode to sculpt changes lighting model

14 years ago- enabled compound collision objects, requires 'clear parent inverse'
Erwin Coumans [Fri, 1 Dec 2006 01:04:27 +0000 (01:04 +0000)]
- enabled compound collision objects, requires 'clear parent inverse'
- fixed some issues with kinematic objects, introduced during Bullet 2.x upgrade

14 years agoArmature Proxy bugfix: when adding constraints or bones, the proxy sync
Ton Roosendaal [Thu, 30 Nov 2006 21:40:11 +0000 (21:40 +0000)]
Armature Proxy bugfix: when adding constraints or bones, the proxy sync
didn't keep in mind the pose channels could change order...

Note the disabled code in readfile.c; will be finished later. It's for
debugging library dependencies.

14 years agoMade work with new vertex colors
Campbell Barton [Thu, 30 Nov 2006 21:32:32 +0000 (21:32 +0000)]
Made work with new vertex colors

14 years agofixed it so make clean works for bullet2 lib.
Kent Mein [Thu, 30 Nov 2006 19:05:03 +0000 (19:05 +0000)]
fixed it so make clean works for bullet2 lib.


14 years agoremoved (int) cast, should fix 64bit issue in recent commit
Erwin Coumans [Thu, 30 Nov 2006 19:01:17 +0000 (19:01 +0000)]
removed (int) cast, should fix 64bit issue in recent commit

14 years agoMakefile for Bullet had error, didn't copy the .a file to the right dir.
Ton Roosendaal [Thu, 30 Nov 2006 18:25:44 +0000 (18:25 +0000)]
Makefile for Bullet had error, didn't copy the .a file to the right dir.

14 years agoTwo bugfixes, irc report:
Ton Roosendaal [Thu, 30 Nov 2006 18:20:14 +0000 (18:20 +0000)]
Two bugfixes, irc report:

- WeightPaint used 'max vertices' as 'max faces' for paint, so some faces
  could not be painted on. (bug introduced last week, with global undo)

- Bake Render: when no Image window open, baking crashed.

14 years agoBugfix;
Ton Roosendaal [Thu, 30 Nov 2006 16:44:34 +0000 (16:44 +0000)]

More referenced library issues: if an Object loses the Armature (because
for example the linked file removed it) the Object still had the Pose and
posemode flag set, crashing Blender.

14 years agoProxy Objects revisited!
Ton Roosendaal [Thu, 30 Nov 2006 15:54:21 +0000 (15:54 +0000)]
Proxy Objects revisited!

The first incarnation assumed that proxies were local objects per
definition. Unfortunately that makes it impossible to - for example -
reference-link an entire Scene with proxies, to be used as a special
character set.

This commit makes the proxy implementation also a bit more clear.

Related work: the scene-sets were not executed fully or correctly for
the dependency graph. That happens now (in 3d view) as well.

14 years ago* add btHeightfieldTerrainShape.cpp
Nathan Letwory [Thu, 30 Nov 2006 12:39:42 +0000 (12:39 +0000)]
* add btHeightfieldTerrainShape.cpp

14 years ago==SCons==
Nathan Letwory [Thu, 30 Nov 2006 12:39:09 +0000 (12:39 +0000)]

If win32all ( is found,
 use it to be able to build with scons/mingw in (very) long paths. If it is not found,
 don't do anything groovy. This should make it possible to merge the cut up src lib.
 Those concerned, please do test that.

This bit of code is from

14 years agoCMake: Detect PPC compilation on Mac OSX and use correct libs. Also add OpenEXR threa...
Jacques Beuarain [Thu, 30 Nov 2006 11:59:59 +0000 (11:59 +0000)]
CMake: Detect PPC compilation on Mac OSX and use correct libs. Also add OpenEXR thread lib because it may be needed on Intel compiles for people not using the libs in CVS.

14 years agoRemoved unneeded glEnd
Nicholas Bishop [Thu, 30 Nov 2006 10:19:35 +0000 (10:19 +0000)]
Removed unneeded glEnd

14 years agoI've made the hotkeys for marker editing more consistant now.
Joshua Leung [Thu, 30 Nov 2006 05:29:05 +0000 (05:29 +0000)]
I've made the hotkeys for marker editing more consistant now.
Check the menu headers for the correct set of hotkeys to use.

14 years agoRemoved the other ugly global used in action editor. Now the
Joshua Leung [Thu, 30 Nov 2006 02:47:28 +0000 (02:47 +0000)]
Removed the other ugly global used in action editor. Now the
ACTWIDTH is a macro that tries to get actwidth from the active
SpaceAction (G.saction->actwidth). This should solve any potential
problems with having two action editors open editing shapekey

Also, I've fixed a compiler warning caused by erwin's constraint
commit. Wrong ui call for button.

14 years ago=eliminate mouse centering on startup=
Tom Musgrove [Thu, 30 Nov 2006 02:35:12 +0000 (02:35 +0000)]
=eliminate mouse centering on startup=

at the request of Aardbei in the forums eliminating the mouse centering on startup - Matt if there is a 'good reason' for the centering (asking on IRC no one had one), feel free to revert it back

14 years agoBig Commit.
Joshua Leung [Thu, 30 Nov 2006 01:57:14 +0000 (01:57 +0000)]
Big Commit.

Now time-markers work in all time-related spaces (i.e. Ipo,
Action Editor, NLA editor, TimeLine, Sound). The hotkeys and
functionality set should be the same for each of these modes
(with a few exceptions still). I've had to change a few hotkeys
here and there, so hopefully they aren't too bad.

Marker Operations:
MKEY - Add Marker
SHIFT MKEY - Rename marker (was CTRL MKEY)
XKEY - Delete Marker
PAGE UP - Jump to next marker
PAGE DOWN - Jump to previous marker
CTRL A - Select all markers
SHIFT G - Transform markers (NLA, IPO, Action)
G - Transform markers (Sound, Timeline)
CTRL SHIFT D - Duplicate markers (NLA, IPO, Action)
SHIFT D - Duplicate markers (Sound, Timeline)
BKEY - select markers and other keyframes (if any)

I've also made a few little tool additions to NLA and Action editors:
* NLA editor - Snap To Frame.
Now with the option to offset strip so that it starts at the current frame.
Added menus for this.
* Action editor - Snap To Frame
A few new menus for this too

14 years agoReserved some Bullet 2.x constraint data.
Erwin Coumans [Thu, 30 Nov 2006 00:19:27 +0000 (00:19 +0000)]
Reserved some Bullet 2.x constraint data.
Although we will delay the main Rigid Body user interface after 2.43 release early 2007, I need some constraint data/UI to make progress with COLLADA Physics.
Added RigidBody constraint UI
Contribution by RCRuiz, Ramon Carlos.

14 years ago=IDProperties bugfix=
Joseph Eagar [Wed, 29 Nov 2006 23:31:46 +0000 (23:31 +0000)]
=IDProperties bugfix=

Fixed the bug of "print type(property)" crashed blender;
just needed to add PyType_Ready init code for all ID property
python types; I made a function IDProp_Init_Types and put
code to call it in types_initAll().

Also added GPL/BL headers to idproperty files.

14 years ago=Proxy compile fix=
Joseph Eagar [Wed, 29 Nov 2006 23:26:58 +0000 (23:26 +0000)]
=Proxy compile fix=

Compiling blender was broken because
the member proxy_layer didn't exist in bPose.
Added it (and appropriate pad vars) into the struct.
Since the member is meant to copy armature layers,
I made it a short; this did however require adding
two pad vars, another short and an int.

ton: please check to make sure it's all right.

14 years ago=IDProperties bugfix=
Joseph Eagar [Wed, 29 Nov 2006 22:30:41 +0000 (22:30 +0000)]
=IDProperties bugfix=

Misspelled __members__ __member__ in IDProperty's
getattr function; this made "print dir(prop)" not
work.  Eventually I need to replace the whole thing
with getsetters.

Still need to find out why "print type(a_property)" crashes
blender. :S

14 years ago=IDProperties bugfix=
Joseph Eagar [Wed, 29 Nov 2006 22:19:21 +0000 (22:19 +0000)]
=IDProperties bugfix=

IDProperties was doing a name check where it shouldn't;
thise made executing "prop['value'] = something" not work
if the property 'value' already existed.  Fixed it by
making the code replace existing properties, like it

14 years agoTwo-in-one commit:
Ton Roosendaal [Wed, 29 Nov 2006 21:59:19 +0000 (21:59 +0000)]
Two-in-one commit:

- Proxy Armature: armature layer (visible bones) is now saved in proxy, so
  on file reload the layer settings are restored

- bugreport: disabling subsurf (for view) didn't change the total amounts
  in header.

14 years agoThread support for commandline:
Ton Roosendaal [Wed, 29 Nov 2006 19:31:45 +0000 (19:31 +0000)]
Thread support for commandline:

  -t <threads>

It overrides the settings as saved in scenes. Only works for background
rendering, to force thread amounts to match the cpus in system.
For funny jokers: amount is clipped for MAXTHREADS :)

14 years ago- fixed particle generation bug tracked down by mpan3&gimble,
Nils Thuerey [Wed, 29 Nov 2006 19:28:07 +0000 (19:28 +0000)]
- fixed particle generation bug tracked down by mpan3&gimble,
- removed warnings in attributes.cpp,
- and a first Klockwork bug fix: removed NULL returns in ntl_ray.h,
  several other issues mentioned in the Klockwork report
  are either hard to fix or not really errors...

14 years agoMaterial Nodes and Composite now also supports unlimited threads.
Ton Roosendaal [Wed, 29 Nov 2006 18:11:59 +0000 (18:11 +0000)]
Material Nodes and Composite now also supports unlimited threads.

Maybe we should add for Composite a seperate "Max threads" button though...
having 8 nodes allocating temp buffers at the same time might give issues.

14 years agoRender Monster support: (part 1)
Ton Roosendaal [Wed, 29 Nov 2006 17:01:09 +0000 (17:01 +0000)]
Render Monster support: (part 1)

Removed all limitations from render code for maximum threads. The only
define for this now is in BLI_threads.h, and currently set to 8.
Note that each thread renders an entire tile, and also allocates the
buffers for the tiles, so; more threads might work better with smaller

IMPORTANT: node system won't work yet with more than 2 threads! So, don't
try material nodes or compositing with over 2 threads. That I'll commit
later today.

What does work (should work :) is AO and soft shadow now.

14 years agoFix for bug #5325 - curve deform tool doesn't work correctly
Ben Batt [Wed, 29 Nov 2006 13:52:59 +0000 (13:52 +0000)]
Fix for bug #5325 - curve deform tool doesn't work correctly

This bug was caused by broken's recent patch to make the Curve modifier
determine its axis from the modifier panel, rather than the object's track
axis. In the case where a Curve modifier is applied by parenting the object
to the curve, the curve axis needs to be copied from the object's track axis
in modifiers_getVirtualModifierList(). This commit adds the necessary copy.

14 years agoDuplicator feature:
Ton Roosendaal [Wed, 29 Nov 2006 12:44:48 +0000 (12:44 +0000)]
Duplicator feature:

Vertex/Face/Frame duplication now draws using OpenGL display lists. Makes
drawing go much faster (2-5 times, depending on size of duplicated object).
This system uses boundbox checks too, so outside of view it draws faster.

Note for face duplication: I've fixe a bug for incorrect alignment when
the parent was rotated when a parenting happened, the 'inverse parent
correction matrix' then messed up alignment. For face duplication it now
works OK, but for vertex-dupli not... need a way to fix this backwards