Commit Graph

66005 Commits

Author SHA1 Message Date
Daniel Dunbar 1f3f52f5e4 Update space dispatch:
- drawXXXspace, changeXXXspace, and winqreadXXXspace now receive the area
     and spacedata as explicit arguments, allowing them to access private
     data w/o going through globals.
 - pass the new BWinEvent through to the winqreadXXXspace, allowing future
     access to extended event data.

Removed direct calls to winqreadXXXspace to simulate user actions, replaced
by calls to action functions in edit.c or the appropriate handler.
2003-03-24 01:46:05 +00:00
Wouter van Heyst a6a50cc27f Left over generated cruft, time to go 2003-03-24 00:15:20 +00:00
Daniel Dunbar 93e8a05320 Canonize all space functions to follow the drawXXXspace and winqreadXXXspace
conventions.
2003-03-24 00:06:40 +00:00
Daniel Dunbar 510e2d5840 Change the core internal event dispatch to use a BWinEvent structure
instead of passing seperate arguments. For when we want to pass 'richer'
events around.
2003-03-23 22:52:11 +00:00
Wouter van Heyst 3dd8dfa32b As NAN_PYTHON_BINARY is now used to determine the correct binary for the
freeze, provide it on all platforms
2003-03-23 22:38:15 +00:00
Daniel Dunbar e0cec3d2c4 Removed NLA winqread and write runtime obfuscation cruft.
Can we just dump all this silly key stuff please?
2003-03-23 21:42:31 +00:00
Daniel Dunbar 05afb06397 Unitialized buffer patch (zero length runs in font loading), again thanks to
vc7 magic.
2003-03-23 20:47:05 +00:00
Daniel Dunbar 361ecbce1b Fix for bug #78.
The tooltip on the button is wrong, it doesn't translate
the view it zooms it to a specific region. Tooltip has
been updated and border-zoom functionality was not working
in oops window, fixed.
2003-03-23 19:11:52 +00:00
Kent Mein cc8f103d56 Updated bubble help for Mult: under the particle system.
Kent
2003-03-23 16:10:51 +00:00
Kent Mein e2d9d5de08 Didn't hear any complaints so I'm commiting the patch for bug:
http://projects.blender.org/tracker/index.php?func=detail&aid=76&group_id=9&atid
=125

Kent
2003-03-23 16:01:32 +00:00
Kent Mein dc91e98159 Modified it to use $(NAN_PYTHON_BINARY) instead of just plain old
python.  (otherwise why have the env var?) ;)

Kent
2003-03-21 21:50:47 +00:00
Kent Mein b139f813b8 Small translation of some comments.
Kent
2003-03-21 18:07:04 +00:00
Michel Selten e031f322a7 * Implemented the BPY_do_all_scripts interface function (BPY_interface.c)
* Created a function to return all scripts from a linked list
  (DoAllScriptsFromList).

