Commit Graph

49420 Commits

Author SHA1 Message Date
Ton Roosendaal
a153a7616b - two more panels for material buttons. work in progress.... 2003-10-11 14:12:14 +00:00
Ton Roosendaal
b8be7337f0 - small fix, number buttons strings were cut off like sliders... 2003-10-11 11:28:24 +00:00
Ton Roosendaal
f437176ac2 - improved drawing of slider button
- strings for slider button are cut off correctly
2003-10-11 10:57:38 +00:00
Ton Roosendaal
7913a4a009 - added method to have a preview render in panel
- increased size of preview from 100 to 125 pix :)
- put back header buttons for databrowse, but they need to move to
  buttonswindow itself
2003-10-11 00:21:05 +00:00
Roel Spruit
e799e39e7f - Added all the stuff of the last week to the MSVC 6.0 project file.
- Added include BIF_gl.h to  header_imasel.c (I think it needs that :)
2003-10-10 23:20:01 +00:00
Ton Roosendaal
c957bba8ab - fixed bug in aligning different sized panels vertically 2003-10-10 21:14:49 +00:00
Ton Roosendaal
c536fe934f - another fix, now for unix systems with 'sloppy focus'.
the mainwindow is set active again after rendering, without
  destroying the (optional) dispview image
2003-10-10 20:50:21 +00:00
Ton Roosendaal
de5566313c - fixed error in making main window active again after rendering, it didnt
work...
2003-10-10 20:15:11 +00:00
Ton Roosendaal
ee70acd287 - small little unitialized variable error... 2003-10-10 17:47:54 +00:00
Ton Roosendaal
0d03929b9b Another huge commit!!!
First, check on the new files, which are listed below.
The new butspace.h is a local include, only to be used for the buttons
drawn in the buttonswindow.

- editbuts, animbuts, gamebuts, displaybuts, paintbuts,  work now
- i quite completely reorganized it, it's now nicely telling you what
  context it is in
- sorting error in panel align fixed (tabs were flipping)
- align works correctly automatic when you click around in Blender
- editsca.c renamed to buttons_logic.h
- button names are truncated from the right for allmost all buttons
  (except text buttons and number buttons)
- while dragging panels, you cannot move them outside window anymore

And of course fixed loads of little bugs I encountered while testing
it all. This is a version I really need good test & feedback for.

Next step: restoring material/lamp/texture/world
2003-10-10 17:29:01 +00:00
Ton Roosendaal
952cd8260e - adapted startsize for osx version to match powerbook (768 high)
- add patch in prevsize routine (editscreen.c) to subtract apple
  top header, this allows 'fullscreen' with windowbar behind topbar.
2003-10-10 13:36:38 +00:00
Willian Padovani Germano
a044f0bb2e Splitting source/blender/src/headerbuttons.c in smaller header_***.c files.
The original headerbuttons.c is for now kept as headerbuttons.txt

The included .h files were updated to only include needed ones in each file.

Makefile.am (for the autotools build) was updated.  Didn't test with original makefiles.
Other build systems will of course need to be updated.
2003-10-10 03:16:32 +00:00
Ton Roosendaal
6f34249924 - increased default windowsize for OSX a bit, to match better a good
layout. Old size was 800x600, just not too nice
  New size is 900x768. this default small size is for older macs that
  dont allow full size 32 bits opengl windows... silly er! :)
2003-10-09 12:20:14 +00:00
Ton Roosendaal
416b110f90 - brought back hilites in buttons when mouse-over
- automatic pulldown opening can now be controlled ( user setting?)
  it has two thresholds:
  - when no menu was opened before, it waits A milliseconds
  - when (in the same block a menu was opened, it waits B millisec.
  Currently A= 0.4 sec, B= 0.1 (or so)
- 3d window header; brought back old drawtype menu (test, compare!)
- another test: the old menubutton doesnt work anymore with hold-mouse
  only, you can also use it as the other popups (old method still works)
- proposal; all buttons that pop up a block, get special drawtype (arrows)
2003-10-07 22:55:16 +00:00
Ton Roosendaal
e889b375bd - forgot one event code in render...
- fixed the () in the && || code, typo... <blush>
2003-10-07 19:21:37 +00:00
Ton Roosendaal
dcf9213a48 - if( a || b && c) is (a || (b && c))
and not the other way! thats what you get with cleaning warnings. :)
2003-10-07 18:42:37 +00:00
Ton Roosendaal
f234b44d47 - another huge commit! read this!
- removed src/buttons.c and include/BIF_buttons.h
- added src/buttons.txt, which is the old buttons.c for review and adding
  code to new panels structure

