Commit Graph

4109 Commits

Author SHA1 Message Date
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
Ton Roosendaal
90d7da7b27 Tinsy cleanup of combo drawing Manipulators:
- translate+scale : arrow at end of axis
- translate+rotate: draws axis lines now
- while translate: draws the axis line too

And: GCC was nagging about Martin's precious code!
transform_constraints.c:745: warning: suggest parentheses around comparison
in operand of &

Apparently the if(a & b == c) is undefined? Whatever!
2005-05-29 11:20:49 +00:00
Ton Roosendaal
66d5a4dd63 The TOG3 button (material mapping buttons) didn't get correct color set...
Was accidentally not visible, until we added texture drawing for fonts.
2005-05-29 10:59:50 +00:00
Ton Roosendaal
dd79f7c8a8 Bug fix #2638
More derivedmesh culling confusement... it should be enabled when double-
sided shaded lighting is used...
2005-05-29 10:47:36 +00:00
Ton Roosendaal
c7b19d5066 Bug fix #2640
Somehow displacement got negated in my commit of april 12. Regression file
showed it, thanks efbie for finding it! :)
2005-05-29 10:44:52 +00:00
Martin Poirier
0bd69e6616 Crash Fix: Mirror Tool crashed when there was no selection (stupid lack of check). 2005-05-29 09:57:51 +00:00
Martin Poirier
fad9e3b979 Behavior consistency: Make Push-Pull and Shrink-Fatten work in the same way regarding what happens when you move the mouse toward or away from you. 2005-05-29 09:50:10 +00:00
Martin Poirier
14a3166685 Push/Pull didn't do Lock Constraint correctly. Fixed.
Also added an isLockConstraint function that tells if the current constraint is a locking constraint or not.
2005-05-29 09:21:34 +00:00
Matt Ebb
eeb6adffd3 * Last minute commit, updating the view3d menus for the new
transform stuff. All transformation menu items are now in the
'Transform' sub-menu. Added To Sphere and Push/Pull, and items
like Shear, Warp, etc. have been moved to there from the
top-level Mesh/Curve/etc menus, since they are now available in
object mode too.
2005-05-29 04:18:59 +00:00
Ton Roosendaal
8dfc6a506c For texture fonts, the rasterpos has to be delivered as BIF_RasterPos().
This smells to me like temporal code... will study it. For now this
commit fixes error in header draw of fileselect.
2005-05-28 16:11:11 +00:00
Ton Roosendaal
ad9ee622e8 Bug fix #2636
New AA font drawing (using texture) didn't get initialized on startup,
only when button was pressed. Confusing code... we need to remove all
#ifdefs here once.
2005-05-28 13:22:09 +00:00
Ton Roosendaal
eeefc10bf5 #bug 2633
Keep fighting with proper normal calculus on extrudes... now the 'add grid'
had wrong normals again (alternating in rows).
2005-05-28 12:59:48 +00:00
Ton Roosendaal
61e22e99d4 Disabled GL_CULL_FACE in mesh drawing for vertex colors, weight paint.
This made faces hidden with normals pointing inside. Not nice for paint...
2005-05-28 12:23:40 +00:00
Alfredo de Greef
5b014b0c9c Some last minute tweaks, for world background image, 'Hori' must now be
enabled.
And when using Blender's AO parameters, the lowest sample number
when no cache is used is 4.
2005-05-28 02:50:55 +00:00
Ton Roosendaal
bdc928b298 Oops, I've must had a weak moment... turntable is OFF again in the .B.blend
The trackball method is for real 3d work.... turntable for woossies! :)
2005-05-27 19:19:17 +00:00
Ton Roosendaal
5dedd9306b Colorband didn't correctly compute with 2 entries being exactly on the
same spot. Was division by zero here... coded nice exception catching.

BTW: worked before june 2004... was part of commit for Ramp Shading.
2005-05-27 19:02:39 +00:00
Ton Roosendaal
9a2efcd641 Updated the .B.blend. Nothing radical, that's for the next release, when
tuho work gets merged.

- Manipulators on (already was though)
- Grid/floor size 60 parts (was 32)
- Audio window replaced with TimeLine, added TimeLine in Sequencer
- Editmode draw edge/faces option on
- Turntable view rotate (under protest! :)
- 2nd theme is the dark/orange theme by Andy
- added 5th screen for python (textwindow, script buttons)
- OSA, Ray on
- Render resol 800x600
- higher default octree level
- added outliner in Animation screen
- renamed default Cube to be "Cube" (not sphere)
- default lamp has 'ray' on.
- when you turn default lamp to shadowbuf-spot, clipstart is OK

It starts with the 'modeling' screen, single window.
2005-05-27 18:09:10 +00:00