blender.git
13 years agoBugfix #4015
Ton Roosendaal [Sat, 8 Apr 2006 14:58:37 +0000 (14:58 +0000)]
Bugfix #4015

Sequencer:
Typo in code committed by Peter; which made range for Glow button negative,
causing malloc errors and glow to not work at all.

13 years agoBugfix #4010
Ton Roosendaal [Sat, 8 Apr 2006 14:50:04 +0000 (14:50 +0000)]
Bugfix #4010

Dynamic particles sometimes didn't properly use global coordinates.
Meaning they were transformed by an Object, for example when it has
animation constraints.

Error caused by attempt to get duplicators to work for particles. Will
need re-evaluation this.. for now restored old functionality, with
exception of dupli-groups.

13 years agoBugfix #4066
Ton Roosendaal [Sat, 8 Apr 2006 13:50:15 +0000 (13:50 +0000)]
Bugfix #4066

Particle strands with a width set (like 10 pixels), and with extreme
bending of strands (like a very course subdivision), could create non-flat
quads. For speed reasons, the quad-to-triangle splitting was turned off
for hair, but in this case that should be done nevertheless.

Solves another Dandruff issue for furry bunnies!

13 years agofixed a lot of GCC 4.0 warnings.
Erwin Coumans [Sat, 8 Apr 2006 13:05:22 +0000 (13:05 +0000)]
fixed a lot of GCC 4.0 warnings.

13 years agoMade face filling (Shift+K) in weightpaint mode, work with x-mirror.
Campbell Barton [Sat, 8 Apr 2006 10:44:19 +0000 (10:44 +0000)]
Made face filling (Shift+K) in weightpaint mode, work with x-mirror.

13 years agoBugfix #4079
Ton Roosendaal [Sat, 8 Apr 2006 10:02:20 +0000 (10:02 +0000)]
Bugfix #4079

Rendering with 'Wire' material, and with Autosmooth set, made wire faces
get a zero'ed normal. Added exception handling code fir wire.

13 years agoBugfix #4055: the "sel" attributes for faces/edges/verts were basically
Ken Hughes [Fri, 7 Apr 2006 02:49:15 +0000 (02:49 +0000)]
Bugfix #4055: the "sel" attributes for faces/edges/verts were basically
oblivious of each other, so setting/clearing the face edit mode select status
did not set/clear the corresponding vertex select statuses.  This patch makes
a change of any select status recalculate the selection state of all edges an
faces.  One unresolved issue is what effect this should have on the recent
edge mesh's stored selection.  Currently changing the selection state will
delete store selection info, but it may be desirable to emulate the stored
selection (but I need to discuss how this should work in more depth with
Geoffrey Bantle).

As an added bonus (while I was messing with this), I added a "sel" attribute
to edges so they are the same as faces and vert.

13 years agoUndo Campbell's last commit that disabled face select mode on fluidsim
Brecht Van Lommel [Fri, 7 Apr 2006 02:46:20 +0000 (02:46 +0000)]
Undo Campbell's last commit that disabled face select mode on fluidsim
meshes, and actually fix the bug that caused the crash. The fluidsim result
doesn't preserve a mapping to the original mesh, so it shouldn't be displayed
in face select mode.

13 years agogoing into face select mode for fluidsim meshes segfaulted blender, do a check so...
Campbell Barton [Fri, 7 Apr 2006 01:14:08 +0000 (01:14 +0000)]
going into face select mode for fluidsim meshes segfaulted blender, do a check so it dosent happen.

13 years agoDid some changes to the getMeshFromObject wrapper.
Campbell Barton [Fri, 7 Apr 2006 00:47:39 +0000 (00:47 +0000)]
Did some changes to the getMeshFromObject wrapper.
Made obj_export use getMeshFromObject

obj_export now copies images from mtex as well as texface when copy images enabled.
obj_export tested to work with exporting fluidsim animations (somebody reported it was broken, must have been fixed at some point?)

13 years agoadded HingeConstraint.cpp to SConscript
Erwin Coumans [Thu, 6 Apr 2006 21:58:46 +0000 (21:58 +0000)]
added HingeConstraint.cpp to SConscript

13 years agoadded hinge constraint support to Bullet physics
Erwin Coumans [Thu, 6 Apr 2006 20:37:38 +0000 (20:37 +0000)]
added hinge constraint support to Bullet physics

