Commit Graph

3982 Commits

Author SHA1 Message Date
Ton Roosendaal
b33536cdaa Two little issues for Timeline window;
- Using Arrowkeys to change frames didn't give proper redraw
- Option "Record" now tied to the User-preset "Auto key insert". It is
  no user preset anymore even, I thought to leave a button in the User-
  presets for the time being though...
2005-05-05 18:31:39 +00:00
Ton Roosendaal
2b0f00d4bd Button image changed for new space type. Had to move some icons away... 2005-05-05 17:20:13 +00:00
Ton Roosendaal
f0a4ce98f9 Added the new Timeline Window, copied from Tuhopuu, coded by Matt Ebb.
Main change is that it's an own Space type now, not part of the Audio
window... the audio window should restrict to own options. This way
functionality is nicely separated.

Since it's the first time I added a new space (since long!) I've made an
extensive tutorial as well. You can find that here:
http://www.blender3d.org/cms/Adding_new_Space_Window.557.0.html

Notes for using timewindow;

- Add time markers with MKey
- CTRL+M gives option to name Marker
- Markers cannot be moved yet...
- Pageup-Pagedown keys moves current frame to next-prev Marker
- Xkey removes Markers

- If an object has Ipos or an Action, it draws key lines
- CTRL+Pageup-Pagedown moves current frame to next-prev Key

- Press S or E to set start/end frame for playback

Notes about the implementation in Tuhopuu:

- Add new Marker now selects new, deselects others
- Selecting Marker didn't work like elsewhere in Blender, on click it
  should deselect all, except the indicated Marker. Not when holding SHIFT
  of course
- Not exported functions are static now
- Removed unused defines (MARKER_NONE NEXT_AVAIL)
- Drawing order was confusing, doing too many matrix calls
- Removed not needed scrollbar, added new function to draw time values.
  (Has advantage the MMB scroll works not confusing on a scrollbar)
- Added proper support for 'frame mapping'
- The string button (name Marker) had a bug (checked str[64] while str
  was only 64 long)
- String button itself didn't allow "OK on enter"
- Made frame buttons in header larger, the arrows overlapped
- Removed support for negative frame values, that won't work so simple!
2005-05-05 17:19:21 +00:00
Joilnen Leite
22f65bce76 erased headers dirent.h and unistd.h
.
2005-05-05 05:55:29 +00:00
Stephen Swaney
2f0cf8cf73 print a msg about which Python version we are using
before the evil "'import site' failed" msg appears.
2005-05-05 04:46:06 +00:00
Joilnen Leite
3469a99f75 added Font.c
.
2005-05-04 23:18:10 +00:00
Joilnen Leite
fac824df40 export function to Text3d use 2005-05-04 22:52:14 +00:00
Joilnen Leite
273ec4fb26 added load font support to Text3d submodule
.
2005-05-04 21:31:51 +00:00
Joilnen Leite
028aae8417 define BPy_Font
.
2005-05-04 21:28:16 +00:00
Joilnen Leite
cc008dbc30 it wrapping font stuff like font file info
.
2005-05-04 21:26:29 +00:00
Ton Roosendaal
6db7d23b5f On click-release for Manipulator handles, without moving mouse, it will
stick to transform() until another mouse press (or ESC etc)
2005-05-04 15:13:25 +00:00
Ton Roosendaal
3b2c30dae4 Another big cleanup, thanks to transform recode. Could do this stage
because Martin recoded the Mirror().

- removed old globals like 'tottrans' or 'centre' or 'centroid' as used
  by old transform
- removed a lot of code from editobject.c
- moved all transform related code to transform_conversions.c
  (Note for Martin; sorry that's a mess... it now has all the weird
   functions for finding posemode dependencies... thats for the depgraph
   phase to remove)
2005-05-04 12:53:35 +00:00
Ton Roosendaal
4664431d76 Removed redundant ghostwindow->commandqual veriable, which caused to hang
on using Apple command keys. For example; starting a TextEdit from the
Dock, Command+Q, caused Blender to treat all LMB events as a RMB.

The commandqual variable was replaced with normal 'qualifier' key already
long ago, should have been removed back then.
2005-05-04 08:46:14 +00:00
Martin Poirier
e05e85523f Mirror function reuses new Transform (basicly calls the split off ElementResize function on the data).
Updated the menus to work with that too.

Of course, this doesn't work in object mode right now, because resize I haven't fixed negative resize (yet).

Again, this would have easily benefited of a stand alone init and post Transform functions. When I have time... :|
2005-05-04 00:37:11 +00:00
Ton Roosendaal
a1f70b516e Bugfix #2506
Sky type "Paper" didn't give proper dx/dy texture frequencey in OSA render.
Remainder of render recoding of last january.
2005-05-03 11:45:05 +00:00
Ton Roosendaal
f2f45d563d Removed old NO_FROZEN hack 2005-05-03 11:05:00 +00:00
Ton Roosendaal
f51b6996d1 Latest button image. Note: this is a png 24 bits 2005-05-03 10:55:03 +00:00
Ton Roosendaal
422b69fe1e UI cleanup work;
Proportional edit:

