Commit Graph

94 Commits

Author SHA1 Message Date
Frank van Beek
e8b0922986 - DEFFILE needed for linking Netscape Blender plugin now points to local
version of npB3DPlg.def
2003-01-05 17:58:46 +00:00
Hans Lambermont
42dcaf9add cleanup. 2003-01-05 14:28:33 +00:00
Hans Lambermont
95c780f203 remove ssr leftovers 2003-01-05 14:27:57 +00:00
Hans Lambermont
080dd299d6 - use ODE in lib/ for FreeBSD
- use default python library path
- remove obsolete SSR comments
2003-01-04 20:20:54 +00:00
Frank van Beek
3aa1f9ed3e - replaced files with the original versions that also contain 32x32 and
8 bit icons.
2003-01-04 17:18:50 +00:00
Frank van Beek
24f546162e - we're using python22.lib instead of python20.lib nowadays 2003-01-04 16:29:09 +00:00
Hans Lambermont
302399b9d0 and the other FreeBSD python locations. 2003-01-04 01:41:19 +00:00
Hans Lambermont
4a42823155 another FreeBSD python location change 2003-01-04 00:40:47 +00:00
Hans Lambermont
7ff3f0553f start using platform default locations for FreeBSD.
try not to break anything for other platforms.
2003-01-04 00:35:01 +00:00
Hans Lambermont
b506bdb2b7 Use FreeBSD's default python location when on FreeBSD 2003-01-04 00:19:53 +00:00
Hans Lambermont
5fda04dfdc Start using platform default locations of libraries that used to be in
lib/ and came from extern/ (which isn't in the new repository at all)

So use stuff like:

   ifeq ($(OS),freebsd)
     export NAN_OPENSSL ?= /usr
   else
     export NAN_OPENSSL ?= $(LCGDIR)/openssl
   endif

Hans
2003-01-03 22:51:49 +00:00
Michel Selten
0a51feab36 These updates enable the build of the gameengine
(configure --enable-gameengine). However, you still need to manually configure,
compile and install ode.

* Following the original NaN makefile, I removed the TerraplayNetwork files
  from the build. (Moved the two files to EXTRA_DIST).

* Pass a const char * to Py_BuildValue instead of a STR_String in
  BL_ActionActuator.cpp

* Added some include directories in Makefile.am's

Michel
2003-01-03 21:36:16 +00:00
Kent Mein
6e8abc4a8e Rob's patches for the slow render problem.
Kent
--
mein@cs.umn.edu
2003-01-01 17:47:20 +00:00
Kent Mein
e67802264a changed back to char :)
Kent
--
mein@cs.umn.edu
2002-12-31 14:43:16 +00:00
Kent Mein
69c57046e7 Sorry about that this is part of the last update. I ment to cancel it
and include both files.

Anyway I was fixing the warning with ascii char...  Here is the diff for
editfont.c (the .h was just fixing the header to match it)

Kent

Index: editfont.c
===================================================================
RCS file: /cvs01/blender/source/blender/src/editfont.c,v
retrieving revision 1.3
diff -u -r1.3 editfont.c
--- editfont.c  25 Nov 2002 12:02:05 -0000      1.3
+++ editfont.c  31 Dec 2002 11:52:10 -0000
@@ -226,11 +226,12 @@
        }
 }

-void do_textedit(unsigned short event, short val, char ascii)
+void do_textedit(unsigned short event, short val, unsigned char _ascii)
 {
        Curve *cu;
        static int accentcode= 0;
        int x, doit=0, cursmove=0;
+        int ascii = _ascii;
2002-12-31 11:54:33 +00:00
Kent Mein
b36298c60e :q! 2002-12-31 11:53:03 +00:00
Kent Mein
85ddbc4514 Updated the spacebar toolbox so the fonts are moved up 2 pixels.
It was causing funky artifacts on some letters that dropped down into the
background.

Here is the diff

Kent


Index: toolbox.c
===================================================================
RCS file: /cvs01/blender/source/blender/src/toolbox.c,v
retrieving revision 1.5
diff -u -r1.5 toolbox.c
--- toolbox.c   22 Dec 2002 13:43:21 -0000      1.5
+++ toolbox.c   30 Dec 2002 20:13:51 -0000
@@ -506,7 +506,7 @@
        oldcursor= get_cursor();
        set_cursor(CURSOR_STD);

-       tbfontyofs= (TBOXH-11)/2;       /* toolbox, hier stond ooit getheigh */
+       tbfontyofs= (TBOXH-11)/2 +2;    /* toolbox, hier stond ooit getheigh */
 }
