blender-staging.git
16 years agochanged MT_NDEBUG macro to a MT_DEBUG one and reversed defines
Jean-Luc Peurière [Sun, 13 Jun 2004 21:11:10 +0000 (21:11 +0000)]
changed MT_NDEBUG macro to a MT_DEBUG one and reversed defines
So now by default, assert is not used in moto code.

If you want to use assert (and stop blender if one fail),
define MT_DEBUG.

solve bug #1292 and better fix for #1260

16 years agoBug 1335
Ton Roosendaal [Sun, 13 Jun 2004 19:30:56 +0000 (19:30 +0000)]
Bug 1335

Displace mapping + Map-Input using Object wasn't working. This caused
by the inverse matrix of an Object potentially not being calculated when
displace was calculated.

Solved by moving imat calculus to the top of the main function.

Yafray note: the convention to hack out all transformations from
renderconverter could be implemented more elegant, by moving this to
the yafray section (and just matrix-transform back). Makes code less
unreadable, but also support displacement then (and might solve other
errors).

16 years agoBug 1349
Ton Roosendaal [Sun, 13 Jun 2004 17:40:25 +0000 (17:40 +0000)]
Bug 1349

Envmap render error; when no (f10) envmap option was used, it could give
a 'stripe' effect based on a non-initialized global value. Only happens
for transparant layers...

16 years agoFix for #1355
Ton Roosendaal [Sun, 13 Jun 2004 10:18:32 +0000 (10:18 +0000)]
Fix for #1355

Recalculate normals (mesh editmode) had some weak points, as demonstrated
in the bug report sample file. It appeared to be 2 aspects that could be
simply fixed:

- for calculation of the most outer face (to set normal outside) it used
  a manhattan distance. making it real distance helped quite some
- but most important: the routine only took triangles into account, which
  didn't work proper with very irregular quads, especially with non-flat
  quads. It now calculates both trias in a quad individually.

16 years agoNew script:
Willian Padovani Germano [Sat, 12 Jun 2004 20:46:24 +0000 (20:46 +0000)]
New script:
  Ben Omari contributed a DirectX 8 Exporter (thanks!).  It will probably be updated before 2.34, as some of the other bundled scripts.

16 years ago- update to MSVC6 for Property support
Joseph Gilbert [Fri, 11 Jun 2004 13:21:32 +0000 (13:21 +0000)]
- update to MSVC6 for Property support

16 years ago- update to MSVC7 for Property support
Joseph Gilbert [Fri, 11 Jun 2004 13:19:48 +0000 (13:19 +0000)]
- update to MSVC7 for Property support

16 years ago- update to SCons for Property support
Joseph Gilbert [Fri, 11 Jun 2004 13:17:36 +0000 (13:17 +0000)]
- update to SCons for Property support

16 years ago- new internal Property module
Joseph Gilbert [Fri, 11 Jun 2004 13:15:50 +0000 (13:15 +0000)]
- new internal Property module
- Object support for add/remove/modify object Properties

16 years agoScript menus:
Willian Padovani Germano [Fri, 11 Jun 2004 09:17:49 +0000 (09:17 +0000)]
Script menus:
-- new try so that scripts place their guis and file selectors in proper places:
     should be ok now for any but the really weirdest screen layouts, will be updated when scripts are added to other menus in the interface.

16 years ago* Added a spot for scripts to register themselves in the Help menu
Matt Ebb [Fri, 11 Jun 2004 02:39:22 +0000 (02:39 +0000)]
* Added a spot for scripts to register themselves in the Help menu

* Gave the spiffy new 'System Information' script a new home there

16 years ago* Edited and consistent-ified the File->Import menu item labels and fileselect button...
Matt Ebb [Fri, 11 Jun 2004 02:12:37 +0000 (02:12 +0000)]
* Edited and consistent-ified the File->Import menu item labels and fileselect button labels, as discussed on the forums.

* Added items for importing DXF, VRML, etc. in the File->Import menu, that just call the normal Open function. Most people don't even know that you can open these formats through the normal Open fileselect, so this will make it more obvious.

* Removed the 'Export Selected' menu, and put poor old lonely STL in the Import and Export menus too. Most of the exporters export only the selected object anyway, so it's not really a necessary distinction to make.