- changed internal events to match new buttonspace structure
- added tabs for new shading group of buttons
- removed loads of little warnings, -Wall now compiles src/ almost without
  error (hint: setenv NAN_QUIET to see it all better)

Now I'm ready to do actual buttons -> panels conversion. I will do the raw
versions first, others then can cleanup
2003-10-07 18:24:02 +00:00
Ton Roosendaal
39b1ceb669 - changed header from buttonwindow into new type
- changed meaning of F4-F10 keys (as compatible as possible, but we need
  something!) check UI design doc for proposal
- made new call for switching direction of buttons in Y, for when pulldown
  moves direction
- cleaned up all redundant manual switching code from headerbuttons.c
2003-10-07 12:49:39 +00:00
Ton Roosendaal
c2af7afe58 - removed debug variable from 'automatic check of view2d'... so now it
keeps zooming within limits by default
2003-10-07 11:24:48 +00:00
Ton Roosendaal
ab935a5a7d - at designer request: move closed button of panel to the left. 2003-10-06 22:17:57 +00:00
Ton Roosendaal
2045428809 - fixed bugs with Panel.. when you merge them while they had tabs,
some calculations went wrong.
2003-10-06 21:53:03 +00:00
Ton Roosendaal
a14059c5f3 - fixed error (OSX only i think) that didnt make window/area active when
startup
- made nexted pulldowns easier to enter with diagonal mousemovement.
  coded a heuristic like:
  - while mouse moves in good x direction
  - while mouse motion x is bigger than y motion
  - while distance to center block diminishes
  - only for 1 second
  Works nice, but i left debug prints commented in for those who'd like
  to tweak it.
2003-10-06 14:16:31 +00:00
Ton Roosendaal
d5dbaf726a - pulldowns and 'BLOCK' buttons now open automatic, when mouseover
without moving for 0.25 second. Also works for sublevels in pulldowns.
- removed hacks from mainloop, which caused setting the main window and
  active subwindow for each event (including mousemove).
  WARN: test for all OS's that no events get lost, and active window focus
  is OK. For OSX it works nicely
- reduced load for uibuttons with 50%....
2003-10-06 10:33:01 +00:00
Ton Roosendaal
5ebb3aa7ff - fixed more menu colors
- left in patch for sgi, seems to work there....
  would like some reports from nvidia windows users though
2003-10-05 21:00:01 +00:00
Ton Roosendaal
bc22c485c7 - testing commit for drawing error sgi 2003-10-05 20:35:30 +00:00
Ton Roosendaal
a082b8e1b0 - fixed some of the weird placement of buttons when changing window size
- home key buttonswin had error
- fixed bug: split area with tabbed panels didnt work correct
2003-10-05 20:17:37 +00:00
Hans Lambermont
1bbf616b59 Finally add spike's FreeBSD suggestions. Tnxto Chris for forwarding. 2003-10-05 19:37:16 +00:00
Roel Spruit
d9ec78a895 SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY SILLY.
People in blendercoders seem to think they need to pay attention to rigid, conservative users.....ok...so I moved the selection-> center snap in the shift-s menu to place number 5....sigh
2003-10-05 15:28:44 +00:00
Ton Roosendaal
336afad8d6 - added little original feature to panels: TABS! :)
while dragging you can merge panels, or while dragging on a tab you
  can unmerge them.
2003-10-05 13:19:08 +00:00
Michel Selten
e33e4addeb Referenced a wrong variable. Stupid typo. 2003-10-05 11:23:49 +00:00
Michel Selten
d626f03962 * Made internals of the Python Object module more consistent with other
modules.
* .setLocation(), .setDeltaLocation() and .setEuler() now can accept 3 floats
  or a list of 3 floats.
  This finally makes the following possible:
    obj.setLocation (obj.getLocation())
    obj.loc = obj.loc
  Of course this applies to the other functions as well.
2003-10-05 11:17:14 +00:00
Ton Roosendaal
084e5eedd3 - added winstuff.h in new files... oops! 2003-10-04 21:24:32 +00:00
Ton Roosendaal
13b7e74ddb - panels now scroll with page-up and page-down too. 2003-10-04 21:03:57 +00:00
Ton Roosendaal
842bb449c5 huge commit, sorry!
this is part 1 of the UI makeover. It has:
- menu system from Matt integrated
- buttons drawing from Matt
- generic button panel system implemented
- converted displaybuttons (not the rest yet)
- cleaned up a lot in drawing spaces itself, to make it aligned and pixel exact.
- cleaned loads of little compiler warnings, protos...

still a lot of work needed, will all be in next week i hope!

