Commit Graph

66005 Commits

Author SHA1 Message Date
Chris Want 307586f03f EXPYTHON in now the only python for the Makefiles build. 2003-07-12 00:46:43 +00:00
Simon Clitherow 70ee786960 - removed exppython project (which is now the new BPY_python project!) 2003-07-11 20:18:47 +00:00
Simon Clitherow 557040d8b1 - removed old freeze and python projects, exppython now compiles by
default. (MSVC 6)
2003-07-11 20:10:24 +00:00
Ton Roosendaal 60dddf84ab * selecting objects has a different frontbuffer drawing handling now.
instead of drawing everything again, in all windows, it restricts to
  the active and previous active object. when there are more objects to
  be redrawn, it does a normal swapbuffers.
  Result is it all redraws & selects a lot faster in complex scenes

* Little fix in "BallTable" routine when moving mouse vertical out of
  the 3d window.
2003-07-11 20:02:52 +00:00
Simon Clitherow 94f8098660 - removed freeze project from intern build (MSVC 6) 2003-07-11 19:34:20 +00:00
Ton Roosendaal 736e3572c8 * from Douglas Bischoff: improved tooltip descriptions. 2003-07-11 17:34:08 +00:00
Ton Roosendaal 448079caa2 * fixed bug "turntable deviation" #364
In fact, I made it working different, much more cooler!

-------The BallTable Method TM (patent pending)------------

This is a hybrid of the old turntable method (a virtual camara that rotates
around a table) and the trackball method. Mouse moving horizontal, gives
the turntable effect, but with vertical movement it works like a trackball.
So, vertically moving in the middle of the window exactly mimics old
turntable method, moving vertically in the window edge gives a 'twist'
rotation.

Try the turntable for fun! (is in user settings menu)
2003-07-11 16:50:31 +00:00
Ton Roosendaal a31693cca4 * fixed code that tried to restore material links, after radiosity, and
when you want a new Mesh.
  Problem happened when over 16 materials are used for 'collect meshes'.
  Blender does not support (yet) more than 16. For clarity, I added a
  warning for the user when this occurs

  (was bug 370)
2003-07-11 12:45:04 +00:00
guignot 6c03e374fa changed the get/setSize to get/setWinSize. Tks Willian. 2003-07-10 22:03:27 +00:00
guignot 106263dda7 documentation for the Metaball module. 2003-07-10 21:56:03 +00:00
Simon Clitherow d4c849391e - fixed a problem with face select and vertex paint modes by removing
the check for nors != NULL (sorry miencho!).
2003-07-10 20:53:59 +00:00
Ton Roosendaal 5d118d2b62 * removed warning from Glut "unknown key" when pressing the 'paragraph'
key.
2003-07-10 20:45:17 +00:00
Ton Roosendaal ad6ddb4689 * cursor now moves with arrow keys again for OSX
* this apple method to do it generates unwanted events, so it could not
  be used for the menu mouse-move trick. this is #ifdeffed
* we should re-evaluate if this mousemove should remain in blender...
  there are better ways (scrolling contents of pup)

* plus: removed warnings from drawview.c
2003-07-10 20:34:41 +00:00
Michel Selten f999426daa * Object_getInverseMatrix now returns a correct matrix.
The problem was that the memory was allocated at the stack, but after the
  Python object was created, the pointer to the memory goes invalid.

  Thanks to Kester Maddoc for providing a patch - almost 2 weeks ago. Ouch,
  I should read my mail a little bit better.
