Commit Graph

3144 Commits

Author SHA1 Message Date
Ton Roosendaal
5f5445ddbe Tsk tsk! Using a short to count vertices amount in Mirror menu doesnt
work when there are a lot, eh :)
2004-11-11 16:00:43 +00:00
Kent Mein
29ca2ad989 Added a header to get rid of this:
editmesh_loop.c:305: warning: implicit declaration of function `backdrawview3d'

I also removed the config.h stuff from this file, since were not using autoconf

Kent
2004-11-11 15:58:24 +00:00
Ton Roosendaal
d673c4a862 1) Bug fix 1776
Lattices seem to have deform lag, when they're animated with Ipos.
Found out this behaviour is already from before 2.25... solved with
removing a where_is_object() from deform code, but dont fully grasp
why.
Tested with good demo file, with motion blur too.

2) No functional changes, just made 2 files compile without warnings;

- added extra ifdefs __NLA_BLENDCON for unused calls
- removed zealot 'const' from function protos and variables, these cannot
  work there, and hence gave warnings
- added void pointer casts for array conversions in matrix code
2004-11-11 15:31:44 +00:00
Ton Roosendaal
c8c149281c Added winstuff.h for M_PI_2 define! 2004-11-11 13:47:06 +00:00
Ton Roosendaal
2e4a10253b Fix for bug #1756
This was caused by a very primitive method of interpolating quaternions.
It was converting quats to mat and back to quat, and then just doing
a linear interpolation. That whilst quaternions are renowned for having
good interpolation possible.

I've experimented with 2 quaternion interpolation methods, and can only
get one to work correctly... the "official" version from Watt brothers
I can't get working, both are in arithb.c now.

Will arrange *close* review with experienced NLAers for it! But testing
here gives fully predictable results.

Also changed;
- added pointer check in drawaction
- changed puldown menu for correct hotkeys for move NLA strips up/down
2004-11-11 13:17:32 +00:00
Martin Poirier
11fe49227b Proper fix for Ton's commit.
Original commit message:
"Cosmetic change (after bugreport), scaling in axis (press X,Y,Z) now prints in header "local" too, this to indicate it only does local scales."

The solution was half good, since only object mode is restricted to local axis constraints. Fixed by checking for the Local flag (which was properly set).
2004-11-10 21:27:54 +00:00
Ton Roosendaal
41f842a484 Added undo pushes for;
- NLA window
- Action Window
- all databrowse buttons (assign, unlink, single user)
2004-11-10 18:36:50 +00:00
Ton Roosendaal
4b6f66fa54 Cosmetic change (after bugreport), scaling in axis (press X,Y,Z) now prints
in header "local" too, this to indicate it only does local scales.

In editmesh: added NULL pointer in return of function to prevent crash
on error "give quad verts"
2004-11-10 16:23:05 +00:00
Ton Roosendaal
f7cc0cf342 Wrong vector math for hooks with falloff... now its OK! 2004-11-10 15:55:07 +00:00
Ton Roosendaal
6ea962923a GamePlayer seems to be forced to quit pressing "end key".
The code to check for it was very weak... causing apple key to quit it too.
2004-11-10 15:04:13 +00:00
Jiri Hnidek
48121a0b6a - fix for bug #1577
MetaElems aren't truncated. It was caused by bad filling of octal tree.

- bug fix: when non basis mball is in edit mode, then it is polygonised again.

- bug fix: fixed some other unexpected disappearing of MetaBalls caused by bad filling of octal tree.
2004-11-10 13:20:13 +00:00
Ton Roosendaal
46326b62b5 1) Fix for bugs #1735 #1759
Rotate edges was unfinished still, and not supposed to work on large
selections. Code cleaned up some, and restricted to work on a single
selected edge, or two adjacent selected faces.
Also changed menu description, and give error() on wrong selection.

2) Fix for undo mixup in texteditor
Global hotkey list now passes on ctrl+z (global undo) to local queue
in textwindow. (Also for ctrl+y). Scriptwindow also doesn't accept
global undo key.
2004-11-10 11:14:11 +00:00
Ton Roosendaal
a534361b3e More small changes;
- Added "Add Hook" menu in mesh editmode pulldown (Vertices) and toolbox
- Small tweak in editmode undo, tighten rules for what to do inbetween
  editmode sessions. (use same stack when object names identical)
- Added correct redraw events for CTRL+C CTRL+V (r g b sliders for example)
2004-11-09 23:05:06 +00:00
Martin Poirier
422127e1ca Made numerical input work for extrude along normals (Bug #1762)
Gosh, I hate working with the old transform (of course, all those hackish fix are not making it any better, mind you).
2004-11-09 22:47:47 +00:00
Ton Roosendaal
a4c582d9c5 Cosmetic stuff;
- pulldown button for textwindow header OK
- color picker had no correct border around it
- border around 'game framing' and 'edge settings' smaller now
2004-11-09 15:59:15 +00:00
Willian Padovani Germano
c16e5dad1c BPython:
- Small doc update in a script;
- Fixed bug #1742:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=1742&group_id=9

It was an internal error in bpython.  I was using G.main->script.last to find the currently running (if any) script, but this isn't reliable, we must check each open script to find out if one of them has the SCRIPT_RUNNING bitflag set.

Thanks intrr for reporting and blendix for pointing how to reproduce the bug.  From my tests it should be working fine now.
2004-11-09 14:07:25 +00:00
Ton Roosendaal
1197c4842a Forgot that me->mface is void pointer (bad!)... fix found by Nathan. thnx! 2004-11-09 12:16:00 +00:00
Ton Roosendaal
d95072d68e Bug fix #1758
Using ImageSelect window for background pic in 3d window, assigned it to
wrong window... this because the image-select window wasn't pushed before
it used the callback to set the image.
2004-11-09 11:06:56 +00:00
Nathan Letwory
02314210ac update msvc7 projectfile for bfont.ttf.c 2004-11-09 08:46:19 +00:00
Ton Roosendaal
7777fa9ae2 - Bug located in outliner (missing break) by sgefant, thnx!
- On click on camera object in outliner, world buttons didnt display always

Plus; commented out the calls to select items with rightmouse. This is too
much WIP for official release, too much not working, and Matt prefers time
to further work on it as well.
2004-11-08 23:31:01 +00:00
Ton Roosendaal
b00b82ca73 Fix for #1749
In solid drawmode, objects with wires didn't show nor were selectable
2004-11-08 22:25:34 +00:00
Jens Ole Wund
66faf81099 Msvc6 complies again with
bfont.ttf.c :)
2004-11-08 22:14:47 +00:00
Ton Roosendaal
78551a575e Sorry sorry... new feature while in freeze mode, bad bad bad!
But this was promised on conference, and have to keep that promise. :)

Buttons in Blender now allow copy/paste values and strings. Also works
for object names!
Mouse over button and press CTRL+C or CTRL+V for copy/paste
(Macs can do Apple key)

Plus bugfix: name button for object in Nkey panel didn't check name
2004-11-08 22:10:20 +00:00
Ton Roosendaal
4a20c3d03d Nmesh module isn't edges aware yet; but can cause crashes replacing
existing ones that use edges (like when creases or fgons in use).

Added proper free and NULL for it to prevent crashing, rest is for py
team after release ;)
2004-11-08 19:58:04 +00:00
Ton Roosendaal
c20b7adec6 Removed silly "==0" to check if "apply deform" should happen.
I'm just binary flipped...
2004-11-08 19:20:59 +00:00
Ton Roosendaal
0eb05b9d25 Three cosmetic fixes;
- Mesh editmode, draw 'bleeding edges' works again for subsurf (not optimal)
- New draw method (again!) for armature-add-bone loop. Should work now! Is
  also nice for cpu this version
- Draw screen edges (black lines inbetween windows) should not draw leftmost
2004-11-08 18:39:09 +00:00
Ton Roosendaal
72fd0789a4 Casting added for unsigned/signed char weirdness in ftgl... 2004-11-08 17:09:16 +00:00
Ton Roosendaal
e3a25e4765 Added update for picker fields themselves, when click in 'swatches'
(palette)
2004-11-08 16:23:46 +00:00
Ton Roosendaal
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
Kester Maddock
5bba5035b0 Fix for MSVC (thanks Simon) 2004-11-08 11:30:41 +00:00
Ton Roosendaal
7f61882413 Typo in path searching for ttf fonts... needed a trailing "/" 2004-11-08 11:15:31 +00:00
Alfredo de Greef
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
Jean-Luc Peurière
8daff51e0f skip process serial number argument on os X
needed when starting player via drag & drop
2004-11-07 22:21:47 +00:00
Jean-Luc Peurière
ee607bdf78 dont start maximised for small comps with 16 Mo VRAM. 2004-11-07 21:55:13 +00:00
Jean-Luc Peurière
70c576ab37 added correct new defaults for building solid.
We used previously the precompiled lib
2004-11-07 21:34:17 +00:00
Ton Roosendaal
fcd0a3f9d2 Undo for lattice editmode added. 2004-11-07 21:14:21 +00:00
Ton Roosendaal
b6e037049b Forgot to add correct changed force_draw_all in stubs.c 2004-11-07 20:15:16 +00:00
Ton Roosendaal
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
Ton Roosendaal
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
Martin Poirier
1695173688 Some additions to the docs for my scripts. 2004-11-07 18:03:18 +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
Ton Roosendaal
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
Willian Padovani Germano
c702b237d5 Scripts:
-- adding help_browser.py to show help for installed scripts;
-- updated scripts to include basic doc info to be shown with above script:
    script authors can / will / should update with more info, of course;
-- updated some scripts to newer versions: disp_paint, fixfromarmature, hotkeys, etc.
2004-11-07 16:31:13 +00:00
Jens Ole Wund
23e8b98228 fix bug #1546
ghost was unaware of extra *<>* key on german keyboards on windows
2004-11-07 16:30:19 +00:00
Willian Padovani Germano
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
Alejandro Conty Estevez
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
Brecht Van Lommel
88534ee519 Added some missing undo pushes for the UV editor and UV Face Select Mode. 2004-11-07 13:15:04 +00:00
Ton Roosendaal
e6060589ec Global undo now saves/loads unused data as well. 2004-11-07 10:15:06 +00:00
Ton Roosendaal
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
Ton Roosendaal
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