Commit Graph

692 Commits

Author SHA1 Message Date
Ton Roosendaal
29edbab2c9 - fix bug #481
when adding a new scene in a Screen without buttons window, a pointer
  was referenced which is zero
2003-08-17 12:56:41 +00:00
Stefan Gartner
17eac8a60c allow NAN_SDL etc. to be overridden on OS X 2003-08-16 22:28:19 +00:00
Chris Want
15c996b471 Making Hans' mods to sdl in nan_definition.mk work under irix. 2003-08-16 20:16:40 +00:00
Hans Lambermont
9d9ee107c3 SDL definitions cleanup and fix for FreeBSD (FreeBSD SDL ports
maintainers really *really* only want to use sdl11-config while not
offering sdl-config as well ...)
This patch was briefly discussed on -committers but still might break
SDL stuff.
2003-08-16 11:28:51 +00:00
Ton Roosendaal
85245bfe13 - make sure shadowbuffers are tested & corrected for sizes that are
multiples of 16 pixels
2003-08-15 14:39:08 +00:00
Kent Mein
abede3ca04 A little more cleanup, removed a bunch of unused vars in the code.
Trying to get rid of some of the extra warnings we can ignore ;)

Kent
2003-08-14 15:18:45 +00:00
Simon Clitherow
80f3d5863e - Transition period for Windows... Part 2! :) 2003-08-12 20:37:45 +00:00
Simon Clitherow
776374f38b - Transition period for Windows... Ctrl+U now saves in
~/.blender, but we still check old locations to avoid people from
  losing settings! :)

  This does not affect any other platform.
2003-08-12 20:37:14 +00:00
Simon Clitherow
258bc61e2a - Fix bug #250:
Blender no longer uses the windows dir as %HOME%
  This also fixes the ".blanguage not found" errors when
  double-clicking .blend files. (Win32)

  Needs testing at Win2k/XP!!!
2003-08-11 18:53:23 +00:00
Ton Roosendaal
159f53f0a0 - increased toon value 'size' to 3.14 for diff, and 1.53 for spec, as in
tuhopuu (as max for buttons)
- Sun lamps now do toon specularity too

Hemi lamps dont do any other shader than the old ones still... the
implimentation of it in Tuhopuu is disputable, will solve this for 2.29
2003-08-11 18:18:11 +00:00
Willian Padovani Germano
2289f3abb6 Exppython:
- Adding argv to the builtin sys Python module:
    Currently only argv[0] is there.  This fixes a weird error that can make
    correct scripts fail.
2003-08-10 23:18:00 +00:00
Michel Selten
7163867395 * Fix crash in the getParent() and getTracked() methods of the Python API.
This crash was reported by Jean-Michel Soler (jms).
  Problem was that I was trying to be a little too intelligent. I kept a
  reference to created PyObjects which at some point apparently fails. Keeping
  the object references is not necessary. Now we just create a new PyObject
  when necessary and let Python handle the reference counts.
2003-08-10 10:03:37 +00:00
Ton Roosendaal
84f2b08461 - patch provided by Jiri, to prevent polygonizer not to do metaballs
outside of the old boundbox of the Object.

  it's a small fix, the code is still commented in... need further
  work to find out why sometimes balls disappear
2003-08-09 17:09:11 +00:00
Ton Roosendaal
e2a702a7b4 - Fixed bug #440, an error resulting from work at optimizing 'glflush'
calls.

  Added a comment in the code why it happens... its about safely
  escaping from buttons/blocks loops before loading a new file!
2003-08-07 14:08:41 +00:00
Jacques Guignot
d24761807d changed a return value for Irix compiler 2003-08-07 13:20:25 +00:00
Willian Padovani Germano
1e433aeb58 Exppython:
- Fixed crash in NMesh:
    When trying to rename newly created meshes, Blender would crash due to
    invalid id->lib in new_id().
2003-08-07 04:12:44 +00:00
Michel Selten
0c1f9dd832 * Updated the Python API module documentation for Object.
Added a couple of examples for some functions.
* Fixed some small documentation problems with regards to the implementation.
2003-08-06 22:08:56 +00:00
Willian Padovani Germano
577616b358 Exppython:
- Update method scene.update():
    To accept an optional parameter for a "full" update (using set_scene_bg()).
