Commit Graph

5860 Commits

Author SHA1 Message Date
11f70391d2 - fix for [ #4678 ] ALL Blender versions crashes when pasting empty windows clipboard!
quickly sneaked in last minute before release ;)
2006-07-13 17:13:31 +00:00
5ee3d1da10 The mother of all commits! Bumping version up to 2.42, and new splash. 2006-07-13 16:53:52 +00:00
7692b9f21f Bugfix #4687
Repeat Image texture was broken... the repeat value for Y was accidentally
multiplied twice, typo... had to change a 1 into 2 :)

Error introduced in 2.41 btw, 2.40 and older were OK.
2006-07-13 15:41:36 +00:00
ec9b952582 Bugfix #4683
Render non-osa, with mblur, did not jitter the zbuffering, so it did not
result in basic AA for non moving parts.

Note to self: this now works on < 2.42 level again: it doesn't use
the correct subsampling, which can cause slight errors in rendering image
textures.
2006-07-13 14:02:27 +00:00
3503ad47dc fix #4675
Button "use nodes" was showing up when no material was visible in buttons.
2006-07-13 13:19:27 +00:00
464f3bd966 Three more valgrind discoveries:
- readfile.c, version patch for new toolsettings used a malloc, using
  unitialized variables
- despgraph, another malloc changed to calloc
- timer code for render ESC: unitialized variable in struct
2006-07-13 11:36:26 +00:00
3bc73506ea Thanks Brecht && Valgrind!
Octree filling code used an unitialized vector. Only when a quad once was
rendered it was filled with a value, explaining the weirdness we suffer...
2006-07-13 10:55:25 +00:00
2899d1da35 Paranoia commit to eliminate threads issues or uninitialized var stuff.
- thread render stores per thread and per lamp the last intersected
  shadow face
- the Isect struct, for intersections, could use a couple of extra
  zeros on start.
2006-07-13 10:26:36 +00:00
7aaa8c720c Removed the isnan() fix for silly people who type in NAN in a button!
Apparently not supported in Windows compiler, and although it has _isnan()
I've got no time to code wrappers for it, and #ifdefs here is plain bad
code.

Nice todo for Campbell one of these days after release!
2006-07-12 15:28:37 +00:00
b9f4efe1c7 Camera pointer declaration in middle of code.... tsk! 2006-07-12 14:51:30 +00:00
Stephen Swaney
aa42dc28f1 more spell checking. 2006-07-12 14:27:13 +00:00
841b5027aa Code cleaning: mixing short and floats in multiplying while building
octree.... might give issues, so made it all float.
2006-07-12 12:06:27 +00:00
500a68f0ad - ray.c: a string was assinged to stats drawing, but not cleared. could
create buffer overflows in string drawing
- removed static variable from renderwin.c. No fix, just nicer code.
2006-07-12 10:48:05 +00:00
Stephen Swaney
fec1ebaca3 A little spell-checkage.
Some return types changed from PyNone ( a C name ) to None.
2006-07-12 01:36:07 +00:00
b54d5809c4 Added some notes on mesh materials and object getData(mesh=1) 2006-07-11 15:02:14 +00:00
fede9f9be3 Bugfix #4663
Play option: if you set output to render to .avi, but in the same
directory also individual files exist, it always played the files, not
the movie.

