Commit Graph

2469 Commits

Author SHA1 Message Date
061cde65a6 To end the issues with AA (International) Fonts; the .bfont.tff now is
compiled in (datatoc) and doesn't need installation anymore.

Also reviewed weird path conventions for searching AA fonts;

- U.fontdir is only used as standard search path for fileselecting
- U.fontname stores only full path to AA font if used one
- If a font cannot be found, it always falls back to the compiled in one
- If .B.blend is saved with default font, U.fontname is not set

Also added a button in usermenu "restore default".

When this works as expected, I'll commit changes for installation too.
2004-11-08 15:46:57 +00:00
5bba5035b0 Fix for MSVC (thanks Simon) 2004-11-08 11:30:41 +00:00
7f61882413 Typo in path searching for ttf fonts... needed a trailing "/" 2004-11-08 11:15:31 +00:00
459deaf11f Fixed:
Texture matrix bug in plugin code reported by Mel_Q.
Vertex colors, this was basically the same as the previous uv coord
splitting bug, for xml export, uv coord splitting was actually not quite
complete either (reported by richie).

Added:
Camera Ipo curves for DoF aperture and focal distance.

Aspect ratio set with AspX & AspY are now taken into account as well.
(needs yafray from cvs)

Bokeh parameters for DoF (also needs yafray from cvs).
'Bokeh' controls the shape of out of focus points when rendering
with depth of field enabled.
This is mostly visible on very out of focus highlights in the image.
There are currently seven types to choose from.:
'Disk1' is the default, the same as was used before.
'Disk2' is similar, but allows you to modify the shape further with the 'bias'
parameter, see below.
Triangle/Square/Pentagon/Hexagon, in addition to the bias control, you can
offset the rotation with the 'Rotation' parameter (in degrees).
'Ring', a weird ring shaped lens, no additional controls.
The 'bias' menu controls accentuation of the shape.
Three types available, uniform, center or edge, with uniform the default.

Although based on an actual phenomenon of real camera's, the current
code is bit of a hack and not physically based, and doesn't work all that
well yet (in yafray anyway). Since this is also mostly visible in the very
out of focus parts of the image, it usually also means that you need lots
of samples to get a reasonably smooth result.
2004-11-08 03:55:44 +00:00
8daff51e0f skip process serial number argument on os X
needed when starting player via drag & drop
2004-11-07 22:21:47 +00:00
ee607bdf78 dont start maximised for small comps with 16 Mo VRAM. 2004-11-07 21:55:13 +00:00
fcd0a3f9d2 Undo for lattice editmode added. 2004-11-07 21:14:21 +00:00
b6e037049b Forgot to add correct changed force_draw_all in stubs.c 2004-11-07 20:15:16 +00:00
1ba95262f6 More undo goodies;
- Undo for editmode Font object
- Undo for posemode :)
  (btw; it also means posemode remains active on file load)
2004-11-07 20:11:42 +00:00
ac0bb78a20 Tweaked the force_draw() calls, to allow headerprint() to work while
doing a transform. Solves bug reported by Brecht about this.
2004-11-07 18:20:44 +00:00
Stephen Swaney
17217648e5 less scary 'python not found' msg was too warm and fuzzy.
now msg is less less scary and invisible if python is available.
2004-11-07 17:28:15 +00:00
0f84375d7a Lotsa undo stuff added;
- ALT+U undo menu shows history for global undo as well
- Added undo pushes for buttons window more consistantly
- Added it & tested for ipowindow too
- Added it in outliner
- And quite some missing occasions for 3d window editing
2004-11-07 16:49:46 +00:00
23e8b98228 fix bug #1546
ghost was unaware of extra *<>* key on german keyboards on windows
2004-11-07 16:30:19 +00:00
c6c86b8df0 Fixes in bpython:
-- Alexander Szakaly reported and provided a patch for Material.c and NMesh.c to solve crash in material handling when there's no material.
-- Ton reported a crash with advancing a frame after creating a new script link.  I couldn't reproduce the crash, but added a check in BPY_do_pyscript to make sure the passed ID pointer is valid.

