Commit Graph

4125 Commits

Author SHA1 Message Date
Ton Roosendaal
205b6501a0 (Accidentally sent previous commit without message... is same stuff)
gcc4 error fixes for compiling in OSX Tiger

Also; make using python framework default in makefiles
2005-06-08 18:55:49 +00:00
Ton Roosendaal
ce68fddc0d Made anim player (blender -a) free memory in end, so we can check what the
leak comes from.
2005-06-08 15:09:11 +00:00
Ton Roosendaal
cf1022ffaa On exit mesh editmode, the other objects using this mesh should get a
'redo softbody' signal.
2005-06-08 13:01:31 +00:00
Ton Roosendaal
5e0aa9b1ec Bug fix #2719
Ortho render didn't correct texture/shadow coordinates for subpixel
position. Caused small errors where faces intersect each other.

Also found texture subpixel error in unified (using jitter table not
correctly). This also caused errors with z value comparing.
2005-06-08 12:51:03 +00:00
Ton Roosendaal
ae77736c30 Small tweak in Ward-Iso specular. It didn't work correctly on backfacing
light. Thanks Alfredo! :)

Report #2711
2005-06-08 08:13:33 +00:00
Ton Roosendaal
9fea86d38a Fix #2709
Editmesh; "Remove Doubles" also included hidden vertices.
2005-06-07 13:04:31 +00:00
Kent Mein
af890a6270 Bart updated his scripts...
Fixes:
- naming of Transform instead of Shape node
        X3D exporter: line 431 and 432
        VRML exporter: line 430 and 433
- wrong import of modules in the X3D exporter
        line 72
2005-06-06 19:00:02 +00:00
Jens Ole Wund
91b5992b49 Fix for # 2655
Now triangles and quads of _any_ shape collide nicly with softbodies.
Some tricks don't work in a non euclidian geometry !
Had to brush up that dusty knowlege a bit :)

thanks efbie & ton
2005-06-06 18:52:07 +00:00
Rob Haarsma
9abdd362b7 Bugfix #2704
Modified bFTGL so the bitmaps supplied by the font itself aren't used.
Patch originally supplied by Shizu, somehow this was never added to
FTGL.

Be sure to build binaries with bFTGL, not the provided ftgl.lib from the
lib dir. (this one can be deleted afaic)
2005-06-06 14:42:50 +00:00
Ton Roosendaal
058e8ba402 Different fix for the nasty stars problem, previous one swallowed the
ESC during alt+a playback.

Solved in the 'proper' way, which is not abusing the (while render)
ESC callback for UI draw of stars, this confused everything. Means;
you cannot esc stars drawing anymore. Nice feature, bad hack...
2005-06-06 13:10:02 +00:00
Martin Poirier
bb4710d2c9 Fixing bug #2707 : Local Axis constraints in transform working incorrectly on objects that have object constraints.
http://projects.blender.org/tracker/index.php?func=detail&aid=2707&group_id=9&atid=125

Problem was as suspected (axismtx defined after clearing constraints), so very easy to fix.
2005-06-06 12:23:47 +00:00
Ton Roosendaal
c61f6463b1 Updated BL text.
This option has not been used for 3 years, and is very unlikely to happen
anytime.
2005-06-06 12:18:44 +00:00
Ton Roosendaal
7f3908af65 Fix for #2689
When drawing many stars (or for certain slow gfx cards) you can press ESC
to stop it from drawing. The variable set for this escape was not reset,
causing a first F12 render to not work. (Ancient bug!).

Added: redraw event for "Stars" button in worldbuttons.
2005-06-06 10:35:50 +00:00
Ton Roosendaal
88fa58c437 Changed test for (me->flag&ME_SUBSURF) into
((me->flag&ME_SUBSURF) && me->subdiv)

In build_mesh_data(). This because meshes with subdiv==0 were calling a
MakeDisplist() for each redraw otherwise, disabling for example the
posemode "delay deform" feature. (bug #2700)

Daniel; it would help if you would add comments in the code, for example
to understand the difference between;

mesh_get_base_derived()
mesh_get_derived()

and how it relates to

build_mesh_data()

I realize most of the mess is in displist code... and confusing use
of features while editing, posemode, & render. Nevertheless, it's not
clear at first sight which parts of derivedmesh is design, and which
part reflects the hacks to make it work. :)
2005-06-06 09:52:44 +00:00
Simon Clitherow
35a00d7ca0 Fix v2.0 for #2256:
An alternative fix - last one broke stuff that I only discovered
*after* committing! Go figure!

Basically, gave B_REDR events for the sliders -- I still think
there is a bigger underlying issue here, but it is best left for
Ton the interface guru! ;)
2005-06-05 17:06:20 +00:00
Simon Clitherow
6d823636b8 Bug fix: #2256
Sliders (and potentially other buttons) with no retval were not breaking the ui_do_block() loop, which caused events to propagate to other panels!