2003-07-10 20:00:51 +00:00
Florian Eggenberger 66e2bf39d9 When cutting out a part of a python script the old textbuffer was still used when executing the script. Adding a txt_make_dirty() to txt_cut_sel() helped. 2003-07-10 18:32:42 +00:00
guignot c132c6abca 2 new functions : getSize and setSize 2003-07-10 13:00:44 +00:00
guignot f83cc2f8c5 anged CurveCreatePyObject to Curce_CreatePyObject 2003-07-10 08:27:34 +00:00
guignot faff703778 removed a wrong parameter name 2003-07-10 00:28:03 +00:00
guignot 2ef1ee21e4 Documentation fot the Ipo module 2003-07-10 00:23:11 +00:00
guignot be1338cb10 minor changes; deleted unuseful functions. 2003-07-10 00:22:17 +00:00
guignot b216fb1729 removed a function prototype which was already in modules.h 2003-07-09 23:21:41 +00:00
guignot 3482beef16 name changes for Curve functions (added an underscore) 2003-07-09 23:19:18 +00:00
guignot d92c4f798f documentation for the module Curve, to be formatted with epydoc 2003-07-09 21:20:01 +00:00
guignot 4cf1470b99 change the values of the functions get/set size/loc/rot to lists.
added the attributes loc, rot, size
changed the parameters of getControlPoint to int int list
cosmetic changes in names
2003-07-09 21:18:34 +00:00
Ton Roosendaal 1e666dd1cd - this smartass hack, which was removed from editscreen.c, was needed for
the textwindow. doh!

  now you can press alt+p in textwindow again!
2003-07-09 20:09:07 +00:00
Ton Roosendaal 5aa8ac36a1 * F11 now nicely pops/pushes a window again
* works (for OSX) only with the commit I did in Ghost 1 minute ago!
* needs to be checked for all other OS's.
2003-07-09 16:02:39 +00:00
Ton Roosendaal 0a5145c118 * Added a roman -> latin charset convertor.
MacOSX returns a Roman charset with kEventParamKeyMacCharCodes
as defined here: http://developer.apple.com/documentation/mac/Text/Text-516.html
I am not sure how international this works...
For cross-platform convention, we'll use the Latin ascii set instead.
As defined at: http://www.ramsch.org/martin/uni/fmi-hp/iso8859-1.html

* changed window-pop behaviour, it now also activates the window for input
  (OSX only)
2003-07-09 16:01:27 +00:00
Ton Roosendaal 4f571661bd * typing special characters in 3d font now works again. For OSX ghost will
use the internal standards for ascii values > 127
* someone has to check how X11 returns these values! Otherise the old
  Blender codes (alt+s = german S) will still work though.
* still have to check this for the buttons!
2003-07-09 15:54:52 +00:00
Ton Roosendaal 7e082b8d8f - increased the character loading/conversion routine that it includes the
entire ascii extended set (up to 255)
2003-07-09 14:44:53 +00:00
guignot 6fe633aef3 added what needed to link a curve to an object (modification of Object_link
added 2 functions Curve_CheckPyObject and Curve_FromPyObject
that I had forgotten
2003-07-09 12:25:27 +00:00
Michel Selten da913434db * Forgot to update the Object.name variable functionality. Had a bug in it to
return the first 2 identifying characters too - which it shouldn't.
2003-07-08 20:06:00 +00:00
Ton Roosendaal f4f7e8ee46 - changed silly name 'shadelamplus' to shade_lamp_loop 2003-07-08 13:07:35 +00:00
Ton Roosendaal e45e145453 * fixed two more subloops in button drawing for new optimized usage of
glFinish(). Textbut and the 'But' (render for example) didnt work proper.
2003-07-08 10:15:42 +00:00
Ton Roosendaal c5cc6a28a4 - old python: removed reference to UIfrontbuf, just to get it compiling
for those who dont have EXPYTHON defined
2003-07-07 16:12:31 +00:00
Ton Roosendaal b4b10dfff8 * removed the global uiFrontbuf from interface.c (and python, it was used
there)
* replaced with nice local (uiBlock) storage of what goes on in drawing.
  it now only calls a glDrawBuffer() and glFinish() when it is actually
  needed

Result: interface drawing in general is speedy again, especially for gfx
cards that dont allow frontbuffer drawing, and copy stuff to the frontbuf
with a glFinish() call.

Needs to be tested on all platforms... report to me when you see problems
like menus not drawing correctly, tooltips not drawing or not disappearing,
etc.
2003-07-07 15:50:44 +00:00
Michel Selten 828347f698 * removed some debugging prints. Accidentally committed them last time.
* nicely format the matrix object when printing.
2003-07-06 20:34:59 +00:00
Ton Roosendaal a4cc2526b3 - miencho (thanks) pointed me to a weak line in draw mesh solid call.
it used a pointer, without checking its value. the calling code
  took care it never happened, nevertheless... added a comment there.
2003-07-06 20:18:42 +00:00
Michel Selten 62ffb7a5f6 * Fixed:
- Object_getMatrix()    - prints correct values now
    - Object_getName()      - removes the two identifying chars from the front
    - Object_setName()      - calls the internal function to correctly set the
                              name of the object.
* Removed the Object_print function. It causes a crash on Windows.
* Updated the Object_repr function to display the Object nicely.
* Object.Get() now returns a list of Objects when no argument has passed to
  it.
* Changed the function declaration for newMatrixObject function
  Easier to read now.
2003-07-06 19:58:27 +00:00
Ton Roosendaal 6cc94449de - bug #149.
rendering the current view (view3d header, render) didn't render solid
  drawmode.

  found missing opengl initialization calls in opening renderwin.
  probably remains from ghost migration.
2003-07-05 20:38:31 +00:00
Ton Roosendaal c69da232bb - removed "SILLY CODE" comment. :-)
it is from zr, a note to remind him to have better drawing of procuderal
  duplicators in Blender. the code below that comment was mostly a copy
  from code it used before already.
  writing it more efficient would give a gain of about 20 code lines...