Thanks both.
2004-11-07 15:05:35 +00:00
8226f8a0b2 Fixed execution bit test for yafray plugin loading under unix.
Now, it just tests for read permissions.
2004-11-07 13:22:20 +00:00
88534ee519 Added some missing undo pushes for the UV editor and UV Face Select Mode. 2004-11-07 13:15:04 +00:00
e6060589ec Global undo now saves/loads unused data as well. 2004-11-07 10:15:06 +00:00
f07126a9a3 Found one other problem in convec() call... cannot use calcnormfloat4()
there, since the calcnormfloat of course requires a regular quad!
2004-11-07 00:10:10 +00:00
82cae482e9 Added undo in UV FaceSelect mode (3d window) and in UV Image window.
Brecht; can you give it a good test :)
2004-11-06 23:22:06 +00:00
6423ccff41 Fix, as reported by Martin; the 'make dupli real' code would also apply
size and rotation.
2004-11-06 22:29:24 +00:00
f4efd433fa Fix fixed time (enable all frames) 2004-11-06 22:10:58 +00:00
9be296289c Update Python reference version number 2004-11-06 22:10:47 +00:00
02e838c99b - Pending Hook work; falloff value for soft hook deformation.
Falloff= distance where influence becomes zero.
2004-11-06 21:59:35 +00:00
6e755e5e98 Fix for bug #1487
On OSX, the SHIFT key release event got lost after a 'mouse pointer warp'.
Replaced the warp call in ghost, and updated the fly mode code to read
events better.

Nice positive side effect; using arrow keys to move while transform (e.g.
grab/rotate/scale) goes much much nicer now!
2004-11-06 14:59:28 +00:00
cf407da719 Reorder update: do physics before logic, so logic doesn't get stale position data (eg for camera actuator) 2004-11-06 12:31:56 +00:00
38b993f787 Speed up the physics engine: hook the SOLID broad phase, so we can either reject the test or request the penetration depth test as necessary. Previously we were doing the penetration depth test, as well as SOLID's intersection test. 2004-11-06 04:58:10 +00:00
ce4b232f8c Fix the action actuator (bug #1699) 2004-11-06 04:53:41 +00:00
e9017926c9 Three minor fixes;
- themecolor for the 'bars' in NLA used signed char
- global undo, restore pointers for UI accidentally added user values for
  oops and outliner, causing unused blocks to show used
- moved popup menus one pix up or down, it was overlapping the button
  causing accidental selection of menus
2004-11-05 17:18:17 +00:00
c013711c07 Inserted new convex method in beveling for editmesh too. 2004-11-05 13:34:23 +00:00
b169abb4cf Bug fix #1678
Deformed meshes (by armature for example) didn't get drawn correctly
for vertex paint, weightpaint, UV faceselect. Was OK in 2.34 :)

Additional to that I found out vertex paint doesn't correctly use the
'Area' option, when a mesh was deformed. That was an oldie.

Plus; made tooltips for 'Area' and 'Normals' in Paint Panel clear.
2004-11-05 12:58:12 +00:00
5ffb4cb338 Bug report #1732
Function "deselect vertex group" didn't use proper code for new edge/face
flags yet.
2004-11-05 10:19:13 +00:00
82f8a02926 - Added proper undopush for 'apply object'
- Added proper edgeflag test for knife
- Fixed error in 'make face' for cases I again didn't foresee (ordering
  of vertices can be any, need to try 3 cases before rejecting)
2004-11-04 20:00:57 +00:00
0ad6944283 - MBall displays smooth again in 3d win (coding nice smooth for curves
borkened this... )

- Improved rule for adding face (FKEY); it now checks first for existance
  of 4 connected edges, if that exists a face is created anyway, otherwise
  it does the convex test. Alexander correctly noted that for subsurfs
  non-convex quads should be allowed anyway. Hope this rule satisfies it.
2004-11-04 15:35:24 +00:00
772b66d79f build on Linux/x86_64 2004-11-03 14:45:52 +00:00
691302f28d Two fixes;
- The function "convex()" in editmesh_lib() actually did not deliver
a proper test for convex at all. It was checking only if a quad could
be subdivided into 2 trias. Code for adding face (FKEY) used this
call in total confusing manner. That code was there in 1.40 already,
cannot find any clue what it was supposed todo... :)
Recoded convex() to deliver a proper test. FKEY will give warning on
attempt to make convex faces now.