13 years agoReordering OpenEXR libraries to correctly reflect dependencies.
D.J. Capelis [Thu, 6 Apr 2006 20:11:06 +0000 (20:11 +0000)]
Reordering OpenEXR libraries to correctly reflect dependencies.

This fixes some ld errors when the static versions of the EXR libs are used.

13 years agoI renamed a couple of simple variables to prevent warnings about
Kent Mein [Thu, 6 Apr 2006 17:27:15 +0000 (17:27 +0000)]
I renamed a couple of simple variables to prevent warnings about
variable blah at a higher scope is already defined...
(one of these was introduced by me when I moved a variable declaration
to the top of the function.)

Kent

13 years agoFor 3ds import script, try to get set() function by importing the
Chris Want [Wed, 5 Apr 2006 19:28:21 +0000 (19:28 +0000)]
For 3ds import script, try to get set() function by importing the
function Set() from sets (stoopid python!) if the python version is
less than 2.4.

Campbell: please check!

13 years agoAdded BPyMesh for mesh python mesh functions.
Campbell Barton [Wed, 5 Apr 2006 18:54:38 +0000 (18:54 +0000)]
Added BPyMesh for mesh python mesh functions.
at the moment it only has meshWeight2Dict and dict2MeshWeight
  These allow you to deal with vertex weights as a list of dicts which makes scrips short and easy to understand.
   (kh_python, perhaps dict access to the python verts could replace this )

Used the above util functions to update mesh_cleanup.
Copied from the source

'Material Clean', 'Remove unused materials.'
'VGroups'
'Group Clean', 'Remove vertex groups that have no verts using them.'
'Weight Clean', 'Remove zero weighted verts from groups (limit is zero threshold).'
'Weight Normalize', 'Make the sum total of vertex weights accross vgroups 1.0 for each vertex.'

Normalizing lets you see how much % of the vertex a bone owns just by looking at 1 of the bone weights.

Would be nice to have this functionality in Blender but theres not much room for new buttons in teh vgroup and material area :/

13 years agoFix #3999
Ton Roosendaal [Wed, 5 Apr 2006 17:21:24 +0000 (17:21 +0000)]
Fix #3999

Outliner, Group view, operation menu "unlink group" also set the group user
counter to zero, which it should not do.
Note; the definition of this command is to make sure no users exist of this
group, but the group itself can still be there with objects.

13 years agoBugfix #4009
Ton Roosendaal [Wed, 5 Apr 2006 17:11:01 +0000 (17:11 +0000)]
Bugfix #4009

Missing redraw in menu to choose 'metric' for Voronoi texture.

13 years agoAdded an option to batch rename vert Groups.
Campbell Barton [Wed, 5 Apr 2006 16:48:55 +0000 (16:48 +0000)]
Added an option to batch rename vert Groups.

13 years agoTwo more quicktime changes for compiling after OSX software update
Ton Roosendaal [Wed, 5 Apr 2006 15:31:21 +0000 (15:31 +0000)]
Two more quicktime changes for compiling after OSX software update

13 years agoAnother #define __CARBONSOUND__ needed because of wacko Quicktime decision
Ton Roosendaal [Wed, 5 Apr 2006 12:03:43 +0000 (12:03 +0000)]
Another #define __CARBONSOUND__ needed because of wacko Quicktime decision
to leave carbon framework in bad state.

13 years agoUpgrading in 10.3 to quicktime 7 seems to remove a header file, which
Ton Roosendaal [Wed, 5 Apr 2006 11:59:20 +0000 (11:59 +0000)]
Upgrading in 10.3 to quicktime 7 seems to remove a header file, which
stops Ghost from compiling.

Information on this link here:
http://www.cocoadev.com/index.pl?CarbonSound

13 years agoAdded the option only to update selected verts in the target mesh when copying bone...
Campbell Barton [Wed, 5 Apr 2006 07:10:30 +0000 (07:10 +0000)]
Added the option only to update selected verts in the target mesh when copying bone weights.
Good when you need to update a copy with changes to the weights.

13 years agofixed two issues that hinder linux build
Erwin Coumans [Wed, 5 Apr 2006 02:01:34 +0000 (02:01 +0000)]
fixed two issues that hinder linux build