(warn: 2 new c files! butspace.c and buttons_scene.c)
2003-10-04 20:35:50 +00:00
Kent Mein
c355aa06a8 fixed default vars button for texture plugins
http://projects.blender.org/tracker/index.php?func=detail&aid=546&group_id=9&atid=125

Kent
2003-10-02 20:56:09 +00:00
Ton Roosendaal
ae17f63be8 - changed a couple of shorts to ints, to allow images larger than
8192 pixels.
  I dont have a lot of mem here though, so others should test too!
2003-10-02 10:05:57 +00:00
Alexander Ewering
b843c8a0ea "Set Camera to View3d": SHIFT-NUMPAD0 selects the camera like NUMPAD0, and
in addition aligns and positions it so that it exactly "sees" the former
View3d.
2003-09-27 11:10:49 +00:00
Ton Roosendaal
3cf1cacd5d - Bug fixes for radio render (yes, releasing gives more reports!)
1. Rendering with material without radio flag sometimes caused scanline
   errors. The 'rad' value for rendercore loop wasn't reset in all cases
2. The color didn't truely match the color when using 'radio tool'.
   Cleaned up a few old lines in rendercore loop... accidentally one
   calculation was done double.
3. When adding new radiosity block, 'max iterations' is set at 120. this
   prevents noobies/experiment from going into radio-solving with a long
   itteration time (it exits at convergence < 0.1)
2003-09-27 09:38:09 +00:00
Alexander Ewering
0dce5a6fbe Fixed a bug that prevented volume envelopes from being applied to the
Mixdown WAV. Thanks dittohead for the report!
2003-09-24 22:34:13 +00:00
Alexander Ewering
8fdb574e83 Bugfix: The renderloop has a few problems concerning abortion with the ESC
key, among which is a crash related to lensflares rendering even though no
render buffer exists (after pressing ESC). Fixed this one. Be sure there
are more! :)
2003-09-24 21:21:29 +00:00
Ton Roosendaal
d2b8f49675 - splashcreen for 2.28c 2003-09-24 12:30:09 +00:00
Ton Roosendaal
8a11c13f30 - hacked new color for this release, named it 2.28a in header. 2003-09-23 22:07:07 +00:00
Ton Roosendaal
a5114211ce - buttons align 1 pixel better!
(also forgot in last commit; this envmap work was mostly from Intrr. :)

cvs: ----------------------------------------------------------------------
2003-09-23 21:45:12 +00:00
Hans Lambermont
482cb5e7a8 FreeBSD-STABLE's python moved from 2.2 to 2.3 2003-09-23 21:12:47 +00:00
Ton Roosendaal
d8955d1b33 - Recursive environment map render
Multiple environments now can be rendered in one pass. Previously the other objects with environment maps didn't show up in a reflection. Like this:
http://www.blender.org/bf/dep.jpg

By default, Blender renders now this result:
http://www.blender.org/bf/dep0.jpg

For a further 'recursive ray-tracing effect' you can give each EnvMap texture a higher "Depth" value. Here is a result with depth set at '2':
http://www.blender.org/bf/dep2.jpg

Related new options:
- in (F10) DisplayButtons, environment map rendering can be turned on and off.
- in EnvMap texture buttons you can free all environment maps
- Environment map sizes are also reduced with the (F10) 'percentage' option.

Tech note: with this commit the VlakRen struct has on *ob pointer!
2003-09-23 21:05:51 +00:00
Willian Padovani Germano
63e7c3e077 Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
2003-09-23 03:02:54 +00:00
Ton Roosendaal
d72fe1af41 - fixed stringlength for plugin path button, max 160 chars now. 2003-09-22 11:44:36 +00:00
Roel Spruit
b5450f0815 added 2 new features:
- "Seperate loose parts" is an option in the new pkey popup (in mesh editmode) that seperates a mesh based on objects in it that are not connected.

- "Select same uv" is an option in the wkey popup (in facemode) that selects all faces in the mesh that have the same uv texture assigned as the current active face.

ps. first commit! I hope I can live up to expectations...but don't expect too much! :D
2003-09-20 20:58:14 +00:00
Willian Padovani Germano
c0303d78b4 Exppython:
- Object: implemented getBoundBox and makeDisplayList methods
- NMesh and Object: small internal changes for nicer behavior
- Draw: added function PupMenu
- Docs: updated for the additions above
Auto build tiny fix: added the imbuf include dir to source/creator/Makefile.am
2003-09-20 03:40:16 +00:00
Rob Haarsma
7a510b7240 added missing #ifdef for quicktime_exit 2003-09-18 12:27:43 +00:00