- Added undo-free for editmode undo on file load
2004-11-03 11:25:27 +00:00
318fb94c4b Fix IPO actuator (Bug #1694) 2004-11-03 10:48:02 +00:00
15f17707ca Fix (thanks goran!) for stupid || and && mixup... causing dither to underflow 2004-11-02 22:51:09 +00:00
fb27561c49 Potential fix #2 for error in 'flashing UI' while adding Bones.
Also added redraw events for object buttons, to show constraints when
selecting bones
2004-11-02 15:58:36 +00:00
0737153338 BPython:
-- applied patch by Michael Reimpell that lets scripts registration info be either commented out or not (commented, it doesn't interfere with Python documentation tools.  The patch also fixes potential overflows, thanks (and sorry for the confusion) again, Michael.
-- fixed NMesh_hasFaceUV, it was returning true for false and vice-versa.  Reported by Jonas Petersen with patch, thanks.
-- added 'homedir' and 'uscriptsdir' to Blender.Get() to get Blender's home dir and the user defined scripts dir.
-- related to the above doc updates.
2004-11-02 05:13:52 +00:00
bad7e33eac Wavk report #1730
Mesh editmode, 'add face' didn't do an undopush
2004-11-01 21:17:42 +00:00
cae8b8783d - Added initialize to '4' for new tab variable in text window
(prevents crash reported by sgefant!)
- Selection outline for Curve objects didnt draw right after leave
  editmode
- outliner now default when first viewing Oops window (dangerous?)
- Zoom with ctrl+middlemouse works in Oops again
2004-11-01 20:50:42 +00:00
9a5f98576a Small tweak in dithering; the noise varies around 0.0 now.
Value 'dithering' in buttons can go to '2', for extra noise. 1.0 defaults
to exact 1.0/256.0 noise.
2004-11-01 18:04:18 +00:00
c66741510c - Fix for #1726, the convex() function is smarter now, checking on valid
trias to test in quad

PLus:

- Add undo-push after 'assign material' in curve editmode, plus redraw
  to reflect material change
- Added tooltips for opengl light buttons in user presets
- Added correct buttons window redraw for armature selecting in
  editmode
2004-11-01 17:03:05 +00:00
6d672eee9a Last new feature before release; patch provided by Goran Kocov.
In DisplayButtons, Panel "Output", a new slider "Dither" allows to add
random noise dither to rendered output. It works on sky as well as solid
and transparent. Note however that in OSA render, the Unified Render gives
much better results, since that render nicely delivers full scanlines of
high definition color. The old render mode isn't well suited for this
postprocess.

A dither value of '1.0' will exactly add maximum of 1.0/256.0 to the
pixels.

Potential improvements for next releases;
- regular patterns
- dither per color channel
- not only add, but also subtract dither

Also note that this gives best results for print work or stills. Animating it
gives slight visible noise. Also runlength compression wont really work, and
Jpeg needs to be given higher quality too.
2004-11-01 15:21:50 +00:00
275c5e7ee3 Fix for #1722
Reported was that padplus/padminus doesn't do a zoom in the NLA or Action
windows. Was missing since very beginning! :)
Found conflict with the new NLA strip move up/down, but using the pad
keys for that is a bit too inconsistant. I've now made it using the
PageUp/PageDown and normal plus/minus keys... Hos could check on this
though!
2004-11-01 12:42:03 +00:00
84b3980b92 Making Curve objects display smooth/solid was nice, but then the Surface
Objects should do that too, right? Bad testing... tsk! :)
2004-11-01 12:11:03 +00:00
ab36f4a2d2 Select Menu patch, as provided by Campbell Barton, but recoded to make it
a nice separate function, reducing code size to half and keeping it
readable code :)

Functionality; while holding ALT on a mouse-select, a menu will pop up
displaying all Objects that can be potentially selected. Maximum 22
objects will be displayed. When only one object is found it selects it
automatically, otherwise it allows the user to select/activate by the
menu.
2004-11-01 10:59:20 +00:00
67ed54a188 Bugfix for #1717 http://projects.blender.org/tracker/index.php?func=detail&aid=1717&group_id=9&atid=125
Scaling with PET with numerical input used a three axis input while it only gave access to one.
Made it use and give access to only one as it should.
2004-10-31 21:45:00 +00:00
a89a4f531c - Bug #1714; editmode undo error when ESC after extrude (missing undopush)
- Curve Join now moves all curves to 2D (if its 2D)
- FGon extrude keeps FGon flags correctly
- After Append undo-push added
- In almost all Ipo editing commands; undo-push added
- Icons in outliner now all consistant grey
- Zoffs button had to 20 high (hmetal :)
2004-10-31 21:11:03 +00:00
1a49bf0c37 Bug #1721
Crash reported on combo of append object, do global undo, and re-append
same object. Appears to be an open filehandle...
2004-10-31 20:18:14 +00:00