13 years ago==misc spelling and typos ==
Tom Musgrove [Wed, 5 Apr 2006 00:53:07 +0000 (00:53 +0000)]
==misc spelling and typos ==

a patch from Ed Halley to fix assorted typos in tooltips

13 years ago==makefiles==
Tom Musgrove [Wed, 5 Apr 2006 00:15:19 +0000 (00:15 +0000)]
==makefiles==

pthreads wasn't added to the release zipfile on cygwin, patch by rob hausauer

13 years agoimproved some Bullet Dynamics, related to friction/contact constraints.
Erwin Coumans [Tue, 4 Apr 2006 22:26:11 +0000 (22:26 +0000)]
improved some Bullet Dynamics, related to friction/contact constraints.

13 years ago - properly prototype dummy fnmatch to match call
Daniel Dunbar [Tue, 4 Apr 2006 20:37:08 +0000 (20:37 +0000)]
 - properly prototype dummy fnmatch to match call

13 years agoNew option for convert-menu font->curve: "Curve (Single filling group)".
Alexander Ewering [Tue, 4 Apr 2006 09:14:07 +0000 (09:14 +0000)]
New option for convert-menu font->curve: "Curve (Single filling group)".

Since the text-object remake, it was not possible anymore to 'cut out'
text from, say, a box made by a polycurve, by converting text to curve
and then joining - only the first character would be cut out.

This is because of the filling groups (nu/dl->charidx)
I introduced for getting the vast speedup and the possibility
of overlapping characters.

The new convert menu option now assigns filling group 0 to all of
the nurbs generated.

Maybe filling groups should be exposed in the UI in general for curves -
there are various occasions where they are useful.

(Hint to the UI mafia! ;)

13 years agofixed error in boneweight copy and type in obj export.
Campbell Barton [Mon, 3 Apr 2006 21:48:18 +0000 (21:48 +0000)]
fixed error in boneweight copy and type in obj export.

13 years agoFix some warning for unsigned vs signed comparisons.
Ken Hughes [Mon, 3 Apr 2006 20:31:10 +0000 (20:31 +0000)]
Fix some warning for unsigned vs signed comparisons.

13 years agoFixed small but that was causing an eternal loop.
Campbell Barton [Mon, 3 Apr 2006 20:15:24 +0000 (20:15 +0000)]
Fixed small but that was causing an eternal loop.

13 years ago-> Stored Selections in Mesh DNA
Geoffrey Bantle [Mon, 3 Apr 2006 19:02:22 +0000 (19:02 +0000)]
-> Stored Selections in Mesh DNA

Stored selections now get saved to mesh library blocks as direct data.
The idea that stored selections are 'erased' when leaving editmode and
switching objects is pretty mysterious for the user. Note that currently
the mselect array in a mesh is not written to file.  Not sure whether
to change this or not.

13 years agoFixed a but where applying the modifier option was disabled, Meshes woudl have there...
Campbell Barton [Mon, 3 Apr 2006 16:14:24 +0000 (16:14 +0000)]
Fixed a but where applying the modifier option was disabled, Meshes woudl have there objects matricies applied.
(Now always work on copied data- Blender.Mesh could do with a copy function)
Now triangulate works without "Apply Modifiers" enabled.

Much thanks to Gianluca Faletti for helping me track down the problem.

13 years agomade some gfx debug code win32 specific
Erwin Coumans [Mon, 3 Apr 2006 01:28:43 +0000 (01:28 +0000)]
made some gfx debug code win32 specific

13 years agocommented out some asserts that don't work multiplatform
Erwin Coumans [Sun, 2 Apr 2006 22:36:15 +0000 (22:36 +0000)]
commented out some asserts that don't work multiplatform

13 years agoapplied Charlies patch for game engine graphics. display list support, and bumpmappin...
Erwin Coumans [Sun, 2 Apr 2006 21:04:20 +0000 (21:04 +0000)]
applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements.

13 years agoSped up quite a bit using zsorting and fast index guessing. so verts can find the...
Campbell Barton [Sun, 2 Apr 2006 20:59:02 +0000 (20:59 +0000)]
Sped up quite a bit using zsorting and fast index guessing. so verts can find the closest vert in the other mesh.
from 37.3sec to 8.65 sec on the test I used (human with 24 bones) - 24k verts on the source mesh.