- Updated the docs accordingly.
2003-08-06 19:25:06 +00:00
Michel Selten
2db07e8f27 * Updated the Python API module documentation for Object.
This module now contains a complete description - finally.
2003-08-06 17:04:36 +00:00
Michel Selten
598da24413 * Fixed crash when editing Ipo curves on Linux.
This problem only occurs on Linux with NVidia cards.
  Fixed by Timo Mihaljov (noid).
2003-08-06 14:57:11 +00:00
Michel Selten
cf322b1a9a * Fix problem that edge select hotkey doesn't work on Linux.
Edge select is now _only_ working with ctrl-alt-RMB. Patch provided by
  Roel Spruit (Goofster).
2003-08-06 12:25:24 +00:00
Alexander Ewering
d3e2e5e660 Fix volume envelopes for audio strips, they now work in all spaces. 2003-08-05 13:39:27 +00:00
Stefan Gartner
babd29f1df don't use QuickTime to load tga, png, and jpg images, as this causes
problems when trying to play a sequence of images (fixes bug #430)
2003-08-05 12:44:34 +00:00
Jacques Guignot
05187adc2f removed unuseful function calls in BezTriple.[ch]
general cleaning of Ipocurve.c Ipocurve.h Ipo.h Ipo.c
updated doc
2003-08-05 10:19:28 +00:00
Willian Padovani Germano
683c322b0e Exppython:
- Fixed bug #399:
    Old bug on NMesh: segfault on NMesh.Face(vertexlist).
- Fixed bug #433:
    "Typo" on Armature: bone's setQuat method was changing bone->head, not
    bone->quat.
2003-08-05 03:45:31 +00:00
Chris Want
4796c8599b Irix mips3 build, Part 2
Ensuring that the build uses the rebuilt
mips3 libs.

Please test!
2003-08-04 03:26:07 +00:00
Willian Padovani Germano
41211edfee Exppython:
Text module: trying to get the filename attribute didn't check for NULL.
  Reported by Stani Michiels. Fixed now.
2003-08-02 20:49:31 +00:00
Willian Padovani Germano
1a0fc24542 Exppython:
Expanding NMesh_update() to accept a parameter to tell it to recalculate
  normals, I introduced an error: new meshes would segfault Blender.  Fixed.
2003-08-02 03:37:16 +00:00
Jacques Guignot
08c1fe6818 Added a new function (member of the Ipo object) EvaluateCurveOn(int pos, float time) which returns the value of the ipo curve number pos at the given time.
Updated doc accordingly.
2003-08-01 19:47:01 +00:00
Stefan Gartner
4ebd7f6301 added path to IMB_imbuf_types.h to include path (needed by Image.c) 2003-07-31 18:34:41 +00:00
Willian Padovani Germano
fe07b232b7 * got rid of a warning in editipo.c:
changed "get_ipo(key, ..." to "get_ipo((ID *)key, ..." in line 107.
* changed insert_meshkey(Mesh *me) to insert_meshkey(Mesh *me, short offline):
   To call this function from a script, so that it doesn't pop the
   "relative / absolute" dialog window when the "offline" arg is non-zero.

Exppython:

* NMesh module:
   - Added method NMesh.addMaterial(mat) to the NMesh module:
   alternative safer (aka slower) way to add materials.
   - Added optional arg to NMesh_update():
   if given and equal to 1, the mesh normals are recalculated.
   - Fixed NMesh.getVertexInfluences: it was segfaulting when a NULL bone was
   linked to the vertex.  Thanks to Jiba on the bf-python mailing list for
   bug report and sample .blend file.  Also made this method give an IndexError
   when the vertex index is out of range.
* Material module:
   Added specR, specG, specB vars for compatibility with the 2.25 API.
   Pointed by Manuel Bastioni.
* Image module:
    Exposed image width, height and depth parameters.
    From a suggestion by jms.
* BPython Ref Doc:
  - Small updates to reflect the above additions.
  - Added info for the Bone type in the Armature doc.
2003-07-30 21:15:41 +00:00
Michel Selten
35c4c3222c * Linking a Mesh object to the base object was not possible. Fixed.
* Clean up of some comments.
2003-07-30 21:02:55 +00:00
Michel Selten
a284d65d1c * Updated the Object.py documentation.
Not all is finished, but we're getting there.
2003-07-30 20:52:35 +00:00
Michel Selten
8a558f2e45 * Fixed crash in Object.getTracked() method
It tried to create a new Object from the tracked variable, when the variable
  was NULL. Ouch.
2003-07-30 18:47:05 +00:00
Rob Haarsma
cef267684e cvs maillist test. pls ignore. 2003-07-29 14:22:08 +00:00
Rob Haarsma
9aef0bab5c Modified Text alignment, it now aligns from the origin (centre) of the Text object. 2003-07-29 13:36:18 +00:00
Chris Want
d58a5fa269 Added the variable NAN_NO_OPENAL to force building without
openal. Set NAN_NO_OPENAL to true for this behavior.
Also removed a comment about EXPYTHON, which is obsolete.
2003-07-27 17:09:19 +00:00
Michel Selten
916f527253 * Fixed problems in with script linking.
I had to update many files to get this to work.
2003-07-27 15:56:32 +00:00
Jacques Guignot
2222fc7168 added functions World_CheckPyObject World_FromPyObject World_CreatePyObject and World_compare 2003-07-27 13:53:29 +00:00
Willian Padovani Germano
c886b5a7bf Exppython docs:
Fixing a small comment in the nmesh doc, to avoid confusion.
2003-07-26 20:19:01 +00:00
Jacques Guignot
28e4b0118c added function buildParts 2003-07-25 19:53:42 +00:00
Jacques Guignot
7b324bef33 bug fixes in functions getLocation and similar.
added buildParts() methods, which forces the computation of the partivcle system.
2003-07-25 19:52:51 +00:00
Jacques Guignot
65de07aeec removed a debug message 2003-07-25 09:00:01 +00:00
Ton Roosendaal
13f7233f2f - tiny changes:
- more crispy splash screen from Matt
  - insert key menu reworded in more logical way ("Nah, the other kind" :)
2003-07-23 09:47:22 +00:00
Stefan Gartner
33700b8b65 fix bug #397:
shift+o caused a crash if no object was active (tsk...)
2003-07-23 00:24:42 +00:00
Ton Roosendaal
46cbeb28a0 bugreport from intrr:
- spec was at wrong location in shaded view
- shaded view didnt do 'nospec' and 'nodiffuse' options

Both fixed!
2003-07-22 21:50:21 +00:00
Alexander Ewering
ae848a97c4 Images in Sequence editor work again! Isn't this great! :) 2003-07-22 21:17:30 +00:00
Ton Roosendaal
28495ad12b - fixed .B.blend, with hacked in version number 2.27... otherwise it does
not show a splash, hah!
2003-07-22 20:38:15 +00:00
Ton Roosendaal
932e9e8316 - new standard .b.blend file which has changes:
- the plane has a material
  - material has texture
  - scene has a world
  - default set 'draw faces' and 'draw edges'

that last one for the noobies, to prevent them complaining!

- added a note in interface.c about the new api doc

- forgot to commit blender.c, for setting the G.f from the file
  (this will save faceselect and vertexpaint mode too)
2003-07-22 19:49:47 +00:00
Michel Selten
43f8138974 * Fix an ugly crash when retrieving an object and trying to get the ipo from
it. Ouch, I really need to remove those small parts of duplicate code for
  2.29 - too much maintanance which eventually goes wrong.
2003-07-22 18:42:57 +00:00
Jacques Guignot
9ab32780ae addition of a small example 2003-07-22 18:11:07 +00:00
Ton Roosendaal
9085330008 - reverted change which only displayed lamp icon in buttons-header when a
lamp was selected.

- left in that; when a lamp is selected with materialbuttons open, it goes
  to lampbuttons automatic, and vice versa
2003-07-22 16:19:55 +00:00
Ton Roosendaal
5574bd234b - fixed 'HOME' option for action window. it had a wrong 'max zoom' setting.
also provided a patch in do_versions to make saved action windows work.

  now you can zoom out nicely again!
2003-07-22 14:28:56 +00:00
Jacques Guignot
68c3a6dccd removed the patch for ipo attr, which had side effects 2003-07-22 13:56:41 +00:00
Ton Roosendaal
7e5a6ec482 - tinsy bit toned down new color for rvk sliders, to match the blender
scheme
- restored commented out test_view2d() call in changeactionspace(). this
  fixes the errors when opening a new or larger action window, with wrong
  layout/matrices
  (HOS: can you verify that doesnt break stuff?)
2003-07-22 12:49:32 +00:00
Chris Want
4f83159bb2 Fixed it so that add nla strip works even when databrowse is not needed. 2003-07-22 02:38:27 +00:00
Willian Padovani Germano
de60889865 Exppython docs:
- Updates and fixes to the documentation files, only, no code involved.
2003-07-22 00:27:03 +00:00
Jacques Guignot
9a5cf3cb66 modified the function getattr, which crashed blender when someone tried to access a NULL field. This function returns now PyNone. 2003-07-21 21:58:13 +00:00
Ton Roosendaal
bf23ed161e - bugfix #178
Well, it fixes the crash, but the cause can still be in wrong freeing
  memory when deleting strips...
  Hos; I leave in the bugreport with a note for you
2003-07-21 21:21:15 +00:00
Wouter van Heyst
d2fe1ea50a - Make the output bin/ directory for every target that needs it.
Fixes build problems where (for example) plugin was to be made before the real
blender targets, and the entire build failed because of this missing directory.
It used to be so that nan_subdirs.mk made the output directory, but that relies
on DIR being correctly set, which is no longer the case.
2003-07-21 20:09:36 +00:00
Ton Roosendaal
aa9f2a5733 - saves the 'draw faces' flag in a file, in fact the entire G.f flag.
WARN: this recompiles other stuff too, outside of the loader. be sure
  to 'make' in source/blender/ or a higher dir.
2003-07-21 19:41:07 +00:00
Ton Roosendaal
85d043ffef - slightly improved icons, again by xype. Now they are less ... er ..
shady!
2003-07-21 18:25:50 +00:00
Ton Roosendaal
5009911788 - lazy pointer check... foei foei ton!
reported bug: deleting object, with material button visible, crash!
  fixed now...
2003-07-21 18:11:35 +00:00
Ton Roosendaal
03ada07a57 - fixed a small error, the change i made before with frontbuffer drawing
of right-mouse selection of objects, now calls a correct glFlush

  only to be noticed at osx and nvidia systems...
2003-07-21 17:46:55 +00:00
Ton Roosendaal
e229cf24e2 - restored proportional hotkey. it now works again as follows:
In editmode;
    press OKEY to toggle proportional editing
    press SHIFT+OKEY to toggle sharp/smooth proportional editing

- outside of editmode, the SHIFT+O toggles subsurf on/off

- its a compromise... :)
2003-07-21 17:44:23 +00:00
Michel Selten
a223e9f055 * Fix small compilation problem in Ipo.c
Moved the declaration of a variable to the beginning of a function.
2003-07-21 17:35:19 +00:00
Jacques Guignot
ee5461b06a reincorporation in the cvs of modifications which had been lost. 2003-07-21 00:08:30 +00:00
Chris Want
2a4fae99ce sdl stuff modified to work well on irix 2003-07-20 23:26:38 +00:00
Chris Want
85f961bdb4 Some manipulations of the keyword 'static' to get
blender to compile
2003-07-20 23:06:59 +00:00
Chris Want
cf495e6655 Support for using the action window as a tool for modifying
(mesh or lattice) RVK IpoCurves: support currently includes:

	- RVK sliders. Pressing the little triangle next to
	  the word 'sliders' in the channel names opens them up.
	- NKEY in the area where the key block names are allows the
	  user to change the name of the keyblock, and the max and min
	  values of the RVK sliders.
	- ability to visualize the keyframes for the IpoCurves when
	  the object is selected.
	- right mouse can be used to select the keys
	- border select in the main area can be used to border
	  select keys.
	- AKEY selects/deselects all of the keys
	- GKEY and SKEY can be used to grab or scale the key
	  selections.
	- XKEY deletes the selected keys.
	- DKEY duplicated the selected keys.
	- VKEY, HKEY and shift-HKEY change the bezier handles for
	  the selected keys.