- Proportional mode added to header as button/menu. Including new option
  to have only connected geometry influenced.
- Added icons for proportional & proportional modes
- Make proportional edit data part of Scene, so all gets saved.
  The Global flag G_PROPORTIONAL was removed
- Made sure #defines get used properly, also tweaked order for proportional
  so it starts with regular 'smooth' by default.
- Use ALT+O in editmode to switch to new proportional 'connected' mode

Other UI stuff:

- in EditMode, the layer buttons get hidden... the amount of icons in
  3d header grows to fast. :)
- made less ugly icons for the Manipulators. Still can be better.
- Added alpha-filter for pre-processing Icon-image, giving nicer display
  of icon-antialising on dark or bright backdrops
- disabled Manipulators when in editmode, and current layers don't show
  the edited data.
- Added the value used to define Normal size (editmode draw) in Scene too,
  so it gets saved.
2005-05-03 10:54:42 +00:00
Ton Roosendaal
cdca939c2c Removed linewidth 2 from constraintlines 2005-05-02 19:47:50 +00:00
Ton Roosendaal
9eb5eee92e Bug fix #2507
While doing a viewmove/rotate, the queue was not emptied nor read...
so after a while the entire queue gets full, not registering a modifier
key-release anymore. Fixed :)

Reported error confirmed in windows and OSX.
2005-05-02 18:47:00 +00:00
Jens Ole Wund
6d99044373 added DNA_object_force.h to DNA_makesdna project
to make it look nicer in MSVC6
2005-05-02 18:16:19 +00:00
Ton Roosendaal
42126cb5fc Added baking for softbodies.
Works as follows;
- press the 'show bake settings' button (no space left... :)
- define start/end frame for bake, and an interval step.
  The baked result interpolates nicely (Bspline, 4 keys) so in general a
  step size of 2 or 3 still gives OK results.
- Press "BAKE". This will do a full animation + playback. Press ESC if it
  you don't want it.

Once Baked, the BAKE button becomes a FREE BAKE. As reminder the softbody
buttons get blocked with error() menu.

This saves OK in a file. Renders any frame, including fields and moblur.
You can also set a "Timeoffs" for the softbody. And yes, this should be
in the NLA once... :)

NOTE! With this commit, files saved with the old (first commit) version by
Jens Ole won't read the settings back... he stored all sofbody variables in
Object, which was moved to a new struct when I did my first commit on SB
(over a month ago)

Also note that I moved particle deflecting & softbody to a new include.
2005-05-02 13:28:13 +00:00
Ton Roosendaal
2606a5c5d3 Removed DerivedMesh and DispList creation from countall().
Apart from the not very structured way countall() is called, it should not
make displists then, since the order of calculations then get spoiled.
2005-05-02 12:16:18 +00:00
Martin Poirier
61f2736ec3 Local axis constraint external call. Had to do it in a very hackish way which highlight a design problem in the code. To solve it (and would solve other problems too), we'd have to split off the initialisation function. Not terribly hard to do but I'm overwhelmed with work...
Push/Pull had a problem with constraints enabling/disabling. Fixed

Restablished infinite line for constraint draw (when not using manipulator) as discussed in meeting.
2005-05-02 02:18:13 +00:00
Jens Ole Wund
01a053f989 put depsgraph_private.h to BKE_blenkernel.dsp /include files
looks 'claener' to me
2005-05-01 21:40:24 +00:00
Ton Roosendaal
8c1d95abc7 Error in combo of Spothalo + normal halo over sky, with OSA + gammacorrected
adding. :)

Missing gamma correction...
2005-05-01 17:11:48 +00:00
Stephen Swaney
a6bb0b7f79 fix 'no newline at end of file' warnings 2005-04-30 23:29:10 +00:00
Stephen Swaney
a21fd1571b changed empty #elif to #else 2005-04-30 23:24:48 +00:00
Jens Ole Wund
2577c4e915 Updated MSVC6 projects to handle depgraph (added some files)
fixed some *includes*
with
#ifdef WIN32
#elif
#include <sys/time.h>
#endif
looks like MSVC6 does not need that include .. donno if cygwin builds will
so thats why i kept that *ifdef overhead*
2005-04-30 22:52:00 +00:00
Ton Roosendaal
79e333343b Dependency graph patch, provided by Jean-Luc Peuriere.
Works like a charm... well it now replaces the old base-sorting hack. :)
Next stage will be to define how to further integrate it. Plus some
minor code cleanups... static/internal functions versus external, etc.
2005-04-30 21:27:05 +00:00
Ton Roosendaal
42ae9128fa Removal of old transform() <sob> part one.
- added in new transform the (not so useful but yah) old feature that
  does scrollwheel zoom during transform
- had to change transform call arguments for uv-window/sequence/oops to
  match new transform for mouse callback

TODO (for martin?)

- pulldown menu support to call with local axes compliant as for pressing
  it with hotkey