Now it checks for the Output type, and plays back a movie or frames, as
indicated.
2006-07-11 11:54:59 +00:00
f9461c8435 Bugfix #4669
Negative scaled Objects get a OB_NEG_SCALE flag, to indicate to OpenGL
to invert lighting for solid drawing.
Works nice, but when you use Group-duplicators, the negative scale of
the duplicator should be taken into account as well.
2006-07-11 11:34:05 +00:00
d941fd7d6e Bug + patch #4655
- Added "Shift+P" note in 3d window menu for preview panel
- Added Preview, passepartout in spacebar toolbox
- Info pulldown "Render" -> "Render buttons" did cycle, should not.
2006-07-11 09:07:19 +00:00
a8ad9880f4 Bugfix #4661
Apparently the atof() function allows to convert a NAN string input to a
NAN float value.
That we don't want when you input values in our sliders! :)
2006-07-11 08:56:46 +00:00
1cd74bab99 Bugfix #4652
Using TAB to type values in button sequences, didn't execute button
callbacks on the 2nd and and 3rd etc. Error could be noticed in the
Node Editor, Mapping node. That one didn't pass on changes to shading code.
2006-07-10 14:49:20 +00:00
39764b0eff Bugfix, own collection
Restored lost functionality in Play (animation) window. On scrubbing with
LMB it should print the curent frame, making it quite more useful.
(Windows platform; it already changed title of window to this info).
2006-07-10 13:50:46 +00:00
c0ad762211 fixed comparison eith edge angle. 2006-07-10 11:11:17 +00:00
06095778c1 when weight+vertex paint modes were mixed, weight paint was used but the paint menu was for vertex paint - a bit confusing, order fixed. 2006-07-09 15:10:07 +00:00
6bd0091a08 BPython:
-local matrices again, previous commit had matrix multiplication with
inverted order.
2006-07-09 14:49:53 +00:00
289259c09c == FFMPEG ==
Bugfix #4596 and #4594 by rewriting the file extension management.
The code is now _much_ nicer ;-)
2006-07-09 13:05:09 +00:00
c8a37212da BPython API:
-fixing object.getMatrix("localspace") and object.matrixLocal to return
the local matrix (returns global space matrix if the object doesn't
have a parent).
2006-07-09 13:04:42 +00:00
1ce6c22f27 Bugfix #4649
Three issues:
- When saving a file, without extension added, and no filename provided,
  the saving code received the directory name only. That's a potential
  danger of getting directories deleted.
  Added in the saveover() function a check for this, and return an error
  when you try to save over a directory.

- Screendump did not add file extensions yet, when indicated todo so.

- Screendump code was duplicating all image type cases, whilst we have a
  nice BKE_write_ibuf() call for that now. (Bug was that this code did not
  check for BMP, saving the file in default format.)
2006-07-09 13:00:41 +00:00
cf313f867d Bugfix #4647
The raytracer wasn't calling node shaders yet, so results showed only
shading for the base material.
This now works, but there's a conflict in the internal Blender shader that
makes recursive raytracing with nodes unpredictable. Basicaly the conflict
is that when a ray wants to shade a point, it should be able to check the
material for mirror properties, but this is undefined for node trees...

Probably we need to separate raytrace entirely from material shading. Is
a good topic for NodeShader 2.0, when we really split up materials in
shading components.

I'll add a note in the release log about this. Best results you get now
when you don't include mirror/ray-transp insde a node tree, in that case
a regular material mirror can render that material perfectly.
2006-07-09 11:54:41 +00:00
Ken Hughes
121f13fef7 ===Python API===
Response to bug #4398: print separate messages on start-up to show (a) the
built-in Python version and (b) whether a Python installation was found.
2006-07-08 20:40:41 +00:00
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
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
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
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
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
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
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
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
ace48877ea doubled the speed of mouse rotation, halved the mousewheel speed and WASDRF dont accelerate anymore. 2006-07-07 17:03:31 +00:00
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
f51c8f276c - bug fix for #4606,
too small size of base MetaBall object caused infinitive loop
2006-07-07 11:10:53 +00:00
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
b709a08abc Bugfix in NMesh:
- Setting hasFaceUV to false didn't work correct, missing braces in
  define.
2006-07-06 21:51:54 +00:00
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
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
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
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
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
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
86ce9c71b6 [ #4585 ] - fix for reading videoscape files
- yet again a file path that was too short ;)
2006-07-06 17:15:13 +00:00
cfa193ad0b Very minor warning fix for gcc4 in these 2 files (unitialized array) 2006-07-06 17:14:03 +00:00