Please, please, please test!
2003-07-20 23:04:09 +00:00
Ton Roosendaal
9a9cb5448b - changed order for 'draw faces'... it now draws first, then wire and
vertices
2003-07-20 20:38:22 +00:00
Ton Roosendaal
6b070b3d0d - added ALT_RIGHTMOUSE select edges in Mesh editmode
- added 'draw edges' mode in F9 menu
- changed ugly 'draw faces' in a nice transparant :)
- hotkey for screenshots: ALT+CTRL+F3 now works too
2003-07-20 20:25:30 +00:00
Michel Selten
2ccf7ffb84 * removed the #include .c statements and replaced them with corresponding .h
files.
* updated the build environment to include the needed .c files.
* Updated the modules.h file to expose the necessary functions to other
  modules.
2003-07-20 18:06:06 +00:00
Ton Roosendaal
5a7db88f59 - added patches for shaders in the stub... displist.c calls it. Bad Bad! 2003-07-20 17:59:57 +00:00
Ton Roosendaal
d5c829e413 - added the 'no diffuse' and 'no specularity' options for Lamps, as were
in Tuhopuu
- added the Tuhopuu feature which displays material-buttons and lamp-
  buttons integrated. saves button presses that way!
2003-07-20 15:55:02 +00:00
Ton Roosendaal
502b672219 - translated the main radiosity structure comments 2003-07-20 15:52:25 +00:00
Stefan Gartner
c5d8d5ffe2 new os x icons by xype 2003-07-20 13:38:51 +00:00
Ton Roosendaal
45845c51a9 - changed button type for WorldButtns->misi to fit with the others. Just
for a better looks.
2003-07-20 08:58:42 +00:00
Willian Padovani Germano
4856071402 Exppython:
Still compilation problems, wrong type returned in a function.
2003-07-19 21:04:33 +00:00
Willian Padovani Germano
b2d1921d26 Exppython:
- Trying to correct a compile problem. IpoCurve_Init wasn't declared in modules.h
2003-07-19 20:44:25 +00:00
Ton Roosendaal
9bf630a1f3 WARNING: with makefiles I could not get a stable blender compiled.
do a make clean in source/blender/ to be sure!