13 years agoFix gcc warnings about NULL used in arithmetic comparison.
Ken Hughes [Sun, 2 Apr 2006 20:19:30 +0000 (20:19 +0000)]
Fix gcc warnings about NULL used in arithmetic comparison.

13 years agofixed a crashing bug in new vehicle physics, and removed some debugging code in conta...
Erwin Coumans [Sun, 2 Apr 2006 20:15:24 +0000 (20:15 +0000)]
fixed a crashing bug in new vehicle physics, and removed some debugging code in contact/friction physics code.

13 years ago - fix some minor typing/redefinition errors, should
Daniel Dunbar [Sun, 2 Apr 2006 18:11:02 +0000 (18:11 +0000)]
 - fix some minor typing/redefinition errors, should
   not be misconstrued as "working" by myself

13 years agoBugfix #3996
Ton Roosendaal [Sun, 2 Apr 2006 17:44:14 +0000 (17:44 +0000)]
Bugfix #3996

Particles were fully recalculated each time on frame advance, when they
had an animation itself (like Ipo). Was not needed for dynamic particles.

13 years agoAdded to select group-
Campbell Barton [Sun, 2 Apr 2006 15:40:56 +0000 (15:40 +0000)]
Added to select group-
Siblings, ad Type
This removes the need for the "Select Type" menu (please review Broken)

13 years agoA calculation was using an integer 100000000000, which was being truncated:
Ken Hughes [Sun, 2 Apr 2006 14:22:19 +0000 (14:22 +0000)]
A calculation was using an integer 100000000000, which was being truncated:

source/blender/src/writeimage.c: In function `save_rendered_image_cb_real':
source/blender/src/writeimage.c:129: warning: integer constant is too large
for "long" type

Since the calculation is on a float anyway, changed constant to a float.

Ken

13 years agoBugfix #4046
Ton Roosendaal [Sun, 2 Apr 2006 12:45:55 +0000 (12:45 +0000)]
Bugfix #4046

Copying constraints should refresh the dependency graph, otherwise the
new relations don't get calculated properly.

13 years agoBugfix #4042
Ton Roosendaal [Sun, 2 Apr 2006 12:39:11 +0000 (12:39 +0000)]
Bugfix #4042

New empty drawsize and type are initialized on loading old files now.

13 years agoBugfix #4047
Ton Roosendaal [Sun, 2 Apr 2006 12:20:46 +0000 (12:20 +0000)]
Bugfix #4047

"Delete scene" should exit modes too, crashed in dependency graph then.
Now it exits editmode and paint modes first.

13 years agoFix for #4048
Ton Roosendaal [Sun, 2 Apr 2006 12:08:34 +0000 (12:08 +0000)]
Fix for #4048

Camera was excluded from depsgraph when not visible in current layer...
resulting in camera animations to not move.

Solved with just an exception, but it certainly is attention point for the
depsgraph cleanup.

13 years agoBugfix #4051
Ton Roosendaal [Sun, 2 Apr 2006 11:48:22 +0000 (11:48 +0000)]
Bugfix #4051

- particle duplicators should not include parent animation (error in
  duplicator recode of last december)
- added exception for 'died' particles to keep correct orientation

Also in this commit:

- added comment in code to explain why vertexnormals in mesh are equal to
  vertex location when no faces exist
- cleanup of BKE_object.h for functions that don't need export.

13 years agoAdded proper initialize for curve pointer, fix for commit of march 24th.
Ton Roosendaal [Sun, 2 Apr 2006 11:41:46 +0000 (11:41 +0000)]
Added proper initialize for curve pointer, fix for commit of march 24th.

13 years agoBugreport #4057
Ton Roosendaal [Sun, 2 Apr 2006 08:21:47 +0000 (08:21 +0000)]
Bugreport #4057

Uninitialized variable used in viewmove for 2d windows... the reporter
found it himself. thanks Michael Jones!

13 years agoBugfix when checking for a container mesh (Mesh.Unlink needed here)
Campbell Barton [Sun, 2 Apr 2006 01:46:10 +0000 (01:46 +0000)]
Bugfix when checking for a container mesh (Mesh.Unlink needed here)

13 years agoSilly var typo fix.
Campbell Barton [Sat, 1 Apr 2006 19:28:55 +0000 (19:28 +0000)]
Silly var typo fix.

13 years agoBug fix #3900, washed out AO colors
Ton Roosendaal [Sat, 1 Apr 2006 15:35:25 +0000 (15:35 +0000)]
Bug fix #3900, washed out AO colors

Darn typo in AO code... it only multiplied the red compononent for AO. :)

13 years agoThis script copys vertex groups and weights from 1 weighted mesh, to all unweighted...
Campbell Barton [Sat, 1 Apr 2006 15:32:58 +0000 (15:32 +0000)]
This script copys vertex groups and weights from 1 weighted mesh, to all unweighted meshes.
It just uses the closest to copy the weights, but this means the meshes need not have the same number of verts.
Worldspace coords are used so the meshes only need to overlap in worldspace.

13 years agoAnd the preview.blend for texture preview fix
Ton Roosendaal [Sat, 1 Apr 2006 14:09:23 +0000 (14:09 +0000)]
And the preview.blend for texture preview fix

13 years agoTexture button preview:
Ton Roosendaal [Sat, 1 Apr 2006 14:08:57 +0000 (14:08 +0000)]
Texture button preview:

- now draws intensity value correct (black/white was inversed)
- added option to show texture alpha too

13 years agoSequence render bug: pressing ANIM didn't update renderwindow, when files
Ton Roosendaal [Sat, 1 Apr 2006 12:53:51 +0000 (12:53 +0000)]
Sequence render bug: pressing ANIM didn't update renderwindow, when files
for input were 32 bits.

13 years agoPreviewrender fix: when moving the mouse still while previews should render
Ton Roosendaal [Sat, 1 Apr 2006 09:36:18 +0000 (09:36 +0000)]
Previewrender fix: when moving the mouse still while previews should render
the escape happened without resetting a variable correctly, resulting in
black preview.

This can still be coded better...

13 years agomore Bullet physics improvements, mainly stability and performance related.
Erwin Coumans [Sat, 1 Apr 2006 03:30:15 +0000 (03:30 +0000)]
more Bullet physics improvements, mainly stability and performance related.
AddObjectActuator has new python method to immediately create objects (this allows to create multiple objects in 1 frame in different positions)

13 years agoAdded relative vertex references to obj importer,
Campbell Barton [Fri, 31 Mar 2006 13:07:27 +0000 (13:07 +0000)]
Added relative vertex references to obj importer,
Found a model that used negative relative vertex indicies.
positive relative vert indicies should work also but untested (no example models).

13 years agoAdded matt's empty drawsize property to python.
Campbell Barton [Fri, 31 Mar 2006 09:50:39 +0000 (09:50 +0000)]
Added matt's empty drawsize property to python.

13 years agoRemoved debug printing.
Campbell Barton [Fri, 31 Mar 2006 02:35:16 +0000 (02:35 +0000)]
Removed debug printing.

13 years agoFREE_WINDOWS was declaring a typedef for __int64. __int64 was alredy defined.
Campbell Barton [Thu, 30 Mar 2006 22:44:33 +0000 (22:44 +0000)]
FREE_WINDOWS was declaring a typedef for __int64. __int64 was alredy defined.
so WIngws' GCC was seeing it as
typedef long long long long... and not compiling.

Added an ifndef around this decleration. safe solution. but probably remove the typedef entirely.

- Cam

13 years agoBugfix: isffmpeg() could access a pointer array using an index of -1,
Ken Hughes [Thu, 30 Mar 2006 21:51:59 +0000 (21:51 +0000)]
Bugfix: isffmpeg() could access a pointer array using an index of -1,
causing a segfault.

13 years ago==Nothing to see here, move along==
Chris Want [Thu, 30 Mar 2006 14:23:25 +0000 (14:23 +0000)]
==Nothing to see here, move along==

Removing some outdated files from elbeem, as suggested by Nils.
(Compiles OK without them.)

13 years agofixed vehicle related issue (re-enabled them)
Erwin Coumans [Thu, 30 Mar 2006 06:08:41 +0000 (06:08 +0000)]
fixed vehicle related issue (re-enabled them)

13 years ago==Nothing to see here, move along==
Chris Want [Wed, 29 Mar 2006 23:16:09 +0000 (23:16 +0000)]
==Nothing to see here, move along==

A header (BKE_Scene.h) was not included.

13 years ago==Nothing to see here, move along==
Chris Want [Wed, 29 Mar 2006 23:14:37 +0000 (23:14 +0000)]
==Nothing to see here, move along==

Try to get the yy_wrap and yy_parse definitions for IRIX. Hoping
that it will also help Kent's multiply resolved warnings, I've done
this so that these symbols are defined only if they are currently
undefined. I'm not sure if it will work though, please test!

13 years agoFixed some bugs in BPyImage comprehensive loade. (used by 3ds and obj import)
Campbell Barton [Wed, 29 Mar 2006 18:25:42 +0000 (18:25 +0000)]
Fixed some bugs in BPyImage comprehensive loade. (used by 3ds and obj import)

OBJ Importer,
Added true FGon support for faces >4 verts. (Does a propper scanfill and optionaly converts it to an FGON.) - Checks for flipping, uses a face fan when scanfill fails.
Added the option to split by materials, into seperate mesh objects (Good for large databases)
Made smoothGroups optional.

13 years agoAdded BOP_Mesh constructor to get rid of this:
Kent Mein [Wed, 29 Mar 2006 16:47:56 +0000 (16:47 +0000)]
Added BOP_Mesh constructor to get rid of this:
BOP_Mesh.h:45: warning: ‘class BOP_Mesh’ only defines private constructors and h
as no friends

drawimasel.c initalized a variable so it didn't give warnings about it.
(wasn't really needed but if the code changes could be potential issue)

Kent

13 years ago- fixed elbeem header include problems
Nils Thuerey [Wed, 29 Mar 2006 14:57:14 +0000 (14:57 +0000)]
- fixed elbeem header include problems

13 years agoSeveral minor fixes:
Nils Thuerey [Wed, 29 Mar 2006 07:35:54 +0000 (07:35 +0000)]
Several minor fixes:
- Added part of Austin's msvc8 fixes (vector::erase function
  was "misused"), hopefully compiles better now.
- Ctrl-b now also bakes a selected fluidsim domain
  similar to the softbodies.
- Added surface smoothing option for domains: default is
  1, higher values result in a smoother surface (and probably
  slightly higher comupation times), while 0 means the surface
  is not modified at all.
- Added BLENDER_ELBEEMBOBJABORT environment variable in readBobj,
  if >0 quits blender when a not yet existing fluidsim
  frame should be loaded. Useful for rendering simulations
  as far as possible from the command line.
- Surface normals pointer is now set to NULL in readfile.c
- Fixed win32 error string handling, now uses a function
  to return the string from the solver.
- Fixed fluidsim particle halo scaling problem.
- Solver update

13 years ago==Directx 8 importer==
Tom Musgrove [Wed, 29 Mar 2006 06:25:07 +0000 (06:25 +0000)]
==Directx 8 importer==

addition of a direct x importer by Ben Omari

13 years ago==Directx 8 exporter update==
Tom Musgrove [Wed, 29 Mar 2006 06:22:43 +0000 (06:22 +0000)]
==Directx 8 exporter update==

update to the direct x exporter by Ben Omari

13 years agomore physics work: fixed some deactivation bug, improved contact constraint stability...
Erwin Coumans [Wed, 29 Mar 2006 03:11:30 +0000 (03:11 +0000)]
more physics work: fixed some deactivation bug, improved contact constraint stability and friction (lower the number of iterations).

13 years agoI fixed some warnings about multiply defined yy_parse (etc) fuctions.
Kent Mein [Tue, 28 Mar 2006 20:56:58 +0000 (20:56 +0000)]
I fixed some warnings about multiply defined yy_parse (etc) fuctions.
Did some small indentation fixes, and moved some variables so they
were declared at the top of the function blocks.

Kent

13 years agodisabled restitution in the new iterative contact constraint.
Erwin Coumans [Tue, 28 Mar 2006 20:55:44 +0000 (20:55 +0000)]
disabled restitution in the new iterative contact constraint.

13 years agofixed scons build for moved and added file.
Erwin Coumans [Tue, 28 Mar 2006 20:18:14 +0000 (20:18 +0000)]
fixed scons build for moved and added file.

13 years agoRemoved a bad return and and unused variable.
Campbell Barton [Tue, 28 Mar 2006 03:20:10 +0000 (03:20 +0000)]
Removed a bad return and and unused variable.
swappsed all // for /**/.

13 years agoFix gcc warning about usage of identifier "main"; renamed the variable to
Ken Hughes [Mon, 27 Mar 2006 22:33:21 +0000 (22:33 +0000)]
Fix gcc warning about usage of identifier "main"; renamed the variable to
"mainptr".

13 years agoAdd structure declaration to beginning of file to fix gcc warnings.
Ken Hughes [Mon, 27 Mar 2006 22:22:08 +0000 (22:22 +0000)]
Add structure declaration to beginning of file to fix gcc warnings.

13 years agoMove variable declaration to beginning of code block, to avoid compiler
Ken Hughes [Mon, 27 Mar 2006 22:20:24 +0000 (22:20 +0000)]
Move variable declaration to beginning of code block, to avoid compiler
warnings or errors.

13 years agoModified editmesh_mods.c
Campbell Barton [Mon, 27 Mar 2006 21:35:31 +0000 (21:35 +0000)]
Modified editmesh_mods.c
Added "Similar Edge Face Angles" to "Select Edge Groups"
This means you can select edges based on the angles of edges in the existing selection.
Only works for edges with 2 face users at the moment.

13 years agoanother couple of uninitalized variables get the axe.
Kent Mein [Mon, 27 Mar 2006 16:15:44 +0000 (16:15 +0000)]
another couple of uninitalized variables get the axe.

This is only to make things predictable until that section of the
code is finished.  Ton said it'd be a good idea to drop in in for now.

Kent

13 years agoMake editmesh edge length and face area drawing's precission proportonate to the...
Campbell Barton [Mon, 27 Mar 2006 14:57:53 +0000 (14:57 +0000)]
Make editmesh edge length and face area drawing's precission proportonate to the gridsize.
Needed when working with small models.

13 years agoneeded to normalize the plane for the manipulator.
Campbell Barton [Mon, 27 Mar 2006 08:52:28 +0000 (08:52 +0000)]
needed to normalize the plane for the manipulator.

13 years agoremoved 2 warnings from Image.py epydocs
Campbell Barton [Mon, 27 Mar 2006 08:34:06 +0000 (08:34 +0000)]
removed 2 warnings from Image.py epydocs

13 years agoSeperated out some functionality into 3 new functions.
Campbell Barton [Mon, 27 Mar 2006 08:25:06 +0000 (08:25 +0000)]
Seperated out some functionality into 3 new functions.
EM_editselection_center
EM_editselection_normal
EM_editselection_plane
These functions are used by the manipulator to get data from an editselection. regardless of weather its a face/edge/vert.

13 years agoSynchronized Bullet physics to latest version.
Erwin Coumans [Mon, 27 Mar 2006 06:37:30 +0000 (06:37 +0000)]
Synchronized Bullet physics to latest version.

- Changed license from MIT to ZLib.
- Added 3D Sweep and Prune contribution
- More stable native constraint solver

Sorry for any inconvenience caused by this checkin.
All Blender buildsystems require update: added files and moved files.

13 years agoAdded rotate about centre for active Vert/Edge/Face in mesh editmode. also works...
Campbell Barton [Mon, 27 Mar 2006 05:28:36 +0000 (05:28 +0000)]
Added rotate about centre for active Vert/Edge/Face in mesh editmode. also works for getting the V/E/F normal. Means we can now rotate about the last selected edge.

13 years ago-> Stored Selections
Geoffrey Bantle [Mon, 27 Mar 2006 05:19:14 +0000 (05:19 +0000)]
-> Stored Selections

Previously Blender did not store the order in which vertices, edges
or faces were selected in edit mode. In many cases it is useful to
have this data, however it is not desirable to store every selection
made. Now blender stores selections in the order in which they were
made in a linked list called 'selected' in  EditMesh. EditSelection structs
are created whenever 'EM_store_selection' from  editmesh_lib.c is called
(currently only on user selection with mouse). There are several cases
in which they might be deallocated by calling the 'EM_remove_selection'
function however:

-When the user deselects something with the mouse ('mouse_mesh' in
 editmesh_mods.c)

-When switching selection modes stored selections that are not relevant
to the new mode are removed by the 'EM_strip_selections' function
(multi-select mode is supported)

-When the vertex, edge or face pointed to by a certain stored selection is
deallocated

-When EM_clear_flag_all is called and where the flag passed to the function
contains the 'SELECT' bitmask.

-When leaving edit mode (making stored selection data persistent across
editing sessions will require modifications to mesh DNA later)

Todo:

There are a few cases still where you can temporarily end up with a stored
selection that points to an element that is no longer selected
(edge loop de-select can cause this for instance). The solution to this is to
add a call to EM_remove_selection from 'EM_select_edge' and 'EM_select_face' when
these functions are being used to deselect elements. For the sake of completeness
however this will also require that an 'EM_select_vert' function be coded and
called at all appropriate parts of the editmesh code. I will look into this
later in the week.

For now there are two tools that already take advantage of the stored selections.
The first one is 'merge at first or last vertex' in the merge menu (the 'firstvert' and
'lastvert' pointers are gone from EditMesh). The second tool is path select, which builds
a path between the last vert selected and the second to last vert selected. This allows you
to build complex path selections in a short amount of time like this
'select A, select B, path select. select C, path select. select D...'

13 years ago=== Transform Display ===
Martin Poirier [Sun, 26 Mar 2006 22:35:03 +0000 (22:35 +0000)]
=== Transform Display ===
Based on a patch by Matthias Derer, this adds the distance moved to a translation (grab) transform
(both 3D and 2D, although the 2D transform displays the normalised distance only).

13 years ago==sequencer==
Tom Musgrove [Sun, 26 Mar 2006 22:31:11 +0000 (22:31 +0000)]
==sequencer==

a tiny patch by Luis de Bethencourt Guimera (luisbg) adds RETKEY as completing a transform for consistency

13 years ago==Sequencer==
Peter Schlaile [Sun, 26 Mar 2006 21:36:42 +0000 (21:36 +0000)]
==Sequencer==
This patch is mostly a usability patch for the sequencer, mainly written by
Anders Gudmundson and twisted a little bit by me.

- Lock Time to other windows
- Possibility to switch the X-Axis between frames and seconds-display
- IPO-Frame Locking for plugins (T-Key)
- Additional Popup to add HD-Sound and Movie at once
- In Timeline-Window: Sequencer windows only playback
- Make the IPOs a little bit IPO-Frame-Lock friendlier (doesn't jump;
  the frame that is drawn has the right dimension)
- Wheel-Mouse buttons make the sequencer window zoom again.
- The "This is not a sound/movie-file message" now reads "... or
  FFMPEG-support not compiled in!" since I learned some prominent
  people who complained, that hdaudio does not work for them ;-)
- Make SPACEKEY open up the "Add Strip"-Popup on the timeline and start
  playback in the preview window.

13 years agoAdded python image pack/unpack per image.
Campbell Barton [Sun, 26 Mar 2006 09:25:30 +0000 (09:25 +0000)]
Added python image pack/unpack per image.

13 years agoselect group with large selections could make blender hang. break out of the loop...
Campbell Barton [Sun, 26 Mar 2006 01:54:52 +0000 (01:54 +0000)]
select group with large selections could make blender hang. break out of the loop when no more can be done.

13 years agoMade group work from multiple selection's (before it used the first selected face...
Campbell Barton [Sun, 26 Mar 2006 01:02:22 +0000 (01:02 +0000)]
Made group work from multiple selection's (before it used the first selected face/vert/edge)
so you can select 2 faces and then get all coplaner faces around both.
Added fp to face and edge edit data so as to store edge length and face area/perimeter. (in the union so minimal overhead)
current implimentation is fairly optimized.

Change to arithb.c was just to command Inpf as being the dot producr.

13 years ago==paint==
Tom Musgrove [Sat, 25 Mar 2006 22:29:48 +0000 (22:29 +0000)]
==paint==

change CKEY to toggle paint on or off in image paint patch by Stephan Kassemeyer

13 years agoFixed a possible bug where counting faces was a short and could be less then the...
Campbell Barton [Sat, 25 Mar 2006 11:51:33 +0000 (11:51 +0000)]
Fixed a possible bug where counting faces was a short and could be less then the number of items selected.
Added Vertex group select menu- Similar Normal|Same FaceUsers|Shared Vertex Groups