Commit Graph

49420 Commits

Author SHA1 Message Date
Matt Ebb
7ab1c64c7a Default buttons drawing update
* Big code cleanup and re-organisation, cleaner drawing
* Button alignment now enabled for default theme
* Sliders tweaked and improved
* Tooltip shadow cleaned up

Todo: Alignment looks pretty, but at this stage, what it *means* is not clear or consistent. Need to work out some UI guidelines for when to and when not to use the alignment code.
2003-12-07 06:05:08 +00:00
Martin Poirier
e5ab092f46 Fixed error in Face Normals toolbox. All the menu entries called the function to Recalculate Inside. 2003-12-07 03:44:36 +00:00
Kent Mein
24624501a4 This looks like a lot but its a few small changes.
Summary: standardized imageformat functions(make function names similar, and
parameters in same order where relavant), small code cleanups, and
added a description of how to add an image format to blender.

Kent

Specifics:
merged png_decode.c and png_encode.c to png.c and cleaned function calls.

fixed some spacing in IMB_imbuf_types.h

casting cleanups:
        intern/amiga.c
        intern/ham.c
        intern/iris.c

Modified switch statements to have a default type to insure values are set:
        intern/antialias.c

Initalization of some vars and make types similar.
        intern/bitplanes.c

cleaned function calls, and changed if else to if's with return:
        intern/jpeg.c

added {}'s in multidemensional arrays.
        intern/matrix.h

Made a little cleaner to read, and matched above changes.
        intern/readimage.c
        intern/writeimage.c
2003-12-04 18:18:05 +00:00
Ton Roosendaal
43369f076f - added wire color theme usage for drawing edges in editmode. 2003-12-04 11:37:39 +00:00
Ton Roosendaal
241906b588 - fixed matrix conversion to make rgb -> bw images.
somehow this was mixed up, or forgotten to fix when endian issues were
  solved in the past (1998)...
  To check: red color should be 30% grey, blue 10%. This was switched,
  making B&W images look unnatural.
2003-12-03 16:13:58 +00:00
Ton Roosendaal
50b6f0aa33 - another oldie! Bug 475, which was wrongly categorized by me as OpenGL
error... Jesterking report helped me finding the mistake! We found out
  that pressing F12 while rendering is in progress, crashes...

Hi Yamyam,

I beg you to forgive me! Totally misread the report... the error was only
in pressing F12 *during* rendering, it even restarts a render then. This
happens always, no matter what is being rendered.

I found the code for renderwindow doesn't use queues to store events, like
in the rest of Blender, but immediately executes incoming events. This
means you can even press ZKEY (zoom) or F11 (hide) while rendering.

In CVS I've committed a patch that checks if Blender renders, before
allowing to execute the F12 event. Also now blocked is F3 (!) during render.
The other options (zoom, push window) still work.

-Ton-
2003-12-03 15:44:11 +00:00
Ton Roosendaal
ff03e823ac - fixed ridiculous old bug that didn't allow weightpainting with the
option "Area" in paint buttons set.
  Apparently reevan forgot to check on some old vertexpaint globals
  hanging around, preventing the routine from sampling the backbuffer.

  Now weightpaint works identical to vertexpaint for 'area' or 'no area'.
2003-12-03 15:39:19 +00:00
Ton Roosendaal
5d2546eb14 - fixed vertexpaint and weightpaint, which stopped working because of
previous fix for Transform Panel...
  the convention that 3d window has to leave in 2d ortho mode also applies
  on backbuffer now, which left painting routine confused.
  A single call to persp(PERSP_VIEW) fixes this.
2003-12-02 18:39:32 +00:00
Ton Roosendaal
ee2cfabf13 - new splash for 2.31a.
thanks Matt!
2003-12-02 15:09:35 +00:00
Martin Poirier
29ac120599 Fixed constline camera grab
There's a bug left with local axis constraints, but it's only a minor annoyance and fixing it would take more time that I can give (finals at the U you know...)

