Commit Graph

519 Commits

Author SHA1 Message Date
6c03e374fa changed the get/setSize to get/setWinSize. Tks Willian. 2003-07-10 22:03:27 +00:00
106263dda7 documentation for the Metaball module. 2003-07-10 21:56:03 +00:00
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
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
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
c132c6abca 2 new functions : getSize and setSize 2003-07-10 13:00:44 +00:00
f83cc2f8c5 anged CurveCreatePyObject to Curce_CreatePyObject 2003-07-10 08:27:34 +00:00
faff703778 removed a wrong parameter name 2003-07-10 00:28:03 +00:00
2ef1ee21e4 Documentation fot the Ipo module 2003-07-10 00:23:11 +00:00
be1338cb10 minor changes; deleted unuseful functions. 2003-07-10 00:22:17 +00:00
b216fb1729 removed a function prototype which was already in modules.h 2003-07-09 23:21:41 +00:00
3482beef16 name changes for Curve functions (added an underscore) 2003-07-09 23:19:18 +00:00
d92c4f798f documentation for the module Curve, to be formatted with epydoc 2003-07-09 21:20:01 +00:00
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
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
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
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
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
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
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
f4f7e8ee46 - changed silly name 'shadelamplus' to shade_lamp_loop 2003-07-08 13:07:35 +00:00
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
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
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
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
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
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
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
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
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
d4d09cbab8 - included missing <string.h> (ah, these warnings...) 2003-07-05 14:24:05 +00:00
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
3328cf0d2d Exppython: small update to fix a warning and a compile problem. 2003-07-05 01:44:32 +00:00
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
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
19ac604c47 deleted print function, which caused crashes.
Objects are printed with the repr function.
2003-07-04 16:09:34 +00:00
82e1783dcb Following Willian's proposal,deleted the print function, which caused crashes.
The objects are now printed with the repr function.
2003-07-04 16:06:39 +00:00
28b8e667a0 Exppython:
- Fixed a problem with control of the global Python dictionary persistence:
    Blender.ReleaseGlobalDict(bool) should now work fine.
- Trying to fix the sigsegv crashes on Windows:
    They happen when we try to "print" our objects, like Lamps or Cameras.
    Following advice from the Python Embedding doc, removed the tp_print
    method from Camera and also improved its tp_repr one, that will be used
    as print, repr() and str() for Cameras.  If this test works all other objs
    will be updated accordingly.
2003-07-04 02:56:07 +00:00
77213f7da6 removed extra tabs in the help function.
It was
function()
{
						blah
}

changed it to just
function()
{
	blah
}

Kent
2003-07-03 13:53:11 +00:00
a41069b954 - second change in vrml file writing. Thanks to testing of a user (don't have good
vrml viewer here) I could make the UV coords in the right order.

  seems to look good now, but will keep in touch with the tester for verification
2003-07-03 12:31:19 +00:00
dfa7a48407 - exppython now can import modules contained in Blender Texts:
The Python import function was substituted by our own one (like done
    in the old bpython) to also check Blender Texts upon importing.
2003-07-03 01:42:00 +00:00
Hans Lambermont
1b726ba080 OPENGL headers include path is necessary on non-linuxes 2003-07-02 18:51:37 +00:00
c57b13ed78 - NMesh.PutRaw:
- now it returns the Object wrapper if an obj was created, as in 2.25
   - fixed another bug related to obj-mesh material lists
2003-07-02 18:26:21 +00:00
4954e23738 - removed MXtools reference from Makefiles.
This compiles so much faster! and hardly no useless warnings anymore
  now, so finally we can pay some attentian to real warnings.
2003-07-02 13:45:45 +00:00
d8cc44417f - removed the 'const' from arithb function declarations. it caused
the myriad of warnings people complained about so long.

  after careful consulting & reading I could not find a good reason
  for this const stuff, apart from a sort-of comment to indicate
  this array (matrix) pointer cannot be changed. Well, doh! you
  should not do that with a float mat[][3] anyway!
2003-07-02 13:37:03 +00:00
123696724d * Updated the version number of Blender to display 2.27.NewPy1 in the User
Interface only. Commented the original line.
  THIS NEEDS TO BE RESTORED TO THE ORIGINAL LINE WHEN A RELEASE IS BUILD!!!
2003-07-01 17:05:28 +00:00
fad2aeb3fb - small fix in Sys.c to compile on Windows:
Thanks Florian Eggenberger for telling us about it. And Greg McBride for
   pointing a possible fix.
- Draw.Text and Draw.GetStringWidth updated:
   Now they accept an optional second parameter to set font size and Draw.Text
   returns the drawn string width.
- Partially fixed the update() and PutRaw() bugs in NMesh:
   A total fix will require bigger changes, but what was done (unless buggy)
   takes care of the common cases.
2003-07-01 05:19:14 +00:00
cee677699f - added a call calc_meshverts_ext_f2(void) which:
- projects vertices without clipping code (xs at 3200)
 - sets flag in editvert ( eve->f & 2) when it is not visible

general note: that flag is only valid after the calc_meshverts_ext_f2
call. it is a free flag. be aware that selection
is stored in bit 1 (eve->f & 1)
2003-06-30 19:51:18 +00:00
e1efa7378c - accidentally commited an armature test call. sorry! 2003-06-30 19:13:18 +00:00