2003-07-05 16:50:29 +00:00
Ton Roosendaal 38e20946c3 - fixed slow file reading of vertex deform groups.
found out that per vertex, per deform group, a heavy function was called
  to get an address from a huge array. that address even didnt exist, was
  not written in the file... just removing the code makes .blend file
  reading happy again.

  check it by parenting a 40k vertex mesh, to an armature with "use
  armature" and "create vertex groups". save and load file.
2003-07-05 16:41:04 +00:00
Ton Roosendaal d4d09cbab8 - included missing <string.h> (ah, these warnings...) 2003-07-05 14:24:05 +00:00
Wouter van Heyst d81fcf73ff Multiline string literals are deprecated in gcc3.3, fixes build error 2003-07-05 11:27:50 +00:00
Ton Roosendaal a0430d0d43 Patch provided by Jacques Beaurain (thanks!) to fix bug #322. I've added
the text below as comment:

adding a glFinish() here is to prevent Geforce in 'full scene antialias' mode
from antialising the Blender window. Officially a swapbuffers does a glFinish
itself, so this feels really like a hack... but it won't harm. (ton)
2003-07-05 11:15:49 +00:00
Ton Roosendaal c861979e7b - fixed small bug in menu button (preset dirs) in fileselect. When the menu
is empty (no $HOME/.Bfs and first time use of FileSelect) it was empty,
  causing a nasty drawing error.
  It now doesn't draw the menubutton when there are no preset dirs yet.

- removed 'unused variable' warnings from space.c
2003-07-05 10:50:42 +00:00
Chris Want 2a1c1fd067 Iconified windows do not get window focus. 2003-07-05 02:28:52 +00:00
Willian Padovani Germano 3328cf0d2d Exppython: small update to fix a warning and a compile problem. 2003-07-05 01:44:32 +00:00
Willian Padovani Germano aa820ec420 Exppython:
- Continued getting rid of print methods and updating repr ones:
    Needed to fix crashes on Windows >= 98 systems.
- Found and fixed a few small memory leaks in EXPP_interface, related to
  execution of script links.
2003-07-05 01:18:41 +00:00
Ton Roosendaal 20df091c04 - fixed bug that printed: "bad call to addqueue: 0 (18, 1)" when using
layer buttons or the layer hotkeys 1-2-3-etc.

  was caused in space.c, view3dlock, untested call to addqueue.
2003-07-04 20:15:13 +00:00
guignot 19ac604c47 deleted print function, which caused crashes.
Objects are printed with the repr function.
2003-07-04 16:09:34 +00:00