16 years ago- small updates to scripts and bpython docs, also fixed two warnings;
Willian Padovani Germano [Thu, 10 Jun 2004 15:14:49 +0000 (15:14 +0000)]
- small updates to scripts and bpython docs, also fixed two warnings;
- added function Blender.sys.exists(path) to check if a given file exists;
- forgot to mention: in my previous commit the blender.html file was also updated slightly.

16 years agoScripts:
Willian Padovani Germano [Thu, 10 Jun 2004 03:27:46 +0000 (03:27 +0000)]
Scripts:

- tiny updates for better behavior, unix line endings, cvs Id tags;
- Updated DX7 exporter (thanks to author Ben Omari who's also working on a DX8 one);
- added sysinfo script;

Interface (scripts):

- changed behavior for which win is chosen for script guis:
    Now there's a smarter order, guis will use either:
    - Scripts win
    - Buttons win (if not a script from groups Wizards or Utils)
    - Text win
    - Closest bigger area
- Added a button to the scripts header so that it's faster to return to the buttons win (this can be made general), if that was the previous win used.

16 years agoThis fix is thanks to: hangman4 (Thomas Power)
Kent Mein [Wed, 9 Jun 2004 19:49:43 +0000 (19:49 +0000)]
This fix is thanks to: hangman4  (Thomas Power)

Basically needed a fflush on the file after all of the writing.
This closes out 1080

Kent

16 years agoFixed part of write a bmp file, its still truncating the image slightly
Kent Mein [Wed, 9 Jun 2004 19:27:48 +0000 (19:27 +0000)]
Fixed part of write a bmp file, its still truncating the image slightly
however this fixes another problem.  (Basically  the offset wasn't
being computed correctly.
This is for bug: 1080

Kent

16 years agoupdated NAN_PYTHON_VERSION to 2.3 for all platforms...
Kent Mein [Tue, 8 Jun 2004 15:47:19 +0000 (15:47 +0000)]
updated NAN_PYTHON_VERSION to 2.3 for all platforms...

Solaris and a bunch of the others were out of date....

I guess we should change them back for platforms that don't work out
with 2.3 but I'm guessing that things will get updated better this way
then asking everyone to update their own platforms.

Kent

16 years agonew function for the Metaball objects : addMetaelem, which allows users to create...
Jacques Guignot [Tue, 8 Jun 2004 07:27:37 +0000 (07:27 +0000)]
new function for the Metaball objects : addMetaelem, which allows users to create Metaballs from python.
modified doc/Metaball.py to add this function
modified Object.c to allow the creation of Metaball objects

16 years agoScripts: Campbell (ideasman) donated two more scripts: bvh motion capture import...
Willian Padovani Germano [Tue, 8 Jun 2004 05:43:00 +0000 (05:43 +0000)]
Scripts: Campbell (ideasman) donated two more scripts: bvh motion capture import/export (thanks!).

16 years agoScripts: Campbell (ideasman) updated his obj wavefront scripts.
Willian Padovani Germano [Tue, 8 Jun 2004 04:43:40 +0000 (04:43 +0000)]
Scripts: Campbell (ideasman) updated his obj wavefront scripts.

16 years agoBPython docs: small formatting fixes, basically, so that epydoc can generate dvi...
Willian Padovani Germano [Tue, 8 Jun 2004 04:41:02 +0000 (04:41 +0000)]
BPython docs: small formatting fixes, basically, so that epydoc can generate dvi, ps and pdf versions.

16 years agoAdd the separate spec colour definitions!
Kester Maddock [Mon, 7 Jun 2004 11:57:10 +0000 (11:57 +0000)]
Add the separate spec colour definitions!

16 years agoPython updates:
Kester Maddock [Mon, 7 Jun 2004 11:03:12 +0000 (11:03 +0000)]
Python updates:
Added scene module

16 years agoLighting updates:
Kester Maddock [Mon, 7 Jun 2004 11:01:31 +0000 (11:01 +0000)]
Lighting updates:
Added specular after texture.
Added Light properties: Negative, No Diffuse, No Specular, Quad, Quad2

16 years agoCorrect blenderplayer target for sys.platform == win32
Kester Maddock [Mon, 7 Jun 2004 10:10:13 +0000 (10:10 +0000)]
Correct blenderplayer target for sys.platform == win32

16 years agoBundled scripts:
Willian Padovani Germano [Mon, 7 Jun 2004 01:34:15 +0000 (01:34 +0000)]
Bundled scripts:
-starting updates and new additions for Blender 2.34:
  Some of the new scripts require Python modules not builtin with Blender, so you either need a full Python install or the needed extra modules.  This is an ongoing work, there should be more scripts, better testing and also proper ways to tell users they don't have all expected modules.  It's expected that Win users won't need full Python installs, since we can provide a minimal zip with the needed modules from 2.34 on.

Thanks to Anthony D'Agostino (scorpius), Jean-Michel Soler (jms) and Campbell Barton (Cam / ideasman) for donating the scripts now added / updated.

BPython:
-added two new script menu groups: Tools and Utils.  We still need to find places elsewhere in the gui where the groups can be put.

16 years agoScons build fixes from lukep:
Kester Maddock [Mon, 7 Jun 2004 00:57:31 +0000 (00:57 +0000)]
Scons build fixes from lukep:
Remove Physics libraries from non gameblender builds
Add Quicktime to player
From Chris Keith:
Remove Quicktime framework (MacOSX!) on Windows builds.

16 years agoReplace deprecated methods from old api:
Stephen Swaney [Sun, 6 Jun 2004 22:42:51 +0000 (22:42 +0000)]
Replace deprecated methods from old api:
  PythonReturnErrorObject
  PythonIncRef

Fix some compiler warnings about missing initializers
in method tables.

16 years agopatch for bug #1347. IpoCurve.evaluate() missing/disappeared.
Stephen Swaney [Sun, 6 Jun 2004 19:42:12 +0000 (19:42 +0000)]
patch for bug #1347.  IpoCurve.evaluate() missing/disappeared.
Contributed by Philip Wainwright.

16 years agoFixing something else broken broke: The fix for "no action == crash"
Chris Want [Sat, 5 Jun 2004 14:59:30 +0000 (14:59 +0000)]
Fixing something else broken broke: The fix for "no action == crash"
prevented rvk editing to work in the action window.

Please not that "if (act) {" (Does the object have an action? Currently
only true for some armatures) and "if (key) {" (does the object have
rvk's keys? Currently only true for meshes) are never both true at the
same time so in the following snippet, the function foo_key() never gets
executed:

if (act) {
  if (key) {
    foo_key();
  else
    foo_bar();
  }
}

Better is this:

if (key) {
  foo_key();
else if (act) {
  foo_bar();
}

16 years agoFixing something broken broke: ICON_BLOCKBUT_CORNER is not defined
Chris Want [Sat, 5 Jun 2004 14:46:38 +0000 (14:46 +0000)]
Fixing something broken broke: ICON_BLOCKBUT_CORNER is not defined
anywhere.

16 years ago* Fixed a crash in the action window when attempting to manipulate keys with no actio...
Matt Ebb [Sat, 5 Jun 2004 07:13:05 +0000 (07:13 +0000)]
* Fixed a crash in the action window when attempting to manipulate keys with no action loaded.

This addresses bug #1354 - Thanks to gabio for the report

16 years ago* Better error checking with apply deformation / make duplis real in the toolbox...
Matt Ebb [Sat, 5 Jun 2004 06:52:14 +0000 (06:52 +0000)]
* Better error checking with apply deformation / make duplis real in the toolbox (blame it on ugly apply_object() )

Addresses bug #1348, thanks wavk for the report

16 years ago* Big, mundane clean up and edit of (error/ok/etc)
Matt Ebb [Sat, 5 Jun 2004 05:55:15 +0000 (05:55 +0000)]
* Big, mundane clean up and edit of (error/ok/etc)
 messages and pupmenu()s. Edited spelling and grammar,
 stylistic consistency, etc.

I added the guidelines and rationale that I used to the
 CMS here:
http://www.blender3d.org/cms/Language_and_terminology.338.0.html

Next step is to get icons in there, to make it easier to see
 at a glance what sort of message (and how much attention
 should be paid to it, or if it can be dismissed with a flick
 of the mouse, eg. boring remove doubles notifications)

mockup: http://mke3.net:9000/blender/ui/controls/error_ok_icons.png

16 years agoblenderplayer target for SCons.
Kester Maddock [Fri, 4 Jun 2004 12:58:46 +0000 (12:58 +0000)]
blenderplayer target for SCons.

Would someone on MacOSX please check the bundle creation.

16 years agoIn Object.select() make the selected object the active object.
Stephen Swaney [Fri, 4 Jun 2004 07:52:06 +0000 (07:52 +0000)]
In Object.select() make the selected object the active object.
Update by Campbell Barton to his previous patch.

16 years agoCompile fixes for gcc 3.4
Kester Maddock [Fri, 4 Jun 2004 03:04:56 +0000 (03:04 +0000)]
Compile fixes for gcc 3.4

16 years agoMiscellaneous Fixes:
Kester Maddock [Fri, 4 Jun 2004 03:00:13 +0000 (03:00 +0000)]
Miscellaneous Fixes:
Add Python Mapping method to CListValue
Fix Bernoulli bool distribution python method for random actuator
Fix Python IpoActuator methods setProperty and force acts local
Make data objects private
Better sort method for polygon materials - much easier to understand

16 years agoFix bug #1334: Crash with Python/GameEngine when the script has syntax errors.
Kester Maddock [Fri, 4 Jun 2004 02:10:58 +0000 (02:10 +0000)]
Fix bug #1334: Crash with Python/GameEngine when the script has syntax errors.
When Python compile fails (eg syntax errors) skip the execute stage.

16 years agodeleted redefinition of var that is passed in.
Kent Mein [Thu, 3 Jun 2004 19:59:34 +0000 (19:59 +0000)]
deleted redefinition of var that is passed in.

Kent

16 years agobugfix #1345. Curve.isNurb() segfault fixed.
Stephen Swaney [Thu, 3 Jun 2004 16:23:51 +0000 (16:23 +0000)]
bugfix #1345.  Curve.isNurb() segfault fixed.

16 years ago* Tiny almost-insignificant tweak to the curvature of button drawing
Matt Ebb [Thu, 3 Jun 2004 14:30:12 +0000 (14:30 +0000)]
* Tiny almost-insignificant tweak to the curvature of button drawing

16 years ago* Added 'Transform' menus to Ipo, OOPS, Action, NLA, and
Matt Ebb [Thu, 3 Jun 2004 14:29:14 +0000 (14:29 +0000)]
* Added 'Transform' menus to Ipo, OOPS, Action, NLA, and
 Sequence spaces

* And a few small tweaks

16 years agoCam's patch to enable parenting in the OOPS menu.
Kent Mein [Thu, 3 Jun 2004 14:26:44 +0000 (14:26 +0000)]
Cam's patch to enable parenting in the OOPS menu.

Kent

16 years agoFix for MSVC compiler. ;-)
Kester Maddock [Wed, 2 Jun 2004 13:34:58 +0000 (13:34 +0000)]
Fix for MSVC compiler. ;-)

16 years agoDo a databrowse window for sound actuators when necessary.
Kester Maddock [Wed, 2 Jun 2004 13:17:39 +0000 (13:17 +0000)]
Do a databrowse window for sound actuators when necessary.

16 years agoUpdates to GamePython Reference.
Kester Maddock [Wed, 2 Jun 2004 12:43:27 +0000 (12:43 +0000)]
Updates to GamePython Reference.
Added Actuator documentation.

16 years agonew Object.select() and Object.isSelected() methods to manipulate the
Stephen Swaney [Wed, 2 Jun 2004 06:19:56 +0000 (06:19 +0000)]
new Object.select() and Object.isSelected() methods to manipulate the
selection state of Objects.
Contributed by Campbell Barton.

16 years agoFix for the IK Assertion bug when the IK constraint on a bone
Chris Want [Mon, 31 May 2004 13:21:33 +0000 (13:21 +0000)]
Fix for the IK Assertion bug when the IK constraint on a bone
points to the armature that owns the bone and the subtarget
bone for the constraint is invalid.

Thanks to Stephane Soppera for tracking this one down.

16 years agoUse epydoc for generating game python reference (like the bpython guys)
Kester Maddock [Mon, 31 May 2004 13:06:04 +0000 (13:06 +0000)]
Use epydoc for generating game python reference (like the bpython guys)

16 years agoLimit for Normalise() call was 0.000000001 or so. This is still far too
Ton Roosendaal [Mon, 31 May 2004 12:08:50 +0000 (12:08 +0000)]
Limit for Normalise() call was 0.000000001 or so. This is still far too
big, since a float can go to 10^-37. And, this value is still squared, so
a square root will not frustrate it.

Limit now is 10^-35, fixing disappearing faces in extreme small object
thats extreme close to a camera. (thanks OOPz!)

16 years ago - added some "Transform Properties" for MetaElem (Metaball in edit mode, N key)...
Jiri Hnidek [Sun, 30 May 2004 14:12:14 +0000 (14:12 +0000)]
 - added some "Transform Properties" for MetaElem (Metaball in edit mode, N key). It is locx, loxy, locz, dx, dy, dz and stiffness

16 years agoAdded Python module for Lights.
Kester Maddock [Sun, 30 May 2004 11:09:46 +0000 (11:09 +0000)]
Added Python module for Lights.
Added attributes to the vertex class.

16 years agoCheck for zero normal vectors in the clip planes (if eg Python has set a strange...
Kester Maddock [Sun, 30 May 2004 11:04:26 +0000 (11:04 +0000)]
Check for zero normal vectors in the clip planes (if eg Python has set a strange projection matrix)
Fix the transformation of the frustum bound sphere to world coordinates.

16 years ago report #1338
Ton Roosendaal [Sat, 29 May 2004 19:46:46 +0000 (19:46 +0000)]
 report #1338

Switched order of routines for displacement and autosmooth, where the
autosmooth will be last now. This prevents displaced (loose) faces, and
might give attractive sharp edges in other cases too.

16 years agobug #1340
Ton Roosendaal [Sat, 29 May 2004 17:33:30 +0000 (17:33 +0000)]
bug #1340

Key alpha (render) set alph component at '1' for sky... this is an old
convention from NeoGeo days, and I have absolutely no clue whatfor...
maybe for some antique amiga iff format or so. Made it zero now.

16 years agoCounter of mballs, before polygonize, had error in taking linked mball-
Ton Roosendaal [Sat, 29 May 2004 17:00:51 +0000 (17:00 +0000)]
Counter of mballs, before polygonize, had error in taking linked mball-
data into account, causing errors modeling.

16 years agoOh, the fix is an addition of a OB_NEG_SCALE flag in ob->transflag, which
Ton Roosendaal [Sat, 29 May 2004 16:22:07 +0000 (16:22 +0000)]
Oh, the fix is an addition of a OB_NEG_SCALE flag in ob->transflag, which
is calculated in where_is_object.
Negative scale is found by a cross product of first 2 rows in matrix, and
comparing that (dot product) with third row.

16 years agoNEW! Blender now displays flipped (negative scaled) Objects correctly in
Ton Roosendaal [Sat, 29 May 2004 16:17:46 +0000 (16:17 +0000)]
NEW! Blender now displays flipped (negative scaled) Objects correctly in
OpenGL draw.

(BTW: the previous commit also solves raytrace errors with negative scaled
objects...)

Further a cleanup of displaylist flags and object/base flags. The #define
ACTIVE is moved to filesel.c (only used here).
The GONNA_MOVE #define got a OB_ added in front.

16 years agoRecoded the methods how normals get corrected and flipped during render
Ton Roosendaal [Sat, 29 May 2004 16:14:34 +0000 (16:14 +0000)]
Recoded the methods how normals get corrected and flipped during render
conversion. Old method tried to solve it per object, detecting a flipped
matrix. Since we have displacemapping and raytracing this is too inaccurate.
Also, flipping normals should alsways result i correct flipped vertex-
normals too.

Solution is to completely recalcuate the 'puno' (vertex normal) flags in
renderHelp.c now (set_normal_flags). The face normals themselves are not
flipped until that stage.

Second major improvement involves the calculation of correct splitted
triangles, when a quad is not flat. It now creates triangles based on the
vertex normals, which have actual information on surrounding geometry, thus
resulting in much smoother results.
Without this you get errors in ray-shadow, with light shining almost
parallel to a face. But again, displacement mapping improves with it too.

Third fix is that by removing normal flipping from displace code the result
is much better now.

16 years agoBug fix 1332
Ton Roosendaal [Thu, 27 May 2004 17:54:26 +0000 (17:54 +0000)]
Bug fix 1332

EnvMap render now uses the percentage button for size (f10 buttons).
That wasn't implemented yet for saving envmaps....

16 years agoPanagiotis Papadakos's patch to fix the following:
Kent Mein [Thu, 27 May 2004 14:54:14 +0000 (14:54 +0000)]
Panagiotis Papadakos's patch to fix the following:

Implicit declaration of swab in Linux, needs to define __USE_XOPEN at
source/blender/src:

I also added #includst <stdlib.h> to this file to fix it on solaris as well.

Kent

16 years agoTom's additions to the windows build.
Kent Mein [Thu, 27 May 2004 08:05:55 +0000 (08:05 +0000)]
Tom's additions to the windows build.
(I changed #blendersaue to #blendercoders not #blendercompilers,
does anyone actually use #blendercompilers?)

Kent

16 years agoIn drawing solid objects ("Solid" drawmode) there were material
Ton Roosendaal [Wed, 26 May 2004 21:04:02 +0000 (21:04 +0000)]
In drawing solid objects ("Solid" drawmode) there were material
switches (glMaterial) inbetween a glBegin and glEnd. Combined with a
switch of glShadeModel however, on recent Nvidia it caused faces not
to be drawn... dunno if this is official compliancy, but not too
complex just to correct.

16 years agoPython fixes:
Kester Maddock [Wed, 26 May 2004 12:09:17 +0000 (12:09 +0000)]
Python fixes:
Reenabled the setScript/getScript methods for python controller bricks.
Set the ray source point to MouseFocusSensor.getRaySource works.
Added: Python -> MT_Quaternion
MT_Matrix4x4, MT_Matrix3x3, MT_Vector3, MT_Point3 -> Python

Correct transform of frustum bound sphere centre point to world coordinates

16 years agoAdded an UpdateTransform callback from SceneGraph -> Physics.
Kester Maddock [Wed, 26 May 2004 12:06:41 +0000 (12:06 +0000)]
Added an UpdateTransform callback from SceneGraph -> Physics.
Profiling revealed that the SceneGraph updated every physics object, whether it moved or not, even though the physics object was at the right place.  This would cause SOLID to go and update its bounding boxes, overlap tests etc.
This callback handles the special case (parented objects) where the physics scene needs to be informed of changes to the scenegraph.

Added Python attributes (mass, parent, visible, position, orientation, scaling) to the KX_GameObject module.
Make KX_GameObject use the KX_PyMath Python <-> Moto conversion.

16 years agoFix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.
Kester Maddock [Wed, 26 May 2004 12:01:08 +0000 (12:01 +0000)]
Fix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.

Depth sorting for Transparent polygons.  Use ZTransp in Material buttons to enable.
This will cause an object's polygons to be sorted (back to front for alpha polygons, front to back for solid polygons.)

16 years agobugfix: #1322 minor tweaks to the documentation for Draw module.
Stephen Swaney [Tue, 25 May 2004 19:59:41 +0000 (19:59 +0000)]
bugfix: #1322  minor tweaks to the documentation for Draw module.

Blender.Draw.Button() was not showing up.  Seems to be an epydoc
issue with Button() being both a module method and the name of a class.
I changed Button to Button_ and added a usage note.
Yes, this is lame.

16 years agoChanged parameters names in addCurve function (suggested by Paolo)
Jacques Guignot [Tue, 25 May 2004 19:31:13 +0000 (19:31 +0000)]
Changed parameters names in addCurve function (suggested by Paolo)
DLoc* --> dLoc*
DRot* --> dRot*
DSize* --> dSize*
updated doc (Ipo.py)

16 years agoFixed a potential bug in the uv editor transform function, a check if the tface
Brecht Van Lommel [Tue, 25 May 2004 19:06:48 +0000 (19:06 +0000)]
Fixed a potential bug in the uv editor transform function, a check if the tface
might be only an edge was missing in one of the loops.

Fix a crash that would sometimes happen when clicking the texture painting
button in the image window header. Made headerbuttons_packdummy a static
variable again. The uiDefBut call for the texture painting button stores a
reference to it, so it must be kept in memory.

16 years agoBPython:
Willian Padovani Germano [Tue, 25 May 2004 10:36:58 +0000 (10:36 +0000)]
BPython:
- Campbell Barton contributed another function (thanks again), the Image.reload method:
  with this a script can keep an image that is being edited and saved by an external program updated in Blender.

16 years ago* Added support for python scripts to register themselves
Matt Ebb [Tue, 25 May 2004 06:08:49 +0000 (06:08 +0000)]
* Added support for python scripts to register themselves
 in the UV/Image editor 'UVs' menu

Script authors can use:
Group: 'UV'
 in the headers of their scripts to let them appear in
 this menu.

* Updated the UV Face Layout script to reside in the UVs
 menu, rather than the (incorrect) File->Export menu.

16 years ago- documentation update for new functions
Joseph Gilbert [Tue, 25 May 2004 03:26:29 +0000 (03:26 +0000)]
- documentation update for new functions
- error corrections in NLA about dictionaries

16 years ago- added Boneclass support
Joseph Gilbert [Tue, 25 May 2004 02:48:02 +0000 (02:48 +0000)]
- added Boneclass support
- ability to get a bonespace/worldspace bone matrix
- get ik flag
- some tweaking to matrix updates for addBone()

16 years agoAfter hearing that the reason for do_common_editbuts being in buttons_object.c I...
Nathan Letwory [Mon, 24 May 2004 19:48:07 +0000 (19:48 +0000)]
After hearing that the reason for do_common_editbuts being in buttons_object.c I decided to move it to buttons_editing.c, where it logically belongs. Matter of copy and paste (and deleting from buttons_object.c :)

Now poor newcomers can more easily find the editing buttonevent handling code.

16 years agoAdded the hotkey for Bevel in the menus
Matt Ebb [Mon, 24 May 2004 13:46:36 +0000 (13:46 +0000)]
Added the hotkey for Bevel in the menus

16 years agoGame Python Reference Manual.
Kester Maddock [Mon, 24 May 2004 07:49:50 +0000 (07:49 +0000)]
Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc.
Missing: Actuator & Controller reference.

16 years agoChanged two shorts in int, for calculation of distance between bezier point
Ton Roosendaal [Sun, 23 May 2004 19:13:15 +0000 (19:13 +0000)]
Changed two shorts in int, for calculation of distance between bezier point
and mouse coordinate in selecting routine.
Caused selection not to work in extreme zoom ins.
(Thanks OOPz!)

16 years agoBPython:
Willian Padovani Germano [Sat, 22 May 2004 20:25:22 +0000 (20:25 +0000)]
BPython:
- updated docs with recently added functions
- dynamic menu entries now are sorted (alphabetically, of course)
- added new menu categories for scripts: Wizards, Modifiers, Generators, Materials, Animation:
  only added to list of options, didn't mess with any Blender header.  They are already available from the "Scripts" menu in the scripts win, but not elsewhere.
- added option 'datadir' to Blender.Get(option):
  so scripts can use .blender/bpydata for reading / writing their data files.

16 years agonear & far are reserved words on MSVC. Don't use them as variable names.
Kester Maddock [Fri, 21 May 2004 14:09:18 +0000 (14:09 +0000)]
near & far are reserved words on MSVC.  Don't use them as variable names.

16 years agoCunning hack for Blender python module in the game engine - just don't unload it...
Kester Maddock [Fri, 21 May 2004 09:27:42 +0000 (09:27 +0000)]
Cunning hack for Blender python module in the game engine - just don't unload it before running the game!

16 years agoFrustum sphere culling.
Kester Maddock [Fri, 21 May 2004 09:21:15 +0000 (09:21 +0000)]
Frustum sphere culling.

Do a sphere<->camera sphere and a sphere<->frustum before the box<->frustum test.

16 years agoFixes for Camera objects and python:
Kester Maddock [Fri, 21 May 2004 09:18:42 +0000 (09:18 +0000)]
Fixes for Camera objects and python:

Normalise clip planes for sphere testing.
Do a frustum-sphere <-> sphere test
Reference count all python objects (!)

16 years agoQuery GL for max number of lights to use.
Kester Maddock [Fri, 21 May 2004 08:56:05 +0000 (08:56 +0000)]
Query GL for max number of lights to use.

16 years agoDepth sorting for alpha mesh objects.
Kester Maddock [Fri, 21 May 2004 08:55:12 +0000 (08:55 +0000)]
Depth sorting for alpha mesh objects.

- Mesh Objects are sorted by depth (based on object centre.)  Using object centre means the user has control over the sort.
- Polygons are not sorted.
- Polygons are not split.
- O(nlog(n))

16 years agoAdded Shift C 'Center Cursor and View All' to View -> Align View menu
Matt Ebb [Fri, 21 May 2004 01:35:10 +0000 (01:35 +0000)]
Added Shift C 'Center Cursor and View All' to View -> Align View menu

16 years agoA few hotkey additions/corrections to the toolbox and 3d view menus.
Matt Ebb [Thu, 20 May 2004 12:27:21 +0000 (12:27 +0000)]
A few hotkey additions/corrections to the toolbox and 3d view menus.

16 years agoadd some explanation about Object.Layer being a bitmask.
Stephen Swaney [Thu, 20 May 2004 07:21:07 +0000 (07:21 +0000)]
add some explanation about Object.Layer being a bitmask.

16 years agoremoved unused var in Object.getBoundBox()
Stephen Swaney [Thu, 20 May 2004 06:26:43 +0000 (06:26 +0000)]
removed unused var in Object.getBoundBox()

bugfix: #1212 changing object's layer had no effect.

16 years agoMSVC 6.0 ProjectFiles update. The file Kester added in his last commits were missing...
Martin Poirier [Thu, 20 May 2004 02:12:14 +0000 (02:12 +0000)]
MSVC 6.0 ProjectFiles update. The file Kester added in his last commits were missing from the project files.

16 years agoBug #1289
Martin Poirier [Thu, 20 May 2004 01:22:43 +0000 (01:22 +0000)]
Bug #1289
Mirror menu missing in the Header Menu for most object types in edit mode

http://projects.blender.org/tracker/index.php?func=detail&aid=1289&group_id=9&atid=125

16 years agoUV_Export script update. Typo fix and add tga extension automaticly.
Martin Poirier [Thu, 20 May 2004 01:18:13 +0000 (01:18 +0000)]
UV_Export script update. Typo fix and add tga extension automaticly.

16 years agoRemoved a bzero from octree-filling, replaced with exact code what
Ton Roosendaal [Wed, 19 May 2004 19:30:43 +0000 (19:30 +0000)]
Removed a bzero from octree-filling, replaced with exact code what
needs cleared. Timings go down nice:

octree new     2.33a

128    0:04.2  0:07.5
256    0:06.5  0:20.0
512    0:18.0  2.06.9

Time is including initialize renderfaces etc. 100k quads.

16 years agoBPython:
Willian Padovani Germano [Wed, 19 May 2004 01:28:12 +0000 (01:28 +0000)]
BPython:
-- Added two new functions to the Draw module, to display int and float popup buttons:
    Both contributed by Campbell Barton, thanks!
-- Fixed a couple warnings.

16 years agoRemoved double #defines from include, added some comments in code, and
Ton Roosendaal [Tue, 18 May 2004 20:00:51 +0000 (20:00 +0000)]
Removed double #defines from include, added some comments in code, and
added define for future use to bring back old (fast) AA.

16 years agoPatch provided by Matthew Plough for better view zoom with CTRL+middle
Ton Roosendaal [Tue, 18 May 2004 19:59:50 +0000 (19:59 +0000)]
Patch provided by Matthew Plough for better view zoom with CTRL+middle
mouse.

For me it's a good replacement, and more intuitive & compatible. Now
let's wait for the storm of reactions...

16 years agoForgot to add PyMath.cpp and .h
Nathan Letwory [Tue, 18 May 2004 09:56:19 +0000 (09:56 +0000)]
Forgot to add PyMath.cpp and .h

16 years agoModified .vcproj files to include files for scenegraph, and remove a redundant file...
Nathan Letwory [Tue, 18 May 2004 09:34:06 +0000 (09:34 +0000)]
Modified .vcproj files to include files for scenegraph, and remove a redundant file from render

16 years agoBPython:
Willian Padovani Germano [Tue, 18 May 2004 03:23:45 +0000 (03:23 +0000)]
BPython:
- Finally added Blender.Load function for loading .blend files, useful for demos, for example.
- Moved data from Blender.h to Blender.c.  We'll keep doing this where it applies and someday remove all unused files at once.

16 years agoCompiler portability fixes (MSVC 6)
Kester Maddock [Mon, 17 May 2004 23:56:56 +0000 (23:56 +0000)]
Compiler portability fixes (MSVC 6)