Commit Graph

66005 Commits

Author SHA1 Message Date
Ton Roosendaal de3a622095 Bugfix #3862
Wire render normals were exactly opposite to the normals for solid faces.
This caused displacement to work inverse too. Flipped them.
(Note; for shading normals are corrected to point towards viewer)
2006-04-09 17:14:55 +00:00
Ton Roosendaal 5dd21d368f Bugfix #3860
Ipo Driver on a curve-path speed Ipo was not assigned yet to dependency
graph, so it appeared as if it didnt work.
2006-04-09 16:43:03 +00:00
Ton Roosendaal a64c9f7a6a #bugfix #3791
Missing depsgraph update tag in Object made dxf import seem as if it
didn't import anything.
2006-04-09 16:36:19 +00:00
Ton Roosendaal 8bfe762927 Bugfix #3840
Reading DXF curves can result in corrupted edges (with 2 identical
vertex indices). Probably thats OK for autocad or so.. but it made
Blender crash on entering editmode.
2006-04-09 11:10:11 +00:00
Campbell Barton e804042c8e fixed mistake in checking face verts (for face weight filling), and made C++ comments, C style 2006-04-09 05:12:13 +00:00
Ton Roosendaal 958ab951c6 Hrms... the fix for bug #4010 didn't work as expected.
The issue was that particle emittors were still transformed by the object
matrix itself. That was solved in the previous commit, but there was
still an error in correctly evaluating dependencies for the object...
Current commit uses depsgraph to recalculate all objects that influence
the emittor.

The depsgraph code doesn't like particles much (because it uses baking).
Current construct is still weak, is on the list to solve nice.
2006-04-08 18:13:47 +00:00
Ton Roosendaal 7766fb4ee5 Bugfix #3939
"Full OSA" render used wrong subsample pattern for accumulating passrender
info. Was only noticable for the 'normal' pass, for example on raytraced
images. Image looked as if it had a wireframe render.
2006-04-08 17:36:27 +00:00
Ton Roosendaal 3b064684b0 Bugfix #3948
Raymirror didn't use proper texture-space 'osa vectors' for sky texture,
causing extremely blurred reflections of sky.
Error was actually a mixup of arguments for sky render...
2006-04-08 16:46:00 +00:00
Ton Roosendaal 1e0037045d Bugfix #3961
When using CTRL+L for materials, you can end up with non-existing material
indices in faces. The drawing code then was still happily drawing the old
situation (or something random, its a static array).