Also deleted some vestige of an old feature that was disabled.
2003-12-02 00:19:08 +00:00
Martin Poirier
4930270ea7 Fixed FollowPath flag annoyance 2003-12-02 00:04:38 +00:00
Roel Spruit
ffabbbea8d Nathan Letwory's patch for bug #424 const errors kept MSVC7 projectfiles from compiling. 2003-12-01 15:01:20 +00:00
Roel Spruit
b5e0a7b401 Nathan Letwory's patch for Bug #458 (Fileselect bug) 2003-12-01 14:27:06 +00:00
Ton Roosendaal
e35ed55437 - added fix done for manual designer: when you want to make screenshot with
a pulldown or popup menu in it, press (alt+)ctrl+f3 while the menu is
  visible, ESC, press (alt+)ctrl+f3 again.
  Note the (alt+) is for OSX users only.
2003-12-01 13:13:43 +00:00
Ton Roosendaal
3489a56a32 - fix for reported error in drawing 3d window buttons Panel when you have
VertexPaint or FaceSelect mode on.
  The error was caused by not resetting to 2d buttons matrix after drawing
  the color codes for selection in backbuffer.
2003-12-01 13:01:18 +00:00
Ton Roosendaal
8581a64e8e - bug fix: for OSX using ctrl or alt + f12 didn't render anymore. this is
because some macs eject a cdrom then... ahem!
2003-12-01 11:58:11 +00:00
Ton Roosendaal
99058defd8 - fixed type in printf (radiostity!) 2003-12-01 10:37:37 +00:00
Ton Roosendaal
1bef6829e2 - added initializers for scaling button panels in view3d and ipo...
this was never done because of file read do_versions() did it!
  but creating an ipowin where never was one before showed error.
2003-11-30 22:29:54 +00:00
Ton Roosendaal
5691b4d1db - fix for layer buttons, now button rows type TOGR accept input based at
actual bit value, and not order of creation.
  it is the only location in Blender where this is used... so!
2003-11-30 19:18:08 +00:00
Ton Roosendaal
477c23112a - bug #742
autosmooth (F9) was always on, when material Radio was set... should only
  be done when Radio render was on too.
2003-11-28 21:09:41 +00:00
Ton Roosendaal
8a5ab80621 - ARGH! breaking the cvs tag for 2.31... but this a true crash which should
have been fixed now we know it.

  pressing CTRL+1,2,3,4 was meant to set subdivision levels, but it read
  the active pointer without it checking for NULL... tsk!
2003-11-28 20:45:11 +00:00
Ton Roosendaal
1edc595904 - last minute crash, reported by aphex' testing:
when removing header from buttons window, the previewrender didnt show
  or crashes.
  was caused by relying to an evil global pointer 'lockpoin' which was only
  set in headerbuttons...
2003-11-27 23:41:54 +00:00
Ton Roosendaal
26ffe6ef93 - while i am committing: small button aligning arror for 'separate textures'
in F5 menu.
2003-11-27 23:34:52 +00:00
Ton Roosendaal
087dda2d64 - forgot a define... 2003-11-27 10:22:13 +00:00
Matt Ebb
e3c2f364ad 2.31 splash screen 2003-11-27 02:14:47 +00:00
Ton Roosendaal
32f499ea3f - turned the decimator (F9) button into a normal number button. the slider
was too small to display the number in it (amount of vertices). Also the
  range can be too large to make the slider display useful info.
  direct reason: mesh with 1 vertex made the slider draw corrupt.
2003-11-26 22:14:51 +00:00
Ton Roosendaal
b25a9dc8a3 - bug fix #732
when you set halo, and star, then disable halo, the texface flag was set.
  this is because both values use the same bit in the flag <blush>

  solved by clearing the 'star' flag when you disable halo.
  Not perfect, but at least it looks OK. :)
2003-11-26 21:54:33 +00:00
Ton Roosendaal
56ad2b9705 - minor change in .b.blend, to make sure a small blender start window
(tested 700 and 800 pix high) also displays all buttons in first screen.
2003-11-26 21:19:22 +00:00
Ton Roosendaal
7346d9803f - changed wording of three menu items in theme menu, to match the window-
type pulldown in all headers
2003-11-26 21:13:41 +00:00
Ton Roosendaal
6210905316 - new .b.blend
- no start 4 split anymore, split 3d win in 3rd screen instead
  - print of name active object in 3d window
  - added a theme in the file, for manual demo
  - no scrub/sync set
  - removed text files
  - auto save on (per 5 minutes)
  - no standard osa rendering
  - and i might have forgotten some
