Commit Graph

6676 Commits

Author SHA1 Message Date
Stephen Swaney
371008fe1e last release we lost our reassuring msg when no local python install
was found.  Restore warm fuzzy msg.  Text is now

  Looking for installed Python version XXX

followed by either

  Got it!
or
  'import site' failed; use -v for traceback
  No installed Python found.
  Only built-in modules are available.  Some scripts may not run.
  Continuing happily.


And while we are at it, clean up a couple of compiler warnings.
2006-04-11 19:05:58 +00:00
Ton Roosendaal
18a8479931 Bugfix #3665
Using "International Fonts" (silly name, it's pixmap fonts) the special
characters (values above 127) were disregarded completely.
This was caused with the extremely confusing unicode conversion call, which
actually only was needed when translations were set.

Disabling the unicode conversion then gives correct text drawing. However,
I suspect that this code will give issues for translations too... that I
cannot judge nor fix.
2006-04-11 12:27:50 +00:00
Ton Roosendaal
f6fb4a30a1 Bugfix #3698
Crash fix for deleting all vertices in a Mesh when this Mesh had a
Vertex parent.
2006-04-11 10:17:15 +00:00
Ton Roosendaal
21db524a38 Bugfix #3699
When using non-relative Shape keys, the lock option (live updates) in the
IpoWindow didn't work after one of the keylines was selected.
2006-04-11 10:09:33 +00:00
Ton Roosendaal
1165cde621 #bugfix #3659
Zero-sized bones in an Armature didn't result in a stable rest position.
This caused bones to rotate to random positions on each editmode exit.

This commit will automatically remove such bones on exit editmode now, and
adds a warning print for it. I've tried to code exception handling for
zero-sized bones, but this is just too hard to get stable. Better to define
by default that Bones always should have a length.

Typically zero-sized bones only get added by accident, for example while
ctrl+clicking new bones.
2006-04-11 09:52:00 +00:00
Erwin Coumans
8dbe14b70b applied Charlies patch, reverted some GLSL shader stuff, improved penetration depth estimate. 2006-04-11 05:57:30 +00:00
Erwin Coumans
e9d4518c3a finished RemoveHandle implementation 2006-04-11 02:48:34 +00:00
Campbell Barton
2a013c1b5b Fixed 2 bugs in mesh brush. 3805 and 3806
Verts being set to NAN and cursor being placed as well as painting.
2006-04-11 02:41:11 +00:00
Martin Poirier
3f8a120ca2 === Transform ===
Bug #3779: In camera view with center cursor (on camera), it's impossible to use translations.

Initgrabz didn't account for negative zero values (nor near zero values). Works now.

Of course, this is just a safety to give back the appearance of working, since the cursor is on the point of convergence, there's no way to properly calibrate anything.

Word of advice: Always check where the transform center is.
2006-04-11 00:24:07 +00:00
Campbell Barton
32e516695e Some Maya dev thaught it would be a fun joke to format floats with a comma instead of a full stop.
Obj importer now supports 4,845 as well as the more useual 4.845 floating point value.
2006-04-11 00:00:07 +00:00
Martin Poirier
aab49dff0e === Transform Constraining ===
Bug #3733
Constraining on a perpendicular axis was broken on (half - 1) cases.
Silly oversight on my side which didn't turn out in the test case (moving camera in and out) and only appeared in front view (not side nor top) because of positive reasons.

Frankly, I still think translating an object perpendicular to the viewport is a bit silly, but now, at least, people can be silly in a predictable fashion.
2006-04-10 23:20:18 +00:00
Campbell Barton
8f20f587ad A utility script that refinds all image paths for images that have a path whos file dosent exist.
Running this script is usefull for moving projects to new computers and fixing broken image paths.
It works by taking a searchdir and finding all the images in that dir, then using the largest images (if doubles are found) to avoid using thumbnails.

This should be mived from the UV to the image menu when a python slots available.
2006-04-10 23:14:17 +00:00
Campbell Barton
0e39199546 removed debug print. 2006-04-10 21:49:46 +00:00
Campbell Barton
9c322c7e86 Moved ngon creating function from obj_import into BPyMesh so other importers can use it.
Exporter free's mesh vertex data each run (was causing memory errors when exporting fluidsim meshes... poke ken for Mesh.Unlink() since many meshes are still created)
Exporter had an indentation error also.
Added an NMesh wrapper around Mesh for importers to use, so as to work around slow 1 by 1 adding of data. used in upcoming flt_importer update.
Mesh cleanup now has the dangerous option to perform a cleanup on ALL mesh data. (needed it for a project)
2006-04-10 21:42:18 +00:00
Ton Roosendaal
4043934d2c Brought back the option "remove all used texture images". It was
committed to be default, but should react to the button in scene panels.
2006-04-10 18:27:51 +00:00
Ton Roosendaal
331406ea27 Bugfix #3702
Background image in 3d window didn't react on "reload image" options in
UV WIndow or Buttons Window.
2006-04-10 13:27:06 +00:00
Ton Roosendaal
2c42d342d9 Bugfix #3720
Using stride-bone in an NLA, on a path without speed Ipo, didn't correct
the case when an action starts on a non-zero value.
Patch provided by Roland Hess. Thanks!
2006-04-10 10:31:11 +00:00
Ton Roosendaal
3be0c804ae Bugfix #3725
When you disable a texture channel using Displacement in a Material, the
initialize code and renderconvert code still though this was active.
2006-04-10 10:14:26 +00:00
Ton Roosendaal
b2b1b7c90b Bugfix #3778
Removed the haha-fun "eekadoodle" error, which was popping up for each
faulty face (could be 1000s), and renamed it to give a proper message:

"This Mesh has old style edgecodes, please put it in the bugtracker!"
2006-04-09 19:10:41 +00:00
Ton Roosendaal
13cd984f6c Bugfix #3781
Using the new "Add constraint" hotkey (CTRL+ALT+C) or the option in the
pulldown menu, didn't set a proper flag in Curve object when a "Follow
Path" constraint was choosen.
2006-04-09 18:31:20 +00:00
Ton Roosendaal
cbb48709eb Bugfix #3906
Restored animated background picture, using a bad call actually, but thats
clearly noted in comments in code. Is remainder work for cleaning up the
whole render api. :)
2006-04-09 18:22:05 +00:00
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