- Included the new shaders from Cessen... well, only the shader calls
  themselves. To make sure the shaders work I nicely integrated it

- MaterialButtons: layout changed a bit, but still resembles the old
  layout. The 'shader' options now are located together.

- Shaders are separated in 'diffuse' and 'specular'. You can combine them
  freely.

- diffuse Lambert: old shader
  diffuse Oren Nayar: new shader, gives sandy/silky/skinny material well
  diffuse Toon: for cartoon render

- specular Phong: new spec, traditional 70ies spec
  specular CookTorr: a reduced version of cook torrance shading, does
                     off specular peak well
  specular Blinn: new spec, same features as CookTorr, but with extra
                  'refraction' setting
  specular Toon: new spec for cartoon render

- default blender starts with settings that render compatible!

- works in shaded view and preview-render

- works in unified render

Further little changes:

- removed paranoia compile warnings from render/loader/blenlib

- and the warnings at files I worked at were removed.
2003-07-19 20:31:29 +00:00
Ton Roosendaal
8607322385 - fixed bug in renderwin zoom function. You now can press 'Z' in a window
again, and move your mouse around to scan the image.
  MiddleMouse works too, but less intuitive

- at some systems it is still slow, bad clipping code...
2003-07-19 20:19:31 +00:00
Ton Roosendaal
3d691c77cf - Blender in background render mode (blender -b) now reacts to CTRL+C
again. You'll have to do it twice... first CTRL+C will send an internal
  break (exit render loops)
