Commit Graph

771 Commits

Author SHA1 Message Date
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
d81fcf73ff Multiline string literals are deprecated in gcc3.3, fixes build error 2003-07-05 11:27:50 +00:00
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
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
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
Chris Want
14b4ed4e8d Jacques patch for initializing m_context as NULL 2003-07-01 00:53:26 +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
b4bb377ae5 - this probably fixes export to vrml 1.0 output for textures (UV coords)
it needs tests... just a simple cube with sides texmapped. and then
  import to whatever vrml viewer or importer you have around.

  the trick lies in adding textureCoordIndex nodes to file.
2003-06-30 18:09:08 +00:00
79c2d74cd1 - fixed bug #316
just two icons that were switched accidentally
2003-06-30 14:11:17 +00:00
34e349b4ce * The Object.get and Object.getSelected will become obsolete in the future.
Added a warning about this - and to use the alternative function.
2003-06-29 19:57:41 +00:00
Chris Want
67e9d00936 Moved the OPENGL_HEADERS to the end of the include paths
-- so that render.h from another package (such as the
Xrender extension on irix) doesn't conflict with the
blender one.
2003-06-29 17:21:38 +00:00
3284916aeb * Added some internal functions to the Material module
* Updated the Object module with some more functions. Only 1 function left to
  implement.
* Removed the getDeformData function declaration.
2003-06-29 16:49:21 +00:00
389c7e101e - Trying to fix something I caused:
Added a function call to creator.c that is needed by exppython, but forgot
    to add the function also to the old bpython implementation.  Thanks, Hos!
- Addition in Draw.Text and Draw.GetStringWidth (Python Draw methods):
    Now script writers can select the font size: normal, small or tiny.
2003-06-29 14:35:49 +00:00
0ff572954e * Added functionality to the Object module for getting and setting the name of
the object.
* Added the GetSelected function. (Same as getSelected).
* Added a start for the Object.py API documentation.
* Some minor bug-fixes to the Object module.
* Added the functionality to get the IPO of the Object.
2003-06-28 15:10:23 +00:00
8155033930 - Added user defined python dir to Python's sys.path:
Had to add a function call to creator.c, explained in a note there (look
    for pythondir in the file)
2003-06-28 10:35:14 +00:00
eaf1cdd383 - More renaming all around to follow our conventions
- Implemented partially Blender.Sys
- Worked on issues related to sys, path
- Took away most "debug" printfs
2003-06-28 07:38:21 +00:00
Chris Want
569a32a2ea expython needs pthreads to link under irix (prolly a python 2.2
requirement).
2003-06-28 03:47:05 +00:00
1323315937 - associated .h file change for previous commit (bug #152).
plus added a warning in screen_types.h. Some wierd person
  thinks ENUM is nice? It's dangerous! ;-)
2003-06-27 15:29:36 +00:00
6a3f419142 - bug #152
databrowse didnt work in NLA editor, for a SHIFT+A "add action"

  note: the databrowse is a bit out-focus here. the NLA editor is not yet
  well integrated with blender standards. For example, there is no awareness
  of an 'active' strip in the editor, which makes a bit clumsy code. It needs
  some more work... options in the window header etc.
2003-06-27 15:26:23 +00:00
6bbf245d17 Deleted a ^S that was causing it to not compile on my linux box.
Kent
2003-06-27 15:17:22 +00:00
ff5e41cd3e - when inserting first key for Bone in Armature, the IpoWindow now gets
a signal to change to 'show Action Ipos'
  Makes it all a tad more clear...
2003-06-27 12:58:21 +00:00
57aaef00ee - part 1 of investigating how armatures work!
fixed display error; when adding a 'key' in a bone, it didnt update IpoWindow
2003-06-27 12:34:44 +00:00
dc686139de end of cleanup ; naming conventions, balance between c and h files 2003-06-27 07:46:29 +00:00
13d7bb920b some cleanup; naming conventions 2003-06-27 07:35:55 +00:00
72f0cdace4 * Added function Blender.Draw.GetStringWidth().
* Added doc and small test for Blender.Test
* trying changes to make Blender.Test.unlink() safer.
2003-06-26 02:03:51 +00:00
dd8f216691 * Documentation and a simple test for BGL. 2003-06-25 04:38:38 +00:00
06ee04fb05 * Added more doc files for epydoc and a test for the camera module.
* Moved public declarations in camera and lamp to a new file: bpy_types.h.
* Fixed minor bugs in material, rgbTuple and Lamp + other minor changes.
* Made part of the changes to conform to decided naming conventions.
2003-06-24 07:21:17 +00:00