Michel
2003-03-19 18:57:23 +00:00
Daniel Dunbar 3f702b070a Fix for bug #59.
Silly strubel, strncpy does not 0 terminate strings.
2003-03-19 15:54:40 +00:00
Chris Want 8fc1ad5d2e Added a UI_BLOCK_ENTER_OK flag to the uiBlock in button()
(this alleviates the problem where using the enter key
effects the widget under the mouse cursor instead of
doing an 'OK' (symptom: getting the wrong number of verts
when adding a mesh circle).
2003-03-19 05:29:07 +00:00
Daniel Dunbar 9ef2426be6 Remainder of the vc7 projectfiles. 2003-03-19 00:55:52 +00:00
Daniel Dunbar 8003eb8628 Creator portion of VC7 projectfiles, put in make/msvc_7_0 for consistency w/ intern
projectfiles organization.
2003-03-19 00:49:28 +00:00
Daniel Dunbar 8768fdf08f Update to use <iostream> vs <iostream.h> 2003-03-18 23:21:31 +00:00
Daniel Dunbar f8f1591442 Killed MT_Scalar to float conversion warnings (should be
explicit cast anyway).
2003-03-18 23:20:10 +00:00
Daniel Dunbar ccf7749594 Added string.h include (for memcpy, memcmp, strcpy, strlen, etc.) 2003-03-18 23:17:09 +00:00
Daniel Dunbar 6ba07fd730 Avoid calling blenderqread on dummy event. (This patch
courtesy of VS.NETs magic new prevent-use-of-unitialized-data
debugging feature).
2003-03-18 22:15:30 +00:00
Michel Selten 3a0725d4aa * Moved the code to retrieve an object by name to a seperate function in
gen_utils.c (GetObjectByName).
* Blender.link, Blender.bylink and Blender.event should work. Somehow the
  only event coming through now is only REDRAW.
* Added include path to /intern/guardedalloc

Michel
2003-03-18 20:21:26 +00:00
Daniel Dunbar 465229e4d6 Rest of the VC7 intern projectfiles. 2003-03-18 19:38:36 +00:00
Daniel Dunbar f06ca3e196 First set of VC-7 project files. Also first my first commit in the free
world, what hath hell wrought.
2003-03-18 19:27:13 +00:00
Chris Want 2d5f4ed51b Fixed Goofster's merge menu (added the merge at center option) 2003-03-16 21:31:30 +00:00
Chris Want 731222799c removed a line to test cvs mailout 2003-03-15 22:30:18 +00:00
Chris Want 0d03537699 added an extra line to test the cvs commit mailout 2003-03-15 22:28:00 +00:00
Michel Selten b6b9c648bc * Removed datablock.[ch]
* Object.Get("") should work.
* Many variables from module Object are implemented.
* Updated build environment to generate more warnings (-Wall)

Michel
2003-03-15 19:14:16 +00:00
Simon Clitherow a0c1e2bd3d updated intern project files to suit the lib dir move. 2003-03-12 22:45:34 +00:00
Simon Clitherow ab05ef7618 - updated MSVC project files to suit the lib dir move - better late than never!
- blenderplayer and the web plugin now compile again (now using OpenAL)
2003-03-12 21:40:56 +00:00
Michel Selten f08719cfc6 Swig is unfortunately not an option anymore. This means implementing all
wrapper functionality by hand.

* Removed the swig files (*.i and *_wrap.c)
* Created initial datablock functionality. Most of it has been copied from
  the old implementation.
* Created some general functions in gen_utils.[ch]
* Blender.Get(), Blender.Set() and Blender.Redraw functions should work in a
  script now.
* Started implementation on an Event function call (BPY_do_pyscript)

Michel
2003-03-08 18:10:20 +00:00
Simon Clitherow cf741a99a9 Applied curve editing bugfix submitted by Klaus Stengel (nathanel)
http://projects.blender.org/tracker/index.php?func=detail&aid=100&group_id=9&atid=127
2003-03-02 14:14:03 +00:00
Simon Clitherow 7a4196a86d - removed files no longer created during freeze.
- removed '-2.26' prefix from the blender exe.
2003-03-02 13:46:07 +00:00
Michel Selten 4b825fddc7 Implemented enough functionality to actually execute Python from within
Blender.
* Moved api2_2x/interface.c to ./BPY_interface.c
  This will be the general api layer from which all variants of the Blender
  api. Currently only the 2.2x variant is initialised.
* Used swig (www.swig.org) to create Python wrappers for a couple of dummy
  functions.
* Started implementation of the Blender and Blender.Object modules.

Michel
2003-02-26 19:22:24 +00:00
Frank van Beek 8c5f949cb2 - python include path is now taken from nan_definitions.mk 2003-02-24 19:04:20 +00:00
Hans Lambermont de3c6488f7 lib/ just moved to ../ 2003-02-23 19:57:52 +00:00
Kent Mein 40d710f35d zel365 showed me this bug with deleting nla keys...
If I had to guess REMAKEIPO is kind of miss named.
since what it does it free up memory it almost looks like it should be a part of
REMAKEALLIPO we both felt a little overwhelmed by the code though and opted for
just calling both of them in delete_nlachannel_keys
I also added in         allqueue (REDRAWVIEW3D, 0);
since things could probably change around since your recalcing the ipo's...

Kent
2003-02-21 18:42:56 +00:00
Kent Mein 4afacdd9c3 Added Goofsters alt-m menu for merging verts while in edit mode menu.
Kent
2003-02-21 16:40:29 +00:00
Kent Mein 763da870b6 The first two files enables building of plugins under macosx.
The third is for actually loading the plugins in blender.
For some reason its not identifying the plugins correctly,
but it compiles and runs so I'm including it hoping someone else
might see where I've messed things up...

I have a simple example at http://www.cs.umn.edu/~mein/test.tgz that
works, if anyone is interested in playing with it.

Kent
2003-02-21 15:37:55 +00:00
Michel Selten ad12d5ce67 Added flag '--enable-exppython' to the auto* build environment.
Using this flag the following component is build:
  source/blender/python
and the following components are not build:
  intern/python
  source/blender/bpython

Without specifying the flag, things act as they used to do.
Also created a dummy interface.c file and created the directories
which will contain the replacement code for:
- intern/python
- source/blender/bpython

Michel
2003-02-19 19:20:11 +00:00
Simon Clitherow 6c5404431c Fixed a typo in my addy (of all places!) ;) 2003-02-19 18:55:31 +00:00
Hans Lambermont ad625dd508 - fix 'debug' target
- add ID and copyrights to top level makefile
2003-02-17 16:51:16 +00:00
Rob Haarsma 8ff3cfe8b0 fixed mousewheel behaviour in editmode 2003-02-17 12:30:11 +00:00
Chris Want 3fc3a9473f It turns out that the "Pressing AKEY to deselect all objects still
leaves one object center pink" bug was actually designed by somebody
to mark the active object (which need not necessarily be selected).
I've added a couple of source comments to explain this so the next
person trying to fix this doesn't bother.
2003-02-16 00:12:06 +00:00
Chris Want 8956af99ab gcc 3.2.1 seems to have problems casting a double like 32772.0 to
a short, so we cast to an int first, then to a short when a button that
modifies a short value is pressed. (Allieviates the bug where the
Unified Renderer button modifies the values of a bunch of other buttons).
2003-02-15 04:18:22 +00:00
Chris Want 5cc0dcc970 I decremented the 'user' of the deleted ipo,
but it had already been decremeted elsewhere.

Thanks to zel365 for the head's up.
2003-02-14 15:29:24 +00:00
Chris Want 877a4859d6 Fix to make plugins work on windows (last system error code for
the thread wasn't getting reset). Somebody with more windows
saavy might want to check that this doesn't break other stuff.
2003-02-14 03:24:45 +00:00
Chris Want 76396efb14 This modification removes a bone's
action channel from the cooresponding
action when the bone's IPO is deleted
from the IPO window (the old behavior
was to set the channel's ipo to NULL
without removing it from the action).
This is to alleviate the problem that
there is a lot of action channel code
that tries to access the channel's ipo
(chan->ipo) without testing whether
it is NULL or not (resulting in a
segfault).

This seems to be the best way to
solve this problem ... unless there
is a reason why it might be useful
to have an action channel with no
ipo attached to it?

Thanks to zel365 for uncovering this
problem.
2003-02-13 23:30:51 +00:00
Chris Want 8729dfb134 Some small de-optimizations :)
Reverting this file to it's original
version fixed a bug involving particles
and lattices.
2003-02-13 16:56:42 +00:00
Hans Lambermont bf2e5762dc - glue top level makefile and release one together
- fix 8 spaces problem in release/Makefile
2003-02-11 12:35:18 +00:00