- I prefer this in foreground mode too, but Python uses it as well, to
  escape from loops. We have to fix this once.
2003-07-19 20:14:07 +00:00
Jacques Guignot
542f05451a World : got rid of debug messages
Blender : declatation of the module IpoCurve
Ipo : modifications (new attributes) to keep the compatibility with 227 api
2003-07-19 08:32:01 +00:00
Jacques Guignot
d51107b804 Nex modules added to keep a minimal compatibility with 227 api 2003-07-19 08:29:55 +00:00
Ton Roosendaal
a851bf1b9c - fixed error message at OSX in interface.c, added a load of comments there
to understand the central loop better.
2003-07-18 18:32:57 +00:00
Alexander Ewering
a65ce19175 Added "Group selection" menu (SHIFT-G), which offers the following options:
1 - Children
2 - Immediate Children
3 - Parent
4 - Objects on shared layers

1: Selects all direct children of the active object
2: Select all children, children's children etc. of the active object
3: Makes the parent of the current object active, and deselects the
   active object
4: Selects all objects that share at least one layer with the active object

Useful for stepping through object hierarchies and for quickly selecting
objects belonging together.

See my message on bf-committers as well.
2003-07-18 15:50:33 +00:00
Alexander Ewering
c2f92ace79 Added a MEM_freeN call to sound_free_sound() to release bSound->stream
created by audio_makestream(). Fixes "Err Totblck stream len..." messages
and memory leak.
2003-07-18 15:30:12 +00:00
Stefan Gartner
2b40962ea5 properly fix the fix this time (I need more coffee...) 2003-07-18 14:43:18 +00:00
Stefan Gartner
c8aed03108 fix sdl detection 2003-07-18 13:34:55 +00:00
Ton Roosendaal
e00a27f9fd * fixed bug: pressing F11 in dispview mode opened a window
* new feature: rendering large images now displays correctly zoomed down
  in an imagewindow. The fact that it didn't also caused unpredictable
  slowdowns at various systems (tested osx, win).
  Of course after rendering you can still zoom in/out as usual.