This commit checks the maximum amount of materials on an object, and draws
the last available material for a non-existing index. It uses an ugly
global yes, but this code is bad anyway. :)
2006-04-08 15:58:49 +00:00
Ton Roosendaal f27870096b 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.
2006-04-08 14:58:37 +00:00
Ton Roosendaal 16082eb732 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.
2006-04-08 14:50:04 +00:00
Ton Roosendaal 0ee101f9ad 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!
2006-04-08 13:50:15 +00:00
Erwin Coumans 67be335566 fixed a lot of GCC 4.0 warnings. 2006-04-08 13:05:22 +00:00
Campbell Barton 7fdeb4830a Made face filling (Shift+K) in weightpaint mode, work with x-mirror. 2006-04-08 10:44:19 +00:00
Ton Roosendaal 703bbdfe11 Bugfix #4079
Rendering with 'Wire' material, and with Autosmooth set, made wire faces
get a zero'ed normal. Added exception handling code fir wire.
2006-04-08 10:02:20 +00:00
Ken Hughes 7fd0e22f1e 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.
2006-04-07 02:49:15 +00:00
Brecht Van Lommel db80e251f7 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.
2006-04-07 02:46:20 +00:00
Campbell Barton 2ddb445c28 going into face select mode for fluidsim meshes segfaulted blender, do a check so it dosent happen. 2006-04-07 01:14:08 +00:00
Campbell Barton 61ad9e26c6 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?)
2006-04-07 00:47:39 +00:00
Erwin Coumans 1a363c619a added HingeConstraint.cpp to SConscript 2006-04-06 21:58:46 +00:00
Erwin Coumans 84d27d74cb added hinge constraint support to Bullet physics 2006-04-06 20:37:38 +00:00
D J Capelis 2be9d80b5a Reordering OpenEXR libraries to correctly reflect dependencies.
This fixes some ld errors when the static versions of the EXR libs are used.
2006-04-06 20:11:06 +00:00
Kent Mein 3815e20ad6 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
2006-04-06 17:27:15 +00:00
Chris Want 8b94135add 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!
2006-04-05 19:28:21 +00:00
Campbell Barton 086cb9d793 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 :/
2006-04-05 18:54:38 +00:00
Ton Roosendaal de44e6c29e 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.
2006-04-05 17:21:24 +00:00
Ton Roosendaal 1772b62d22 Bugfix #4009
Missing redraw in menu to choose 'metric' for Voronoi texture.
2006-04-05 17:11:01 +00:00
Campbell Barton 97407950d3 Added an option to batch rename vert Groups. 2006-04-05 16:48:55 +00:00
Ton Roosendaal a4c110f8eb Two more quicktime changes for compiling after OSX software update 2006-04-05 15:31:21 +00:00
Ton Roosendaal 666120ad9a Another #define __CARBONSOUND__ needed because of wacko Quicktime decision
to leave carbon framework in bad state.
2006-04-05 12:03:43 +00:00
Ton Roosendaal f3d8d8e067 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
2006-04-05 11:59:20 +00:00
Campbell Barton 6b6d379b9d 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.
2006-04-05 07:10:30 +00:00
Erwin Coumans bb23675a9f fixed two issues that hinder linux build 2006-04-05 02:01:34 +00:00
Tom Musgrove 35f1059887 ==misc spelling and typos ==
a patch from Ed Halley to fix assorted typos in tooltips
2006-04-05 00:53:07 +00:00
Tom Musgrove 3f959ec7fe ==makefiles==
pthreads wasn't added to the release zipfile on cygwin, patch by rob hausauer
2006-04-05 00:15:19 +00:00
Erwin Coumans 9d41401d93 improved some Bullet Dynamics, related to friction/contact constraints. 2006-04-04 22:26:11 +00:00
Daniel Dunbar 21ca6c3db8 - properly prototype dummy fnmatch to match call 2006-04-04 20:37:08 +00:00
Alexander Ewering 3be66f6d8d 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! ;)
2006-04-04 09:14:07 +00:00
Campbell Barton b6c3f3f352 fixed error in boneweight copy and type in obj export. 2006-04-03 21:48:18 +00:00
Ken Hughes dfb545a77c Fix some warning for unsigned vs signed comparisons. 2006-04-03 20:31:10 +00:00
Campbell Barton 1919391b24 Fixed small but that was causing an eternal loop. 2006-04-03 20:15:24 +00:00
Geoffrey Bantle cc8051eead -> 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.
2006-04-03 19:02:22 +00:00
Campbell Barton e9a9caee4c 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.
2006-04-03 16:14:24 +00:00
Erwin Coumans 36f498aae0 made some gfx debug code win32 specific 2006-04-03 01:28:43 +00:00
Erwin Coumans d537ce9b25 commented out some asserts that don't work multiplatform 2006-04-02 22:36:15 +00:00
Erwin Coumans 6839ec6640 applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements. 2006-04-02 21:04:20 +00:00
Campbell Barton 756bad72c4 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.
2006-04-02 20:59:02 +00:00
Ken Hughes 15a78cb9c8 Fix gcc warnings about NULL used in arithmetic comparison. 2006-04-02 20:19:30 +00:00
Erwin Coumans cf2f1956de fixed a crashing bug in new vehicle physics, and removed some debugging code in contact/friction physics code. 2006-04-02 20:15:24 +00:00
Daniel Dunbar 1d5cca805b - fix some minor typing/redefinition errors, should
not be misconstrued as "working" by myself
2006-04-02 18:11:02 +00:00