All for getting a manual compatible version. but the 4 split in start for
2.30 release caused quite some annoyed reactions.
2003-11-26 17:48:31 +00:00
Michel Selten
4a3e78fcda Updated Python documentation for the Texture module. Done by Alex. 2003-11-26 17:35:29 +00:00
Ton Roosendaal
a017e08d60 - version upped to 2.31 2003-11-26 17:33:51 +00:00
Michel Selten
d14e86564d When no text file is open in the text editor, ALT-O did not work.
Fixed it.
We really should look at the entire event system there for the key selections.
Can be cleaned up a bit - not important right now.
2003-11-25 21:38:37 +00:00
Kent Mein
9bcf2dcd1c Douglas Bischoff's Fix for Plugins on OSX.
Kent
2003-11-25 20:10:06 +00:00
Ton Roosendaal
efa0a97dfb - removed an old optimization line from code, which caused stenciling
with multiple bump-mapping channels not to work
2003-11-25 18:45:05 +00:00
Ton Roosendaal
595e0e51fd - forgot to do this... belongs to commit with text:
bug fix: in background render, the default builtin font was not
  activated for rendering when other fonts were packed too.
2003-11-25 18:14:00 +00:00
Ton Roosendaal
af12043677 - bug fix: blender didn't rename temp save file to quit.blend at quit.
also reported on linux...
2003-11-25 17:36:37 +00:00
Ton Roosendaal
4501069c27 - the weird OB and ME buttons in 2nd Panel in MaterialButtons didnt work
properly. Also the "1 Mat 1" buttons didnt display in all situations.
2003-11-25 16:48:55 +00:00
Kent Mein
5f0704c4f5 Added 2 tooltips and fixed the tooltips for stucci Wall In/Wall Out
Kent
2003-11-25 15:29:20 +00:00
Ton Roosendaal
e0c13fcb44 - moved do_versions stuff for 2.30 release, to also check 2.30 files.
this is safe initialization only.
  based at report from madprof.. he had a 2.30 file without this
  data correctly initialized... but how it happens? tuhopuu files?

  anyhoo, we might think of splitting do_versions in 2 parts:
  1. do_versions initialization of old variables that changed
     like physics properties that need to be scaled or so
  2. do_init for newly created variables that are not allowed to be zero,
     this can safely be done for each file
2003-11-25 13:44:46 +00:00
Martin Poirier
4b2e1c3245 Fixed typing mode in resize to allow scaling to 0.0 2003-11-24 23:18:24 +00:00
Willian Padovani Germano
856e33cefc BPython: small update to Types.c and the docs, to finish welcoming the new modules. 2003-11-24 03:47:49 +00:00
Ton Roosendaal
8307f2f5fe - bug fix: in background render, the default builtin font was not
activated for rendering when other fonts were packed too.
2003-11-23 23:51:18 +00:00
Ton Roosendaal
a2387c352b - bug fix: colorband color sliders didnt update the colorband
- bug fix: enter editmode from faceselect correctly selects vertices
2003-11-23 23:33:19 +00:00
Ton Roosendaal
4cd72d69c1 - ALT+N in new texteditor (no text block) will add new text now. 2003-11-23 21:31:35 +00:00
Jacques Guignot
5a5ab62336 Fixed two minor warnings 2003-11-23 21:25:55 +00:00
Martin Poirier
d3563d23b7 No line for constraint without target
Code notes:

The constraint_has_target can be used to test if a constraint has a target at all.
2003-11-23 20:28:35 +00:00
Joseph Gilbert
18e5674ad7 - performance upgrade with the vgroup methods 2003-11-23 19:18:04 +00:00
Ton Roosendaal
fb36f4c944 - fixed glrects and emboss for constraint drawing again...
there's somewhere something hanging in this code... a weird difference
  in how buttons draw and rect draws?
2003-11-23 19:11:04 +00:00
Willian Padovani Germano
e33b297a41 BPython:
-- Blender.Texture doc file, also by Alex Mole.

Three commits where one was enough! I feel stupid!
2003-11-23 17:58:26 +00:00