2002-12-30 20:15:07 +00:00
Kent Mein
5e6d6710c4 renamed a var to avoid name conflicts...
In the header its just this..
-void initjit(float *jit, int num)
+void initjit(float *jitarr, int num)

its respectively renamed in jitter.c

Kent
2002-12-30 07:15:47 +00:00
Kent Mein
e9a7e30758 Removed another unused var and cleaned up a couple of lines of code
Here is the diff

Kent

Index: GameLogic/SCA_KeyboardSensor.cpp
===================================================================
RCS file: /cvs01/blender/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp,v
retrieving revision 1.3
diff -u -r1.3 SCA_KeyboardSensor.cpp
--- GameLogic/SCA_KeyboardSensor.cpp    25 Nov 2002 15:29:42 -0000      1.3
+++ GameLogic/SCA_KeyboardSensor.cpp    30 Dec 2002 07:09:42 -0000
@@ -167,14 +167,14 @@
        } else
        {

-         //            cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl;
-               const SCA_InputEvent & inevent = inputdev->GetEventValue((SCA_IInputDevice::KX_EnumInputs) m_hotkey);
+       //              cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl;
+               const SCA_InputEvent & inevent = inputdev->GetEventValue(
+                       (SCA_IInputDevice::KX_EnumInputs) m_hotkey);

-               //              cerr << "======= SCA_KeyboardSensor::Evaluate::
status: " << inevent.m_status << endl;
+       //              cerr << "======= SCA_KeyboardSensor::Evaluate:: status: " << inevent.m_status << endl;

                if (inevent.m_status == SCA_InputEvent::KX_NO_INPUTSTATUS)
                {
-                       int i=4;
                } else
                {
                        if (inevent.m_status == SCA_InputEvent::KX_JUSTACTIVATED)
2002-12-30 07:13:26 +00:00
Kent Mein
cc95cdd390 Removed unused var here is the diff:
Kent


Index: gameengine/Ketsji/KX_PyConstraintBinding.cpp
===================================================================
RCS file: /cvs01/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp,v
retrieving revision 1.3
diff -u -r1.3 KX_PyConstraintBinding.cpp
--- gameengine/Ketsji/KX_PyConstraintBinding.cpp        25 Nov 2002 15:29:49 -0000      1.3
+++ gameengine/Ketsji/KX_PyConstraintBinding.cpp        30 Dec 2002 07:08:18 -0000
@@ -128,7 +128,6 @@
 {
        int constraintid;

-       int len = PyTuple_Size(args);
        if (PyArg_ParseTuple(args,"i",&constraintid))
        {
                if (g_physics_env)
2002-12-30 07:09:23 +00:00
Stefan Gartner
707dfe1c38 added two accidentally deleted #'s (without them makesdna wouldn't work
properly)

sgefant
2002-12-27 21:14:32 +00:00
Kent Mein
f1c4f705a1 Removed the config.h thing from the .h's in the source dir.
So we should be all set now :)

Kent
--
mein@cs.umn.edu
2002-12-27 13:11:01 +00:00
Maarten Gribnau
1737a73a4a Disabled player's check for Publisher file for input.
Maarten
2002-12-22 22:02:57 +00:00
Maarten Gribnau
2417e61e16 Fixed binary files stored as text files for plug-ins
Maarten
2002-12-22 22:00:55 +00:00
Simon Clitherow
a79780b1a4 fixed a *really* minor bug where tooltips were not resetting if next
call to add_numbut() asks for a NULL tooltip. --aphex

============================================================
RCS file: /cvs01/blender/source/blender/src/toolbox.c,v
retrieving revision 1.4
diff -r1.4 toolbox.c
1356c1356,1360
< 	if(tip) strcpy(numbuts[nr].tip, tip);
---
> 	if(tip)
> 		strcpy(numbuts[nr].tip, tip);
> 	else
> 		strcpy(numbuts[nr].tip, "");
>
2002-12-22 13:43:21 +00:00
Maarten Gribnau
efb524d53f Rewired python for OSX. The Makefiles now use the Python that comes with OSX
in /usr/local.
mxTextTools is still disabled because of a link error.
Maarten
2002-12-21 22:26:46 +00:00
Kent Mein
3bc9dda799 added the DELKEY stuff...
else if(dev==DELKEY) {
                                if(but->pos>=0 && but->pos<strlen(str)) {
                                        for(x=but->pos; x<=strlen(str); x++)
                                                str[x]= str[x+1];
                                        str[--len]='\0';
                                        dodraw= 1;
                                }
                        }

Kent
2002-12-21 10:14:03 +00:00
Kent Mein
9bb91f9e57 Fix so that rgba targa files view correctly in gimp:
Submitted to bf-committers by Chris Want

Kent

Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.4
diff -u -r1.4 targa.c
--- targa.c     2002/12/20 01:29:14     1.4
+++ targa.c     2002/12/21 09:50:24
@@ -289,6 +289,12 @@

        if (flags & IB_ttob) buf[17] ^= 0x20;

+        /* Don't forget to indicate that your 32 bit
+         * targa uses 8 bits for the alpha channel! */
+        if (ibuf->depth==32) {
+           buf[17] |= 0x08;
+        }
+
        if (write(file, buf, 18) != 18) return (0);
        if (ibuf->cmap){
                for (i = 0 ; i<ibuf->maxcol ; i++){
2002-12-21 09:52:03 +00:00
Kent Mein
0f95aa1622 This is sort of a two parter from the mailling list but really its the
same thing:

Added the xpcom include and added a flag to use mozilla vs netscape.
Which basically adds some ifdefs to
_Blender3DPlugin_implementation_.cpp

Basically I modified the nan_definitions.mk in the following way
(You'll need to update yours don't forget) ;)
Also updated the makefiles to use the new vars and flushed them out
so they first include whatever nspr is set to and then look in
NAN_MOZILLA_INC

I wasn't sure what the NAN_MOZILLA_INC and _LIB defaults should be
since were assuming they point to a netscape dir by default (or maybe
old mozilla???)
maybe they should be
   export NAN_MOZILLA_INC ?= $(LCGDIR)/netscape/include
   export NAN_MOZILLA_LIB ?= $(LCGDIR)/netscape/lib/

instead...

Anyone have any opinions on the defaults?

Kent
--
mein@cs.umn.edu

Index: nan_definitions.mk
===================================================================
RCS file: /cvs01/blender/source/nan_definitions.mk,v
retrieving revision 1.8
diff -u -r1.8 nan_definitions.mk
--- nan_definitions.mk  2002/12/19 21:12:58     1.8
+++ nan_definitions.mk  2002/12/20 19:28:51
@@ -75,7 +75,13 @@
     export NAN_TEST_VERBOSITY ?= 1
     export NAN_ZLIB ?= $(LCGDIR)/zlib
     export NAN_BMFONT ?= $(LCGDIR)/bmfont
-    export NAN_MOZILLA ?= $(LCGDIR)/mozilla
+    # Uncomment the following line to use Mozilla inplace of netscape
+    # CPPFLAGS +=-DMOZ_NOT_NET
+    # Location of MOZILLA/Netscape header files...
+    export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
+    export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
+    # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
+    # if this is not set.
     export NAN_NSPR ?= $(LCGDIR)/nspr
2002-12-20 19:37:38 +00:00
Kent Mein
171eeaa389 Fixed up the header comment so it didn't produce a warning about
comment inside of a comment

Also removed the config.h thing since this is a .h

Hopefully I'll get around to the other .h's soon.

Kent
--
mein@cs.umn.edu
2002-12-20 09:41:25 +00:00
Kent Mein
5a9b727079 Ok last change for the night :)
Time to go watch er.

Note this was already done with face_old, img_old was probably just
overlooked.
(If you guys didn't notice I was sick for a couple of days but I'm back now
as you can tell)

Kent
--
mein@cs.umn.edu

Index: editface.c
===================================================================
RCS file: /cvs01/blender/source/blender/src/editface.c,v
retrieving revision 1.3
diff -u -r1.3 editface.c
--- editface.c  2002/11/25 12:02:05     1.3
+++ editface.c  2002/12/20 02:50:55
@@ -1202,7 +1202,7 @@
        TFace *face, *face_old = 0;
        short xy[2], xy_old[2];
        //int a, index;
-       Image *img, *img_old;
+       Image *img, *img_old = 0;
2002-12-20 02:52:58 +00:00
Kent Mein
e49aeb8468 In stubs.c I added a dummy return to functions that were non void types.
in readfile.c I renamed some localvars that were named main to mainl in
a couple of functions.

in action.c I initalized a var to 0.  This is probably not needed but
its a little safer incase someone adds more modes...
I've included a diff of this last one below.

Kent

Index: action.c
===================================================================
RCS file: /cvs01/blender/source/blender/blenkernel/intern/action.c,v
retrieving revision 1.6
diff -u -r1.6 action.c
--- action.c    2002/11/25 12:01:52     1.6
+++ action.c    2002/12/20 02:06:27
@@ -153,7 +153,7 @@
 ){
        bConstraint *dcon;
        const bConstraint *scon;
-       float dstweight;
+       float dstweight = 0;

        switch (mode){
        case POSE_BLEND:
2002-12-20 02:08:46 +00:00
Kent Mein
cf13c60fa4 Two more variables that were not initalized.
cvs diff included below.

Kent
--
mein@cs.umn.edu

Index: png_encode.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/png_encode.c,v
retrieving revision 1.3
diff -u -r1.3 png_encode.c
--- png_encode.c        2002/11/25 12:02:00     1.3
+++ png_encode.c        2002/12/20 01:28:18
@@ -91,7 +91,7 @@
        unsigned char *pixels = 0;
        unsigned char *from, *to;
        png_bytepp row_pointers = 0;
-       int i, bytesperpixel, color_type;
+       int i, bytesperpixel, color_type = PNG_COLOR_TYPE_GRAY;
        FILE *fp = 0;

Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.3
diff -u -r1.3 targa.c
--- targa.c     2002/11/25 12:02:00     1.3
+++ targa.c     2002/12/20 01:28:20
@@ -247,7 +247,7 @@
        char buf[20];
        FILE *fildes;
        int i;
-       short ok;
+       short ok = 0;
2002-12-20 01:29:14 +00:00
Kent Mein
14819414e9 Ok since no one cares about this I put a 5 second fix on it and won't
worry about it anymore :)

(initalized it to 0 and then later return 0 if its still 0 before doing
the work)

Kent
--
mein@cs.umn.edu
2002-12-20 01:14:46 +00:00
Kent Mein
734e358eb4 Fixed two uninitalized vars:
Kent

 /cvs01/blender/source/blender/imbuf/intern/iris.c,v
retrieving revision 1.3
diff -u -r1.3 iris.c
--- iris.c      2002/11/25 12:02:00     1.3
+++ iris.c      2002/12/19 22:12:53
@@ -212,7 +212,7 @@
 /*  unsigned int *tab; */
 /*  int len; */
 {
-       int r;
+       int r = 0;

        while(len) {
                r = putlong(outf,*tab++);
@@ -548,7 +548,7 @@
 {
        FILE *outf;
        IMAGE *image;
-       int tablen, y, z, pos, len;
+       int tablen, y, z, pos, len = 0;
        int *starttab, *lengthtab;
        unsigned char *rlebuf;
2002-12-19 22:13:37 +00:00
Maarten Gribnau
59cee3c47f Added the the magic compiler flag that will turn on game-engine integration with Blender. The line is commented by default as was discussed on the list.
Maarten
2002-12-19 22:06:32 +00:00
Kent Mein
f8ef881474 I initalized mask to 0 in IMB_converttocmap
This may not be correct but at least now its predictable.

Kent
2002-12-19 21:26:34 +00:00
Maarten Gribnau
ac699ba672 Used NAN_ODE to point to the ode lib location.
Maarten
2002-12-19 21:14:18 +00:00
Maarten Gribnau
d417a42673 Overrided NAN_ODE in OSX to point to the precompiled ode lib in the lib tree.
Maarten
2002-12-19 21:12:58 +00:00
Maarten Gribnau
eb12ae40dc Removed Ode build from OSX target.
This is now replaced by the Ode lib in CVS.
Maarten
2002-12-16 22:31:50 +00:00
Kent Mein
d374995374 This might be a slight hack but Iksolver library was complaining about
some linking stuff that was in libmoto.a so I added a libmoto after it
in the link lines.

Hans got a better way to do this? :)

Kent

Here is the diff:
RCS file: /cvs01/blender/source/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile    2002/11/13 16:09:38     1.12
+++ Makefile    2002/12/13 20:28:13
@@ -165,6 +165,7 @@
     COMLIB += $(NAN_PNG)/lib/libpng.a

     BCLIB = $(NAN_IKSOLVER)/lib/libiksolver.a
+    BCLIB += $(NAN_MOTO)/lib/libmoto.a
     BCLIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
     BCLIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.a
     BCLIB += $(OCGDIR)/blender/writestreamglueSTUB/$(DEBUG_DIR)libwritestreamglueSTUB.a
@@ -174,6 +175,7 @@
     BCLIB += $(OCGDIR)/blender/src/$(DEBUG_DIR)libsrccreator.a

     PULIB = $(NAN_IKSOLVER)/lib/libiksolver.a
+    PULIB += $(NAN_MOTO)/lib/libmoto.a
     PULIB += $(OCGDIR)/blender/readblenfile/$(DEBUG_DIR)libreadblenfile.a
     PULIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.a
     PULIB += $(OCGDIR)/blender/writestreamglue/$(DEBUG_DIR)libwritestreamglue.a
2002-12-13 20:30:07 +00:00
Maarten Gribnau
a64f137a37 Had to add a function (BPY_call_importloader) and a variable (bprogname)
to the stubs to get the player linking with Project Builder under OSX.
Maarten
2002-12-12 22:18:25 +00:00
Stefan Gartner
87e588d4c9 compile and run source/blender/makesdna/intern/makesdna to (re)create
source/blender/makesdna/intern/dna.c

This should fix the segfault at startup for non-x86 systems (tested on
linux/ppc and linux/x86). I would be glad if someone could check
if it works on other systems as well.

sgefant
2002-12-10 23:55:59 +00:00
Stefan Gartner
2494b7c9cc don't crash when adding a UVsphere (Hos, heli)
sgefant
2002-12-07 20:57:50 +00:00
Kent Mein
cd4a60f536 sgefants patch to remove the License Key stuff.
(I noticed its not completely gone yet from the blender/source dir)
But its a big step in the right direction if it doesn't enable
all of the functionatlity already...

(Using cscope for LICENSE_KEY_VALID still turns up some stuff)

Kent
--
mein@cs.umn.edu
2002-12-06 19:48:37 +00:00
Kent Mein
fd05cdbaad Ok this should have probably been three seperate things but I figured
some people are getting sick of the email and the comments are small.

editmesh.c I added casts in a couple of places to remove a few warnings.

Then I cleaned up configure.ac a bit specifically the checks for
--with-ssl etc... so they work a little nicer.

I also modified source/Makefile.am to add targets for the player
Still needs some work I'm sure but its a start.

Kent
--
mein@cs.umn.edu
2002-12-03 18:31:50 +00:00
Kent Mein
50ec450e64 Had to make the patch for casting a little more complicated.
m_MotionState->getWorldOrientation((float)worldquat[1],
        (float)worldquat[2],(float)worldquat[3],(float)worldquat[0]);

Is now:

#ifdef dDOUBLE
      m_MotionState->getWorldOrientation((float)worldquat[1],
        (float)worldquat[2],(float)worldquat[3],(float)worldquat[0]);
#else
      m_MotionState->getWorldOrientation(worldquat[1],
        worldquat[2],worldquat[3],worldquat[0]);
#endif


Kent
--
mein@cs.umn.edu
2002-12-03 15:52:47 +00:00
Kent Mein
5b88406c3f I moved source/darwin/blenderpublisher.app to source/darwin/blender.app
or at least tried.
You will probably want to rm -rf source/darwin/blenderpublisher.app

Kent
--
mein@cs.umn.edu
2002-12-03 10:02:40 +00:00
Kent Mein
73aef31b52 I got this patch from sgefant Mostly its just casting floats as floats.
(also adding a couple of include pathes)
changes in Ode*.cpp to get it compile with gcc 2.95.4
to make it compile with ./configure --with-gameengine
                        --enable-gameplayer


Kent
--
mein@cs.umn.edu
2002-12-02 16:30:13 +00:00
Maarten Gribnau
4950e0e74b wrapped S_ISREG and S_ISDIR with a define to suppress compiler
complaints about redefinitions. These occur now that Python 2.2 is included.
2002-12-01 22:41:22 +00:00