Commit Graph

7499 Commits

Author SHA1 Message Date
Ken Hughes
cf266ea2af Bugfix #4627: headerResize() was overflowing a string parameter and
destroying part of the transform matrix.  Also remove a debigging printf.
2006-07-08 14:24:57 +00:00
Ton Roosendaal
00b55aba24 1)
The F3 key 'save rendered image' made inconsistant choices to save either
in jpg or tga, when the output panel was indicating to render to movies.
Even worse, it was sometimes saying 'save jpg' and saved a targa!

Made it consistantly save .jpg now, since tga isn't a good common format.

2)
Forgot to commit transform.h for previous bugfix in transform numeric input
2006-07-08 13:18:57 +00:00
Ton Roosendaal
8a34cbe41f Bug fix #4627
The transform number input code allowed to keep typing forever. That's nice
but the code uses floats to store values, so there's a limit of 7 digits
resolution to take care of. I've added this limit now, it will stop when
the 8th digit was typed, giving a range of 100 million, quite OK for
Blender measures.

There was also a short in use for values between 0 and 1, causing an error
when you try to type like 0.99999. Here I've added a limit of 7 digits.
2006-07-08 11:56:42 +00:00
Ton Roosendaal
9587430c10 Bug fix #4640
Renaming Meta Object to become the 'mother meta' should invoke a call to
reconstruct the dependency graph.
2006-07-08 11:08:35 +00:00
Ton Roosendaal
9a49186db1 Bug fix #4642
When a Sequence setup had a gap, it returned default black frames. However,
this black frame was overriding the float buffer when a new strip started
to render again, so the Sequencer kept saving black.

Also: added extra info print for Scene strip, this didn't tell yet what the
start/end frame of Scene was, and what current frame was.
2006-07-08 10:54:53 +00:00
Ton Roosendaal
83d4833fc1 Bug #4641
The ALT+C copy menu had a "Dupli" entry, but that didn't copy group-dupli
yet.
2006-07-08 09:30:23 +00:00
Campbell Barton
219a6b245c vertexpaint_selfshadow_ao adds face uv to the mesh if there not alredy there...
added GPL header and docstrings to other scripts