- mirrormenu() still uses old transform stuff...
2005-04-30 21:19:19 +00:00
Chris Want
413677caff Moved sinclude for user-def.mk 2005-04-30 21:06:54 +00:00
Ton Roosendaal
e46c8b8ad6 Error in the clipping plane for drawing rotate-widget.
On zoom out or zoom in, this clipping went more narrow or wider... should
be fixed.
2005-04-30 20:18:46 +00:00
Stephen Swaney
9aadcfc2c4 New methods for Image module:
.getPixel( x, y ) returns float list of [r, g, b, a] for pixel
.getMaxXY()  returns image size as float list [x, y]

Contributed by Austin Benesh (mchs3d).  Thanks!

also ran code thru indent.
2005-04-30 19:30:35 +00:00
Chris Want
ec52d4a0d3 Allow make to find user-def.mk even when compiling in subdirectories
using the 'mke' trick.
2005-04-30 17:33:20 +00:00
Chris Want
194ded1263 Weird, make on OS X needs an 'export' for CPPFLAGS to make value
persist when building subdirectories. I wonder why other platforms
don't need this?

Fixes the openal unresolved symbol issue with NAN_NO_KETSJI.
2005-04-30 17:28:38 +00:00
Ton Roosendaal
26d1346b79 Bug #2497
The CTRL+LeftMouse Lasso option was accidentally also invoked in Image
Window. Wasn't supposed to work anywhere but in 3d window.
2005-04-30 11:29:05 +00:00
Ton Roosendaal
ea3f579482 - file sizes > 4 GB were not correctly displayed in the file window. It
still was using int for calculus... made it using 64 bits ints.

- The "disk free" indicator in the header didn't work for OSX, due to
  a missing #ifdef __APPLE_
2005-04-30 09:57:35 +00:00
Ton Roosendaal
feca8c4644 Manipulator with "normal alignment" now aligns to edges too (if no faces
selected) and to vertex normals. Only issue is that vertexnormals are not
updated on each editing command (it's a bit too much overhead...) so use
a TAB+TAB for now to enforce proper vertexnormals.
2005-04-30 09:55:37 +00:00
Ton Roosendaal
a62b0309bf Uncommitted fix in NAN_NO_KETSJI compile, which seems to work only for
Makefile usage... the linking error might be makefile related then.
2005-04-30 09:17:10 +00:00
Ton Roosendaal
b7a927cc95 More stats-junk stuff!
Added in Nkey panel (transform properties) option to show in editmode
at choice the global or local coordinate values.
Same option works for the "Tech draw" options. :)
2005-04-29 18:43:17 +00:00
Ton Roosendaal
cc44c12b9f Compile with NAN_NO_KETSJI kept giving me errors with OpenAL.
undefined reference to SND_OpenALDevice::SND_OpenALDevice

I hacked c++ code in the dummy function wich worked! Now test it! :)
2005-04-29 17:36:30 +00:00
Ton Roosendaal
c812d2ac20 Two fixes in one commit.
- The ortho render recode had a weak method to calculate the Z value of the
  render coordinate (shi.co[2]). Worked OK for normal render, but not in
  unified, giving big errors in Ortho Unfied render.
  Solved with proper math, using face equation a*x+b*y+c*y=d. Dunno why I
  didn't do it in first place. :)

- Bug fix #2493. Edge render gave much different result for Ortho. This
  was due to overflows in the integer math filtering zbuffer values.
  Cleaned it op properly, preventing any integer overflow now.
2005-04-29 08:18:41 +00:00
Ton Roosendaal
1eadd455b2 Additional fix for malloc/MEM_mallocN issues in files code. Previous patch
left out a couple of strings, causing MEM_freeN() errors.

Patch provided by Anrea Weikert
2005-04-28 19:29:54 +00:00
Ton Roosendaal
6fd281c14d Made "Centre" in mesh editmode listen to the "Around" setting, so it can
now use centroid as well (instead of only bounbox-centre)
It doesn't do "cursor" though... it's centering for object center, right?
2005-04-28 18:46:35 +00:00
Ton Roosendaal
7e85b26750 Made circle select listen to the event queue nicely, so it doesn't keep
selecting after releasing a mouse button.
2005-04-28 17:53:14 +00:00
Ton Roosendaal
8b99bfb173 Added menu in header for orientation of manipulator widgets.
Also slightly tweaked threshold for drawing text in menu buttons. The text
was clipped just too quick.
2005-04-28 17:04:08 +00:00
Ton Roosendaal
73f88ae286 To please the stats-junkies: the "tech stat" drawing now displays all
values that change during transform().
For the rest drawing sticks to actual selection, making the view quite
less cluttered. Hope this gets approval. :)
2005-04-28 15:41:09 +00:00
Stephen Swaney
c0f129d0be Add bracket matching to text editor.
#2437 from the Patch Tracker.
Contributed by Ricki Myers (themyers).  Thanks!

Highlight color is set in UserPref theme colors.
2005-04-28 15:41:06 +00:00
Ton Roosendaal
ac1cccdf59 Added idling with BIF_wait_for_statechange() in loop doing 'screen edge'
moving. Might fix issue reported by Campbell Barton, on low performance.
2005-04-28 14:41:43 +00:00