(The effect could also be seen by dragging from AO sliders into the
World name textbox.)
2005-06-05 16:40:48 +00:00
Martin Poirier
1dd02d4cf9 As discussed in meeting, fixing Numinput annoyance in transform.
Numpad Minus can now be used all the time to type negative numbers, without interfering with PET.

WARNING Behavior change: PET area of effect is not resized with Alt-Num+ and Alt-Num- (in addition to the scrollwheel)

WARNING testing needed: it's late and the laptop here has a funny emulated numpad, so better be tested on a real keyboard by someone who is not coding past midnight.
2005-06-05 14:26:45 +00:00
Martin Poirier
c00adc5ff8 Transform 2D center was using short. Not good enough when it's it's way off screen. Switched to ints, that fixed the bug in the tracker.
Switching to floats would probably be safer in the long term, but too many things to test to do that now.
2005-06-05 13:50:21 +00:00
Jean-Luc Peurière
38202abff8 ccommented stuff in qhull geom.c with standard C comments not C++ ones 2005-06-05 13:46:28 +00:00
Ton Roosendaal
f99b6a3042 Float precision error could cause RKEY to start with 0.02 degree rotation.
This because the used integer+float division could result in a
9.999999e-01 value, which is for acos() to return 3.452670e-04.

Converted the division to use doubles instead.
2005-06-05 12:24:35 +00:00
Jean-Luc Peurière
f38e0686d9 new round of warning fixes. we are now down to 24 with Xcode on blender
alone with the following flags :
-Wall -Wno-char-subscripts -Wno-missing-braces.

the only one still worrying me is in rand.c line 57 :

rand.c:57: integer constant is too large for "long" type

but i have no clue about how correct cross-compiler and 32/64 bits friendly

see also my mail to commiter list for signed/unsigned issues
2005-06-04 16:22:50 +00:00
Ton Roosendaal
0f82931e5f Added threadsafe patch from Martin.
Now envmaps of type "Load" should not give errors. I assume Martin tested!
2005-06-03 18:44:01 +00:00
Ton Roosendaal
3d6a159b0b Bug fix #2651
Area light soft shadow now renders transparant shadow as well.
ALso: found error in correct threadsafe use of soft shadow tables. Caused
dither/noise not to look as well as it could.
2005-06-03 17:04:26 +00:00
Ton Roosendaal
0493e77fa4 Using render option "Crop" with OpenGL render (button in 3d header)
caused a struct Part to be allocated and not freed.
2005-06-03 08:37:04 +00:00
Ton Roosendaal
7654d1a711 Fix for #2657
Appending from files also set the string for "last loaded file". That's
a real bad one... so you can save over accidentally libraries.

Another fix: appending from files that have dynamic other files linked
with relative paths didn't work. (Yah, now it should all work!)

renderconverter change is just a more clear comment.
2005-06-02 17:38:42 +00:00
Kent Mein
01d0b5eba8 This is a dumb little commit to do while things are frozen.
Just updated the comments about the imbuf there were lots of
comments that were /* What is this? */

Kent
2005-06-02 16:16:11 +00:00
Ton Roosendaal
04ae33ba3a Bug fix #2660
When number of OSA samples is larger than number of AO samples, the AO
loop doesn't function well. Since rendering 16 OSA samples with only 9
AO samples isn't very useful, I've made the AO render level to become
at least equal or larger than amount of OSA samples.

Is first bug in 2.37 that worked in 2.36...
2005-06-02 10:32:54 +00:00
Ton Roosendaal
83bd38bb41 Bugfix #2652
Typo in toolbox, editmode curve, "set vector handle" should be hotkey V.
2005-06-02 10:12:13 +00:00
Ton Roosendaal
e0bc635743 Bugfix #2648
Thread render with  using Area lights was not fully thread safe yet. I
thought I had a smart method to trick threads, but apparently it can best
(and only) be done with Mutexes...
2005-06-02 09:53:53 +00:00
Ton Roosendaal
9c869b1237 Bug fix #2659
The bugfix for linking recursively from files worked, but there was another
bug hidden... only showed up when actually *using* the recursive feature,
and not with only testing the bugfix. :) Famous coder error, but yah, we
got luckily users to test it!

I'v asked the reporter to give it more extensive testing!
2005-06-02 09:24:58 +00:00
Ton Roosendaal
25a4b8fa07 Bug #2661
Drawing face stats in editmesh didn't work... a typo caused using the 2nd
point of a face as third one.
2005-06-01 18:36:58 +00:00
Ton Roosendaal
51640e61b6 Stricter check for setting posemode. It is possible to have armatures
linked around to more scenes, which confuses the POSEMODE object flag.

