Wouter van Heyst [Sat, 5 Jul 2003 11:27:50 +0000 (11:27 +0000)]
Multiline string literals are deprecated in gcc3.3, fixes build error
Ton Roosendaal [Sat, 5 Jul 2003 11:15:49 +0000 (11:15 +0000)]
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)
Ton Roosendaal [Sat, 5 Jul 2003 10:50:42 +0000 (10:50 +0000)]
- 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
Chris Want [Sat, 5 Jul 2003 02:28:52 +0000 (02:28 +0000)]
Iconified windows do not get window focus.
Willian Padovani Germano [Sat, 5 Jul 2003 01:44:32 +0000 (01:44 +0000)]
Exppython: small update to fix a warning and a compile problem.
Willian Padovani Germano [Sat, 5 Jul 2003 01:18:41 +0000 (01:18 +0000)]
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.
Ton Roosendaal [Fri, 4 Jul 2003 20:15:13 +0000 (20:15 +0000)]
- 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.
Jacques Guignot [Fri, 4 Jul 2003 16:09:34 +0000 (16:09 +0000)]
deleted print function, which caused crashes.
Objects are printed with the repr function.
Jacques Guignot [Fri, 4 Jul 2003 16:06:39 +0000 (16:06 +0000)]
Following Willian's proposal,deleted the print function, which caused crashes.
The objects are now printed with the repr function.
Willian Padovani Germano [Fri, 4 Jul 2003 02:56:07 +0000 (02:56 +0000)]
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.
Kent Mein [Thu, 3 Jul 2003 13:53:11 +0000 (13:53 +0000)]
removed extra tabs in the help function.
It was
function()
{
blah
}
changed it to just
function()
{
blah
}
Kent
Ton Roosendaal [Thu, 3 Jul 2003 12:31:19 +0000 (12:31 +0000)]
- 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
Willian Padovani Germano [Thu, 3 Jul 2003 01:42:00 +0000 (01:42 +0000)]
- 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.
Hans Lambermont [Wed, 2 Jul 2003 18:51:37 +0000 (18:51 +0000)]
OPENGL headers include path is necessary on non-linuxes
Willian Padovani Germano [Wed, 2 Jul 2003 18:26:21 +0000 (18:26 +0000)]
- 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
Ton Roosendaal [Wed, 2 Jul 2003 13:45:45 +0000 (13:45 +0000)]
- 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.
Ton Roosendaal [Wed, 2 Jul 2003 13:37:03 +0000 (13:37 +0000)]
- 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!
Michel Selten [Tue, 1 Jul 2003 17:05:28 +0000 (17:05 +0000)]
* 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!!!
Willian Padovani Germano [Tue, 1 Jul 2003 05:19:14 +0000 (05:19 +0000)]
- 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.
Chris Want [Tue, 1 Jul 2003 00:53:26 +0000 (00:53 +0000)]
Jacques patch for initializing m_context as NULL
Ton Roosendaal [Mon, 30 Jun 2003 19:51:18 +0000 (19:51 +0000)]
- 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)
Ton Roosendaal [Mon, 30 Jun 2003 19:13:18 +0000 (19:13 +0000)]
- accidentally commited an armature test call. sorry!
Ton Roosendaal [Mon, 30 Jun 2003 18:09:08 +0000 (18:09 +0000)]
- 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.
Ton Roosendaal [Mon, 30 Jun 2003 14:11:17 +0000 (14:11 +0000)]
- fixed bug #316
just two icons that were switched accidentally
Michel Selten [Sun, 29 Jun 2003 19:57:41 +0000 (19:57 +0000)]
* The Object.get and Object.getSelected will become obsolete in the future.
Added a warning about this - and to use the alternative function.
Chris Want [Sun, 29 Jun 2003 17:21:38 +0000 (17:21 +0000)]
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.
Michel Selten [Sun, 29 Jun 2003 16:49:21 +0000 (16:49 +0000)]
* 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.
Willian Padovani Germano [Sun, 29 Jun 2003 14:35:49 +0000 (14:35 +0000)]
- 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.
Michel Selten [Sat, 28 Jun 2003 15:10:23 +0000 (15:10 +0000)]
* 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.
Willian Padovani Germano [Sat, 28 Jun 2003 10:35:14 +0000 (10:35 +0000)]
- 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)
Willian Padovani Germano [Sat, 28 Jun 2003 07:38:21 +0000 (07:38 +0000)]
- More renaming all around to follow our conventions
- Implemented partially Blender.Sys
- Worked on issues related to sys, path
- Took away most "debug" printfs
Chris Want [Sat, 28 Jun 2003 03:47:05 +0000 (03:47 +0000)]
expython needs pthreads to link under irix (prolly a python 2.2
requirement).
Ton Roosendaal [Fri, 27 Jun 2003 15:29:36 +0000 (15:29 +0000)]
- 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! ;-)
Ton Roosendaal [Fri, 27 Jun 2003 15:26:23 +0000 (15:26 +0000)]
- 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.
Kent Mein [Fri, 27 Jun 2003 15:17:22 +0000 (15:17 +0000)]
Deleted a ^S that was causing it to not compile on my linux box.
Kent
Ton Roosendaal [Fri, 27 Jun 2003 12:58:21 +0000 (12:58 +0000)]
- 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...
Ton Roosendaal [Fri, 27 Jun 2003 12:34:44 +0000 (12:34 +0000)]
- part 1 of investigating how armatures work!
fixed display error; when adding a 'key' in a bone, it didnt update IpoWindow
Jacques Guignot [Fri, 27 Jun 2003 07:46:29 +0000 (07:46 +0000)]
end of cleanup ; naming conventions, balance between c and h files
Jacques Guignot [Fri, 27 Jun 2003 07:35:55 +0000 (07:35 +0000)]
some cleanup; naming conventions
Willian Padovani Germano [Thu, 26 Jun 2003 02:03:51 +0000 (02:03 +0000)]
* Added function Blender.Draw.GetStringWidth().
* Added doc and small test for Blender.Test
* trying changes to make Blender.Test.unlink() safer.
Willian Padovani Germano [Wed, 25 Jun 2003 04:38:38 +0000 (04:38 +0000)]
* Documentation and a simple test for BGL.
Willian Padovani Germano [Tue, 24 Jun 2003 07:21:17 +0000 (07:21 +0000)]
* 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.
Ton Roosendaal [Mon, 23 Jun 2003 12:28:20 +0000 (12:28 +0000)]
- added reference to genfile.c instructions
Ton Roosendaal [Mon, 23 Jun 2003 08:20:30 +0000 (08:20 +0000)]
- renderwindow doesn't close when switching from dispwin to dispview
- left out activating the mainwindow after rendering, this is confusing
Michel Selten [Sun, 22 Jun 2003 20:14:11 +0000 (20:14 +0000)]
* Added matrix module
* Moved the function EXPP_tuple_repr from vector.c to gen_utils.[ch]
* Matrix functionality should work now in Object module.
* Fixed compilation warning about implicit declaration of M_World_Init.
Added the declaration to modules.h
Jacques Guignot [Sun, 22 Jun 2003 19:52:04 +0000 (19:52 +0000)]
removed all references to FP_INFINITE, dirty hack I used before, which is not useful now.
: ----------------------------------------------------------------------
Michel Selten [Sun, 22 Jun 2003 18:48:22 +0000 (18:48 +0000)]
* Added the definition of FP_INFINITE back to Metaball.c
It really doesn't compile on some platforms if it isn't defined.
Michel Selten [Sun, 22 Jun 2003 18:34:36 +0000 (18:34 +0000)]
* Fixes segfault caused in the Object.getParent function.
Found by Jonathan Thambidurai
* Fixes a scriptlink problem when a script is run using ALT-p.
Found by Yann Vernier (LoneTech)
* Prints unhandled exceptions. Should fix some memory leaks too.
Fixed by Yann Verniet (LoneTech)
Jacques Guignot [Sun, 22 Jun 2003 16:23:58 +0000 (16:23 +0000)]
bug fix
-
Jacques Guignot [Sun, 22 Jun 2003 13:51:29 +0000 (13:51 +0000)]
new module
-
Jacques Guignot [Sun, 22 Jun 2003 13:51:01 +0000 (13:51 +0000)]
nex module
Ton Roosendaal [Sat, 21 Jun 2003 21:34:40 +0000 (21:34 +0000)]
- for test: action space has no 'winchange' callback now.
well. the callback is empty!
Jacques Guignot [Sat, 21 Jun 2003 20:57:16 +0000 (20:57 +0000)]
taking care of mist intensity in the render process
Jacques Guignot [Sat, 21 Jun 2003 20:54:33 +0000 (20:54 +0000)]
a slider for controlling mist intensity
Jacques Guignot [Sat, 21 Jun 2003 20:47:12 +0000 (20:47 +0000)]
Integration of the new modules
Jacques Guignot [Sat, 21 Jun 2003 20:44:44 +0000 (20:44 +0000)]
several bug fixes
Ton Roosendaal [Sat, 21 Jun 2003 20:24:42 +0000 (20:24 +0000)]
- added (old supposed) option for uiDefBut to define the amount of digits
in NUM or NUMSLI buttons. It's the last but one argument...
i really have to put the interface.c API doc back!!! :-)
(get probably killed for the fact that i have it)
Jacques Guignot [Sat, 21 Jun 2003 16:11:50 +0000 (16:11 +0000)]
very last test.
Jacques Guignot [Sat, 21 Jun 2003 16:09:21 +0000 (16:09 +0000)]
check in test...
Jacques Guignot [Sat, 21 Jun 2003 16:07:55 +0000 (16:07 +0000)]
added python test files
these tests should be exhaustive
Jacques Guignot [Sat, 21 Jun 2003 11:44:10 +0000 (11:44 +0000)]
*** empty log message ***
Jacques Guignot [Sat, 21 Jun 2003 11:34:43 +0000 (11:34 +0000)]
*** empty log message ***
Jacques Guignot [Sat, 21 Jun 2003 11:27:19 +0000 (11:27 +0000)]
*** empty log message ***
Jacques Guignot [Sat, 21 Jun 2003 11:12:14 +0000 (11:12 +0000)]
*** empty log message ***
Ton Roosendaal [Fri, 20 Jun 2003 12:49:36 +0000 (12:49 +0000)]
- removed 'gldrawbuffer()' and 'glflush()' calls from main buttons loop.
these calls were done without anything actually happening, for each
mouse move, and caused quite some slowdown at OSX.
Might help the other platforms as well. Check it by just moving your mouse
around, over window edges, buttons, etc. Especially Radiosity buttons
were horrible slow in a large window
Please be aware that the above calls cause a swapbuffer at OSX!
Willian Padovani Germano [Fri, 20 Jun 2003 02:01:22 +0000 (02:01 +0000)]
* Adding doc dir to exppython, with sample Camera.py file.
We're testing the epydoc doc generator with good results.
Casey Corn [Wed, 18 Jun 2003 03:48:55 +0000 (03:48 +0000)]
Rolled back comments. According to new guidelines, no .c files
should contain doxygen comments.
Ton Roosendaal [Sun, 15 Jun 2003 19:08:50 +0000 (19:08 +0000)]
- fixed error, in 'z buffer' mode the bg color in 3d view was too bright
Michel Selten [Sun, 15 Jun 2003 13:14:45 +0000 (13:14 +0000)]
* Fixed compilation error. FP_INFINITE needs to be defined _after_ all header
files are included.
Stefan Gartner [Sun, 15 Jun 2003 10:25:12 +0000 (10:25 +0000)]
Draw extra wire tuhopuu-style. Fixes Bug 244
Chris Want [Sun, 15 Jun 2003 06:18:21 +0000 (06:18 +0000)]
The mipspro compiler also doesn't like FP_INFINITE,
so extended it so Simon's redefinition also occurs whenever
FP_INFINITE isn't defined (don't know why setting infinity
equals to 1 would be a good thing though)... maybe the author
might choose a more portable method for doing this.
Hans Lambermont [Sat, 14 Jun 2003 22:58:01 +0000 (22:58 +0000)]
fix the link target naming
Chris Want [Sat, 14 Jun 2003 22:47:54 +0000 (22:47 +0000)]
This makes the new renderwin.c behavior work
for windows-gcc.
Simon Clitherow [Sat, 14 Jun 2003 15:52:53 +0000 (15:52 +0000)]
- Added exppython project to VC6
A quick HOW-TO:
* Open /blender/projectfiles/blender/blender.dsw
* Replace all existing files in the exppython project with the
.c/h files found in /blender/source/blender/python/ and subdirs
* Make sure Blender project is active.
* Remove the old BPY_python and BPY_freeze dependancies.
(Project->Dependancies...)
* Add the new exppython as a dependancy.
* Recompile, et voila! :)
I'm sure the python team would appreciate some Windows feedback,
so please test this if you can and report any probs, etc to the
bf-python mailist.
Note: The old BPY_python/freeze project will be removed and exppython
made default just as soon as it is declared ready! ;)
--aphex
Simon Clitherow [Sat, 14 Jun 2003 15:20:53 +0000 (15:20 +0000)]
- Fixed a compile error on Windows:
VC98 Win32 Platform SDK does not define FP_INFINITE!
Anyone know if VC7 is C99 compliant?
Ton Roosendaal [Sat, 14 Jun 2003 14:49:12 +0000 (14:49 +0000)]
- removed test_break call from #ifdef POSIX part, to prevent double
it now is a cross platform function again.
Simon Clitherow [Sat, 14 Jun 2003 13:34:35 +0000 (13:34 +0000)]
- Holger's patch to enable ESC detection when rendering (Win32).
Willian Padovani Germano [Sat, 14 Jun 2003 10:10:01 +0000 (10:10 +0000)]
* Fixed crash on file image selectors:
The global python dict can't be cleaned before the callbacks are executed.
Ton Roosendaal [Fri, 13 Jun 2003 19:56:15 +0000 (19:56 +0000)]
- bug fix #257
crash when ESC out of FileSelect, while previous window Info (user settings)
Ton Roosendaal [Fri, 13 Jun 2003 16:51:22 +0000 (16:51 +0000)]
- fixed bug #228
dispview mode now doesnt disappear immedately after render
oh, what i hated that one!
Ton Roosendaal [Fri, 13 Jun 2003 14:04:06 +0000 (14:04 +0000)]
- again same commit, typo in comment was still there...
Ton Roosendaal [Fri, 13 Jun 2003 13:54:08 +0000 (13:54 +0000)]
- fixed commenting in renderwin.c
Ton Roosendaal [Fri, 13 Jun 2003 13:46:00 +0000 (13:46 +0000)]
- restored functionality for ESC detection during rendering which doesnt
eat up cpu time.
in fact it was in pre-ghost blender already.
works now for all posix OS's, except for windows. now working on getting
that fixed as well. until then, rendering will be slow at win32...
cvS: ----------------------------------------------------------------------
Ton Roosendaal [Fri, 13 Jun 2003 13:43:27 +0000 (13:43 +0000)]
- at systems with an inverted-draw crosshair cursor (editmode) it was almost
invisible in the 3d win. Jacked up the background grey a tinsy bit to
improve that.
also made the grid lines brighter, less distracting that way.
Willian Padovani Germano [Fri, 13 Jun 2003 04:21:48 +0000 (04:21 +0000)]
* Bugs item #169 fixed:
Now Blender.NMesh.PutRaw() doesn't destroy vertex color info anymore.
Both exppython's NMesh.c and bpython's opy_nmesh.c were updated.
* Minor changes in other files.
Kent Mein [Thu, 12 Jun 2003 19:17:33 +0000 (19:17 +0000)]
Kester's patch, for FreeBSD from,
http://www.elysiun.com/forum/viewtopic.php?t=12096
Kent
Kent Mein [Thu, 12 Jun 2003 18:25:56 +0000 (18:25 +0000)]
Added some small comments on cygwin building under windows.
From this post...
http://projects.blender.org/viewcvs/viewcvs.cgi/blender/doc/README.windows-gcc?rev=1.3&cvsroot=bf-blender&content-type=text/vnd.viewcvs-markup
Kent
Ton Roosendaal [Thu, 12 Jun 2003 10:07:36 +0000 (10:07 +0000)]
- Completely reorganized renderwin.c, added readable comments and removed
confusing functions which were only used once.
Part of examining how renderwindows get opened/closed, and to enable
a third option for render output to ImageWindow in Blender
Willian Padovani Germano [Thu, 12 Jun 2003 04:51:50 +0000 (04:51 +0000)]
* Small changes in many files:
- Trying to fix linking problems in OSX;
- Making module .Get functions behave like the ones in Blender 2.25 - 2.27
(Guignot pointed the incompatibility);
- Included more types to Blender.Types;
- Found by luck and corrected two bugs that were making Blender crash;
- Added/updated some simple functions.
Simon Clitherow [Wed, 11 Jun 2003 20:26:35 +0000 (20:26 +0000)]
A better method for finding the installation dir on Windows.
Now works properly for _all_ Windows versions!
Ton Roosendaal [Wed, 11 Jun 2003 19:38:35 +0000 (19:38 +0000)]
- fixed timer-wait for tooltips. this annoyed me such a long time!
now the tooltip waits 0.3 seconds before popping up.
Ton Roosendaal [Wed, 11 Jun 2003 15:43:20 +0000 (15:43 +0000)]
- OSX bugfix: drawing selection code for vpaint and faceselect happens in AUX
buffers now. It only works nice at OSX (tested, linux and windows do not
support it nicely)
This fixes the annoying flashing during paint or select
Ton Roosendaal [Wed, 11 Jun 2003 15:41:11 +0000 (15:41 +0000)]
- Makefile: removed 'creator lib' compiling. only 'publisher lib' is used
Ton Roosendaal [Wed, 11 Jun 2003 15:40:25 +0000 (15:40 +0000)]
- OSX bug: selecting vertices in imagewindow didnt draw in frontbuf visibly
added a glFlush
Ton Roosendaal [Wed, 11 Jun 2003 15:11:59 +0000 (15:11 +0000)]
- OSX ghost: hand cursor, and it creates an opengl context with AUX buffer
Ton Roosendaal [Wed, 11 Jun 2003 15:02:57 +0000 (15:02 +0000)]
- cursors: now display a nice hand over the edges, and another arrow for
vpaint/faceselect
- BUGFIX: restoring focus from renderwin to editor caused a click at the
wrong location (annoying when pressing 'render'
Rob Haarsma [Tue, 10 Jun 2003 21:07:56 +0000 (21:07 +0000)]
enabled mousewheel functionality also in 3D textediting.
Willian Padovani Germano [Mon, 9 Jun 2003 20:07:43 +0000 (20:07 +0000)]
* Added 'extern' to PyTypeObject declarations in some headers.
Willian Padovani Germano [Mon, 9 Jun 2003 04:35:24 +0000 (04:35 +0000)]
small update to getAttr method
Willian Padovani Germano [Mon, 9 Jun 2003 04:01:48 +0000 (04:01 +0000)]
* Applied a small fix to a bug reported by Guignot:
When a script that used setAttr for Camera Data objs (the bug also
affected some other modules) was executed multiple times, Blender
would crash after, let's say, the first 5 or 6 tries. Problem, as
Guignot pointed, was with reference counting. Should be ok now, all
affected modules were fixed.
* The Scene module is now "complete" (= 2.25).
* Made some necessary updates to Object and NMesh.