* there was code that limits the maximum size of an imagewindow, keeping
  a small border around it free. By increasing the border 15 pixels I got
  huge speedup at OSX. Still looks good though...
  Needs more research what is happening here, maybe we need a user setting
  for it... but i rather implement the usage of the internal ImageWindow
  first.
  Still unsolved: 24 bits windows opening... I don't dare yet hacking in it
  Ghost.
2003-07-18 13:20:47 +00:00
Stefan Gartner
90f325ea6e some sdl related stuff:
* moved references to libSDL out of ifeq($(INTERNATIONAL), true) (win32)
and  ifeq($(WITH_FREETYPE2),true) (irix) conditionals in source/Makefile

* look for sdl in $(LCGDIR)/sdl if sdl-config isn't found

thanks to LarstiQ for doing most of the work
2003-07-18 10:11:40 +00:00
Simon Clitherow
93c9ed32b7 - added 'Textured Solid' to the Draw mode popup (DKEY). 2003-07-17 19:25:36 +00:00
Kent Mein
8a02f82636 Added $(NAN_SDLCFLAGS) to CPPFLAGS so that my machine
could find the SDL headers (SDL.h)

Kent
2003-07-17 14:47:19 +00:00
Kent Mein
d0c6cf7758 Fixed a couple more warnings.
Kent
2003-07-17 14:19:55 +00:00
Kent Mein
c38faa3c1f fixed a warning by adding a newline to end of file.
Kent
2003-07-17 13:47:58 +00:00
Chris Want
e7d35b40b0 - Made references to SoundSystem look in intern instead of gameengine for
all platforms. Please test on non-linux/non-irix.
- Changed another libsoundsystem.a to libSoundSystem.a.
- Removed comments refering to fmod (I assume it's not coming back ever)
2003-07-17 03:36:25 +00:00
Chris Want
ae512b137c Changed some occurances of the lib 'soundsystem' to 'SoundSystem'
(seems half of the references were one way, the other half were
the other way). Also made irix link to $(OCGDIR)/intern/*SoundSystem/*
instead of $(OCGDIR)/gameengine/*SoundSystem/*
2003-07-17 02:36:56 +00:00
Willian Padovani Germano
68b3cfbbe5 Exppython docs:
- Minor: fixed wrong url to www.python.org/doc (had written 'docs').
2003-07-17 00:26:33 +00:00
Chris Want
0fde8dedf0 Sound support for irix 2003-07-16 23:53:09 +00:00