removed double batch_name_edit, same file is object_batch_name_edit
2006-07-08 06:14:45 +00:00
Campbell Barton
73d50a8289 Updated to the latest cal3d exporter from http://svn.gna.org/viewcvs/soya/trunk/soya/blender2cal3d.py?view=log 2006-07-08 04:51:43 +00:00
Willian Padovani Germano
8aed0ead0b Gui:
[ #4581 ] related to scripts window updates, details here:

http://projects.blender.org/tracker/index.php?func=detail&aid=4581&group_id=9&atid=125

Scripts updated:

-Jean-Michel Soler updated some of his scripts: paths importer (ai,
eps, gimp, svg), kml / kmz importer and also updated Axiscopy.py by A
Vanpoucke (xand) and the knife script (this version handles multiple
materials) by Stefano Selleri and Wim Van Hoydonck. Thanks!
2006-07-07 18:39:51 +00:00
Ton Roosendaal
46110ec06b Bugfix: (own todo)
When you rename a generated image, like "Render Result" or "Composite"
the float buffer in this image had to be copied, otherwise a next render
will make the renamed Image buffer invalid.

Note that renaming will not mean the images get packed or saved! So on
reloading .blend they're gone.
2006-07-07 17:08:04 +00:00
Campbell Barton
ace48877ea doubled the speed of mouse rotation, halved the mousewheel speed and WASDRF dont accelerate anymore. 2006-07-07 17:03:31 +00:00
Campbell Barton
db5860df0c updated md2 exporter from 0.17.1 to 0.17.5
(not my work, asume Bob Holcomb's)
some extra features triangualte on export, usibility tweaks and try fan, strip improveemnts.
2006-07-07 16:09:41 +00:00
Campbell Barton
53efbdd3a3 Made this script motherball aware-
Metaballs that are numbered are not included - only the un-numbered motherball when getting the mesh data for objects.
2006-07-07 15:51:32 +00:00
Nils Thuerey
10215a8ff4 - fixed bug #4517:
there was a wrong divisor for memory estimate
2006-07-07 14:17:08 +00:00
Ton Roosendaal
775d3561b1 Another fix based on venomgfx fraka .blend:
In december, when testing material layering, I've removed the check that
prevented specular and diffuse to become negative, this because it could
work nice for layering.

However, this breaks quite some cases too. For example negative lamps are
only used to cancel out other lights in same material, and should not give
negative (invisible!) peaks that work on a node system. Same goes for
negative diffuse from AO 'subtract' mode.

In fraka the error happened for AO on a translucent material. The inside
of the mesh got a negative AO, cancelling out the positive AO on the
outside.

Anyhoo; this commits ensures that a 'shade_lamp_loop' call will never
return negative values again!
2006-07-07 12:28:23 +00:00
Jiri Hnidek
f51c8f276c - bug fix for #4606,
too small size of base MetaBall object caused infinitive loop
2006-07-07 11:10:53 +00:00
Campbell Barton
9a168d8285 added list2MeshWeight and meshWeight2List - faster then the dict equivilents and better in some cases.
Speedup for bpymesh_redux (poly reducer) with reducing vertex weights. use list2MeshWeight and meshWeight2List.

renamed vertex gradient files

Removed reload()'s
- 3ds_import.py
- mesh_cleanup.py
- mesh_poly_reduce.py
- vertexpaint_selfshadow_ao.py
2006-07-07 10:46:46 +00:00
Ton Roosendaal
b4e787cb5c Cosmetic change: the FFMPEG options for HD sound/movie are hidden behind
the #ifdef now, so it won't arise questionmarks in releases.
2006-07-07 09:39:37 +00:00
Brecht Van Lommel
b709a08abc Bugfix in NMesh:
- Setting hasFaceUV to false didn't work correct, missing braces in
  define.
2006-07-06 21:51:54 +00:00
Brecht Van Lommel
ec1c1615bc Fix for bug #4600:
- Array modifier crash with vertex merging. There was a missing check
  for a vertex being merged with a vertex that was merged with itself.
2006-07-06 21:43:09 +00:00
Ton Roosendaal
f0d9f59e73 Removed another Malloc from renderwindow callbacks (used while render).
BTW this is most likely bugfix for 2 reports, will verify tomorrow.
BTW2 all credits go to Andrea!
2006-07-06 21:36:26 +00:00
Erwin Coumans
011749eb08 attempt to fix crashes (reported under Linux)related to OpenGL extension queries.
seems to be a known issue, combo of pthreads, dlopen and libGL cannot call dlclose !?!
Let's cross the fingers this works...
2006-07-06 21:21:16 +00:00
Ton Roosendaal
a156ecb7f5 Two fixes, venomgfx Fraka bird test!
- AO "Use Distances" can not use 'sky texture' for colors, that bug was
  fixed in UI (prevent settings to combine), but better also gets fixed
  on reading files.

- Backbuf render, when not existed, didn't initialize backdrop color to 0.
2006-07-06 21:18:06 +00:00
Ton Roosendaal
a31ba1edbe Replacing screen_swapbuffers() with a direct swapbuffers() call during
progress of rendering. This prevents calling anything else but the
swap itself.

Might fix render memory issue in Windows.
2006-07-06 21:10:13 +00:00
Peter Schlaile
b6b394e185 == FFMPEG ==
Rewrote the video seek code again. This time it is a _lot_ simpler and a lot
better.

For those interested: instead of letting ffmpeg choose the right final
position, we let it preseek (maybe to I-frame in the rare case, that is
implemented) and then scan for the correct frame on DTS basis by hand.

We therefor only have to seek once and remove all those frame-jumping
jerkiness, people noticed in the same step.

Tested with msmpeg, hd-mpeg2 and DV.
2006-07-06 20:52:03 +00:00
Campbell Barton
5b7ccc4bd9 Credits to JMS as a contributer 2006-07-06 19:14:56 +00:00
Campbell Barton
e8d39a3ca3 updated raw import/export nice error messages, optimized with LC's removed meshtools depencancy, use Mesh instead of NMesh 2006-07-06 19:02:22 +00:00
Ken Hughes
96c6457b26 ===Python API===
Bugfix #4369.  Patch provided by Alberto Torres Ruiz (thanks) which
fixes a bug in EditBone_getRoll().  Thanks!
2006-07-06 18:02:57 +00:00
Andrea Weikert
86ce9c71b6 [ #4585 ] - fix for reading videoscape files
- yet again a file path that was too short ;)
2006-07-06 17:15:13 +00:00
Ton Roosendaal
cfa193ad0b Very minor warning fix for gcc4 in these 2 files (unitialized array) 2006-07-06 17:14:03 +00:00
Ken Hughes
861e0a347a ===Python API===
Bugfig #4527: add more robust bitfield checking for Mesh.mface.flags;
unconfirmed bug report that an exception was caused with RC3a that could
not be reproduced.  It was possible that a pre 2.42 .blend might have
some additional flag bits set that would have caused an error.
2006-07-06 16:40:49 +00:00
Ton Roosendaal
e460747680 Bugfix #4630
They're getting rare, but here's another bugfix from issue since NaN days:

Orco texture coordinates for surfaces didn't work *at all*!
(Try 2 nurbs spheres in 1 object). Fixed!
2006-07-06 14:20:44 +00:00
Ken Hughes
e5fbe8cf1e Discovered a missing "break" inside a switch statemtn while looking for
another bug.
2006-07-06 14:00:50 +00:00
Ken Hughes
02dcea079e ===Python API===
"Campbell-fix:" correct two minor misspellings in last commits.
2006-07-06 13:47:21 +00:00
Campbell Barton
14a67d2a3c Added a vertex gradient tool. got the ok from willian to add if its well tested, can do vertex gradient and weight gradient- uses __vertex_gradient__.py which manages to do both. 2006-07-06 13:34:53 +00:00
Ton Roosendaal
d13ad8fe94 fix #4629
Material buttons view, using channel buttons, didn't send refresh event to
texture preview render.
2006-07-06 13:26:48 +00:00
Ton Roosendaal
cd976bfd42 Bugfix #4628
Ancient issue in making screendumps in Blender. It used to support making
dumps of popup menus, but that disappeared a while ago. However, when you
press CTRL+F3 in a menu now, Blender hangs in some eternal loop in ghost.

This commit fixes making menu screendumps (nice for docs!).

- press CTRL+F3 *twice* for an exact copy of a menu. (first press exits
  menu, 2nd press opens filewindow)
- note, it is ALT+CTRL+F3 in OSX
- what is saved is only the topmost open level of a menu
- full-screen dumps work too by holding SHIFT extra.
2006-07-06 12:50:48 +00:00
Campbell Barton
80dda381f3 Made OBJ exporter better remove double normals and UVs on export.
Some people reported using this for games so added an option to calculate high quality normals (from BPyMesh)
2006-07-06 12:25:04 +00:00
Campbell Barton
02bb354cbe merged the functionality of both these scripts into 1 new script,
Both had small problems,

This script works with soft bodies (as fixfromarmature does) and works on multiple objects at once as Apply_def does.
Made them use Mesh over NMesh unless soft bodies are involved- in that case is uses NMesh because Mesh cant get soft body info at the moment.
This script also works with non mesh objects - mballs, text, nurbs etc.
2006-07-06 11:09:44 +00:00
Ton Roosendaal
d82ec08331 Bugfix #4625
Using the 3d window preview render, fluidsim objects gave drawing errors.
Was caused by missing object recalc signals after creating the render
database (happens on different resolutions for fluidsim).

Note to self: the separation between 'render' and 'display' is still a
weak part in the Derived/Displist code...
2006-07-06 10:10:41 +00:00
Erwin Coumans
6b90f20e87 some minor webplugin changes, new loading .blend, upgraded version to 2.42, enabled PhysicsConstraints module within sandbox. 2006-07-06 07:58:07 +00:00
Campbell Barton
68fc1ce02c added an example for face.col - normal mapping 2006-07-06 06:24:49 +00:00
Campbell Barton
ba13c4082b Added an example of using edge flags in the epydocs 2006-07-06 05:51:13 +00:00
Erwin Coumans
8e9acb4f96 uninitialized var 2006-07-06 01:16:30 +00:00
Ed Halley
f12b19cc2d Needed to add the conditional commands to ranlib for the darwin platforms.
Matches the example of the other intern/*/Makefile libraries.
2006-07-06 00:05:33 +00:00
Campbell Barton
6f051c4dee this file had dos line endings and was causing errors with MSVC express according to artificer.
all the other py files were unix so this is the odd one out.
2006-07-05 21:51:03 +00:00
Campbell Barton
1c9a7a032b fixed a bug in poly redux's vgroup weight merging (was reducing the weight each collapse by about half)
fixed some other UI logic in the python menu script
Added an option to use a vertex group for a reduction weight map to force reducing some areas more then others.

Mesh epydocs activeGroups can be None as well as string.
2006-07-05 20:37:07 +00:00
Ton Roosendaal
2ca81ba8cc Bug from own testing (yeah, writing logs means finding bugs!)
The Curve widget flag 'premultiply' should be cleared on read. This could
lead to an occasional crash...
2006-07-05 20:30:44 +00:00
Ken Hughes
64d0d62ddd ===Python API===
Bugfix #4605: mball_to_mesh() doesn't create edges for new mesh, so
me.getFromObject() wouldn't display the new mesh until edit mode was entered.
Added a call to displistmesh_add_edges() to calculate them and then insert
into the new mesh.
2006-07-05 18:28:51 +00:00
Ton Roosendaal
be3c3a24b5 Bugfix #4620
Hurmf, then you bring back old backbuffer, and they want to have fields
work on that!
OK... here it is. Although using Compositor features will make this much
easier and advanced to control. :)
2006-07-05 17:32:49 +00:00