Now posemode is only entered on file read when it is also the active
object.
2005-05-30 13:20:13 +00:00
Ton Roosendaal
139106ca85 Lukep noticed bug in outliner, when an object has a parent that only resides
in another scene, the outliner inserts that child object in the parent's
scene. Although it seems cosmetic, i could create crashes with it... fixed.
2005-05-30 12:19:20 +00:00
Jiri Hnidek
bb78faef27 - hide button in button window didn't do anything due to some changes in
transform code, fixed now
2005-05-30 08:31:07 +00:00
Alfredo de Greef
e4e096187e Since there still seem to be some commits being done, I thought I might
sqeeze in a minor bugfix.
I wouln't be surprised it is too late,
but since it really is sort of minor, it doesn't matter really.
I had mistakenly put the export of dispersion and absorption parameters in the
ray_mirror block instead of ray_transp, which means that both dispersion and
absorption can only be used if both ray mirror and ray transp are enabled.
Anyway, I don't want to make everyone recompile release builds if already
done, it is minor, but users should take this into account at least.
2005-05-30 08:11:46 +00:00
Jiri Hnidek
8a59480289 - last time commit. It fixes bug reported by Kent Mein. Polygonisation of Metaball was broken. Test file:
http://www.cs.umn.edu/~mein/blender/blend/metaball.blend
    http://www.cs.umn.edu/~mein/blender/blend/metaball.png

 - it should fill octal tree much more better ... polygonisation of MetaBalls is faster little bit now too
 - stiffness limit is 10.0
2005-05-30 06:37:33 +00:00
Willian Padovani Germano
4b99e61cf2 No "release ahoy" yet, so it's probably still ok for these last minute updates (excuse me anyway):
Script bug fixes:
- Paths import: SVG update sent by author Jean-Michel Soler;
- Wavefront OBJ import / export updates sent by author Campbell Barton.
2005-05-30 02:26:40 +00:00
Ton Roosendaal
c073febf08 After long debate on IRC we came up with the ultimate name for the
former "RKL" button and later renamed to "Precision": "Error Limit" :)

(Softbody yes)
2005-05-30 00:17:08 +00:00
Ton Roosendaal
b775055107 Tinsy wee buggie; added 'extrude vertices only' to menu that appears when
only 1 face is selected.
2005-05-29 23:40:35 +00:00
Ton Roosendaal
1d7a8cf86f Two more fixes in Transform:
- Ipokeys didnt have 'selected' flag, so were not included in center
  calculus
- Multiple keys transform didn't apply this center even...

ALso took extra work time to add credits in splash. Frédéric Van der Essen!
2005-05-29 23:21:56 +00:00
Ton Roosendaal
f26e4ca150 While making TransData, with mixed selection of objects and ipokeys, the
transdata pointers were increased wrong, creating empty gaps (NULL)
2005-05-29 22:39:49 +00:00
Ton Roosendaal
b1bd69c6f1 Changed 2 mallocs for object transdata to calloc. TransData->flag was
undefined... and somewhere else in code it thought there was a quaternion.

No idea why these mallocs... just asking for troubles!
2005-05-29 22:12:12 +00:00
Ton Roosendaal
d73f051bda Dependency variables in scenes were initialized in do_versions, instad of
in the scene reading function. Caused 2.37 saved files to crash.
2005-05-29 19:41:03 +00:00
Ton Roosendaal
df89dbfbab Version codes for release building + splash.jpg 2005-05-29 19:14:21 +00:00
Ton Roosendaal
73ebc76fd5 2.37 Version code, new Splash! 2005-05-29 19:12:44 +00:00
Ton Roosendaal
4de68e5796 Default .B.blend starts with bitmap fonts again. 2005-05-29 18:44:42 +00:00
Ton Roosendaal
c107de5fad Texture font draw error in Outliner, only happens when a buttons window
is in a screen in location above outliner.
Was a missing BIF_SetScale()... this is confusing, we now have three
font systems mixed, which each own peculiarities and settings. Should be
cleaned!
2005-05-29 18:36:50 +00:00
Ton Roosendaal
dabf165c33 Reshuffled "Particle Interaction" Panel. Separated in left hand for
forces, right hand for deflection.
2005-05-29 16:52:39 +00:00
Jean-Luc Peurière
4e98a84cee change for libpng includes path on openBSD
requested some times ago by Nathan houghton
2005-05-29 12:06:53 +00:00
Ton Roosendaal
9d38f4ab38 TimeLine playback settings were always initialized to default, for 2.36
version files. Made test a bit cumbersome.
2005-05-29 11:53:55 +00:00