blender-staging.git
15 years agoFix compile errors for MSVC
Kester Maddock [Tue, 15 Feb 2005 10:02:19 +0000 (10:02 +0000)]
Fix compile errors for MSVC

15 years agoNot all flags and such were copied to new faces in edge rotate - should fix bug 2139
Johnny Matthews [Mon, 14 Feb 2005 20:14:10 +0000 (20:14 +0000)]
Not all flags and such were copied to new faces in edge rotate - should fix bug 2139

15 years agoSmall fix for new transform commit, scons complains about missing imagepaint.c.
Brecht Van Lommel [Mon, 14 Feb 2005 15:19:55 +0000 (15:19 +0000)]
Small fix for new transform commit, scons complains about missing imagepaint.c.
This file is only in tuhopuu.

15 years agoTo compile the new transform code with make, add the following to
Chris Want [Mon, 14 Feb 2005 03:12:12 +0000 (03:12 +0000)]
To compile the new transform code with make, add the following to
user-def.mk:

  export NAN_NEW_TRANSFORM=true

15 years agoMSVC 6.0 projectfile changes to go with last commit.
Martin Poirier [Mon, 14 Feb 2005 02:56:15 +0000 (02:56 +0000)]
MSVC 6.0 projectfile changes to go with last commit.

15 years agoInitial new transform commit.
Martin Poirier [Mon, 14 Feb 2005 02:53:36 +0000 (02:53 +0000)]
Initial new transform commit.
Disabled behind defines. Uncomment //#define NEWTRANSFORM in transform.h to enable.

Use at your own risk

For more info, see Wiki: http://wiki.blender.org/bin/view.pl/Blenderdev/TransformRefactoring
And tuhopuu mailing list: http://projects.blender.org/pipermail/tuhopuu-devel/

Notes for Ton (things that could need bulldozing:
- TransData conversions. Objects is ok, but others could be rechecked. (some still use totsel). Need to add pose mode support.
- Need more icons in the PET mode dropdown (in the 3D view header) for the new modes
- Add new transform calls to Toolbox and Menus and the one right after Extrude.

That's pretty much all I can think of now.

15 years agoVertex group support in Apply_Def. If subsurf is off on the original mesh, copies...
Martin Poirier [Mon, 14 Feb 2005 01:26:07 +0000 (01:26 +0000)]
Vertex group support in Apply_Def. If subsurf is off on the original mesh, copies groups AND weight. If not, only copies weight.

15 years agoFix for mipmap userpref button. (it was using the wrong userpref value).
Rob Haarsma [Sat, 12 Feb 2005 21:19:25 +0000 (21:19 +0000)]
Fix for mipmap userpref button. (it was using the wrong userpref value).

15 years ago<strings.h> is not defined on Win32 systems
Joseph Gilbert [Sat, 12 Feb 2005 17:11:57 +0000 (17:11 +0000)]
<strings.h> is not defined on Win32 systems

15 years agoThe opennl vcproj was not copying ONL_opennl.h to the lib\windows\opennl\include...
Joseph Gilbert [Sat, 12 Feb 2005 16:36:49 +0000 (16:36 +0000)]
The opennl vcproj was not copying ONL_opennl.h to the lib\windows\opennl\include directory

15 years agoFixed annoyance with opion "DispView" and Border render. It now displays
Ton Roosendaal [Sat, 12 Feb 2005 16:05:40 +0000 (16:05 +0000)]
Fixed annoyance with opion "DispView" and Border render. It now displays
the rendered pixels in the indicated border nicely.

15 years agoAdded (but recoded) patch submitted by Chris Burt to have render window
Ton Roosendaal [Sat, 12 Feb 2005 15:41:07 +0000 (15:41 +0000)]
Added (but recoded) patch submitted by Chris Burt to have render window
opened in size of actual border, if option "Crop" is set.

15 years agoSecond version of fix for display of all scanlines in preview render for
Ton Roosendaal [Sat, 12 Feb 2005 14:15:08 +0000 (14:15 +0000)]
Second version of fix for display of all scanlines in preview render for
wacko 3d cards... now it draws 5 scanlines in a time, with first being
drawn double.

15 years agoBug fix #2202
Ton Roosendaal [Sat, 12 Feb 2005 13:46:12 +0000 (13:46 +0000)]
Bug fix #2202

Beauty-fill in mesh editmode screwed up fgon faces.
Solved it by excluding fgon faces from it.

15 years agoPotential fix for #2177, scanline display errors on some gfx cards for the
Ton Roosendaal [Sat, 12 Feb 2005 13:12:40 +0000 (13:12 +0000)]
Potential fix for #2177, scanline display errors on some gfx cards for the
preview render in buttons window. Solution is to draw 4 lines at once,
instead of 2. glPixelZoom then has a wider range to display without rounding
errors, I hope.
Is going to be verified stil...

15 years agoBug 2057
Ton Roosendaal [Sat, 12 Feb 2005 12:06:30 +0000 (12:06 +0000)]
Bug 2057

Hotkeys comma and dot (around cursor, median) didn't work for user option
"global pivot". Now all 3d windows are set correctly.

15 years agoUpdate to the MSVC7 project files (vcproj) for Blender's internal libraries
Joseph Gilbert [Sat, 12 Feb 2005 02:06:52 +0000 (02:06 +0000)]
Update to the MSVC7 project files (vcproj) for Blender's internal libraries
- set build_install_all as the default project (if you give me a quarter ill tell you how :)
- set SoundSystem to it's proper dependencies
- updated those silly silly unix path separators
- set project warning levels to something not so noisy

15 years agoLittle warming-up getting-feet-wet coding project. :)
Ton Roosendaal [Fri, 11 Feb 2005 12:42:02 +0000 (12:42 +0000)]
Little warming-up getting-feet-wet coding project. :)

Much wanted feature, to have paths with children having fixed distance
offsets from each other, for example to animate a train with wagons.

Solved it with Path option (Editing buttons curve) "PathDist Offs" which
interprets time-offsets of children as blender-unit offsets. The entire
animation system still works, but offsets are calculated based on distance,
even with a CurvePath without motion (speed curve horizontal).

http://download.blender.org/demo/test/pathdist.blend

Thanks to Bassam for kicking my ass!

15 years agoBPython:
Willian Padovani Germano [Wed, 9 Feb 2005 15:53:35 +0000 (15:53 +0000)]
BPython:
- applied Campbell Barton's patch for access to Oops location and selection of materials, mesh data and objects, slightly modified. Thanks, Campbell;
- got rid of warnings in many files, hopefully not introducing any other during the process.  Mostly this was done: 1) new EXPP_incr_ret_True/False functions were added and used instead of "Py_INCREF(Py_True/False); return Py_True/False;".  Currently at least the functions use the fact that PyTrue/False == 1/0 and use 1 and 0 to avoid the warnings. 2) Filling of certain types structs got 0's added for all not defined data and methods.  This is surely Python version specific, since these structs can change size and content at each major version number Python update.

15 years agoBPython:
Willian Padovani Germano [Wed, 9 Feb 2005 05:19:24 +0000 (05:19 +0000)]
BPython:

- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols.  This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on:
http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html
- sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192.  Was only FILE_MAXFILE, a mistake;
- Image: added .setFilename(), contributed by Campbell Barton;
- Camera: added camera.get/setScale for the new param added by Ton for ortho cameras.  Requested by Jean-Michel Soler for the Texture Baker script;
- related doc updates.

15 years agoBug fix #2220
Ton Roosendaal [Tue, 8 Feb 2005 16:31:39 +0000 (16:31 +0000)]
Bug fix #2220

Another fix related to improved preview drawing (shade context buttons),
it didn't update glViewPort and glScissor correctly, causing the buttons
next to the preview-rect not to be offset win the window matrix anymore.

15 years agoAccidentally committed drawing editmode disregarding layer state. Brought
Ton Roosendaal [Tue, 8 Feb 2005 16:25:20 +0000 (16:25 +0000)]
Accidentally committed drawing editmode disregarding layer state. Brought
back to how it always worked.

15 years agoParkinson bug! A & accidentally became &&...
Ton Roosendaal [Sat, 5 Feb 2005 16:35:19 +0000 (16:35 +0000)]
Parkinson bug! A & accidentally became &&...
Error caused exceptions for ortho render to be active always... making
some frontfaces and backfaces mixupped.

15 years agoBPython:
Willian Padovani Germano [Thu, 3 Feb 2005 03:04:32 +0000 (03:04 +0000)]
BPython:
- NMesh: added face.sel and face.hide attributes to NMFaces, to set / get selection and visibility state of faces as they appear in edit mode.
- doc updates, including the right fix to two edge related methods, thanks to Stephane Soppera for pointing it (my fault, Stephane).

15 years agosupport for new SDL build in makefiles and scons for Os X
Jean-Luc Peurière [Wed, 2 Feb 2005 22:13:23 +0000 (22:13 +0000)]
support for new SDL build in makefiles and scons for Os X

15 years agoFixed error in having Ztransp rendered in back of normal solid faces. Was
Ton Roosendaal [Wed, 2 Feb 2005 17:26:24 +0000 (17:26 +0000)]
Fixed error in having Ztransp rendered in back of normal solid faces. Was
caused by changing definition of OSA pixel structs 3 weeks ago.
(result: AA looked bad).

Thanks phase for pointing at this.

15 years agoFixed typo Latice...
Kent Mein [Wed, 2 Feb 2005 14:08:18 +0000 (14:08 +0000)]
Fixed typo Latice...

Kent

15 years agoBPython:
Willian Padovani Germano [Wed, 2 Feb 2005 03:38:31 +0000 (03:38 +0000)]
BPython:
- Fix related to bug #2157: crash in Blender.Image.image.reload() method.  "G.sima" was not being checked for validity.  Fix by Joilnen B. Leite (pidhash).  Thanks!
http://projects.blender.org/tracker/?func=detail&atid=125&aid=2157&group_id=9
- Added optional argument to Blender.Object.object.getData() method: getData(only_name = True) or (only_name = 1) or (1) will return only the obdata name, not a wrapper for the given struct.  This is a test based on a request by Campbell Barton who submitted code for his proposed .getDataName() method (thanks!).
- doc updates and small fixes.

15 years agoBug found by Bassam; in certain occasions reading a file calls setscreen()
Ton Roosendaal [Mon, 31 Jan 2005 18:37:54 +0000 (18:37 +0000)]
Bug found by Bassam; in certain occasions reading a file calls setscreen()
without the (ugly) global curarea being set.
Fixed the crash in his sample by nicely passing on 'current area' as
argument.

15 years agoDoing the hotkey modifiers for select non-manifold the Ton way.
Chris Want [Sun, 30 Jan 2005 21:33:12 +0000 (21:33 +0000)]
Doing the hotkey modifiers for select non-manifold the Ton way.

15 years ago - updated MSVC 6 projectfiles.
Simon Clitherow [Sun, 30 Jan 2005 15:41:59 +0000 (15:41 +0000)]
  -  updated MSVC 6 projectfiles.
  -  removed 'using namespace std;' from SCA_Joystick.h
     (gave compile error on VC6).

15 years agoBug fixes;
Ton Roosendaal [Sun, 30 Jan 2005 15:40:42 +0000 (15:40 +0000)]
Bug fixes;

#2187: Append to active layer now uses the real active layer
#2191: Stars didnt show up correctly in envmap render
#2194: Startfame > Endframe in anim render crashed (now it gives error)

15 years agoBug fix (from own collection)
Ton Roosendaal [Sun, 30 Jan 2005 13:13:31 +0000 (13:13 +0000)]
Bug fix (from own collection)

After using clip-safe pixeldraw from glutil.c (preview render, bg picture)
the current viewport had to be re-set. Not doing so caused a 1 pixel offset
for live updates buttons (on mouse over)

15 years agoFixed old annoyance; enabling true Ortho render in Blender.
Ton Roosendaal [Sun, 30 Jan 2005 11:25:27 +0000 (11:25 +0000)]
Fixed old annoyance; enabling true Ortho render in Blender.

It used to be a simple hack, scaling lens with 100, and moving the camera
to the back with an equivalent amount.
Because of the hack, making it 100% compatible with older files I could not
achieve (yet?). To help reminding users, I've added a print when reading
old files with Ortho cameras.

Full description of how it works can be found here;
http://www.blender3d.com/cms/Render_changes.515.0.html

15 years agoCorrecting the logic of the hotkey modifiers for select
Chris Want [Sat, 29 Jan 2005 21:34:45 +0000 (21:34 +0000)]
Correcting the logic of the hotkey modifiers for select
non-manifold. If you want it so all three modifiers are needed
(e.g. ctrl-alt-shift-MKEY) use:

  if ( !(~G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) )

instead of

  if ( G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) )

(which really allows any modifier, alone or in combination, to work).

15 years agoFix to get gcc 3.4.1 with scons working again.
Kent Mein [Tue, 25 Jan 2005 19:26:19 +0000 (19:26 +0000)]
Fix to get gcc 3.4.1 with scons working again.

15 years agobugfix: #2117 Overflow in Armature.Bone.setName()
Stephen Swaney [Tue, 25 Jan 2005 06:05:17 +0000 (06:05 +0000)]
bugfix: #2117  Overflow in Armature.Bone.setName()

contributed by Joilnen B. Leite (pidhash).

15 years agoFixed the Makefiles so the Joystick stuff works.
Kent Mein [Mon, 24 Jan 2005 16:16:50 +0000 (16:16 +0000)]
Fixed the Makefiles so the Joystick stuff works.

Kent

15 years agoAdded a color picker and a 'Set VertCol' button to the Texture face panel,
Brecht Van Lommel [Mon, 24 Jan 2005 15:33:13 +0000 (15:33 +0000)]
Added a color picker and a 'Set VertCol' button to the Texture face panel,
so the color of faces can be set in Uv Face Select Mode. Patch provided by
Carsten Wartmann (moved the buttons, and removed the rgb sliders).

15 years agoAdded color filtering for raytrace transparency.
Ton Roosendaal [Mon, 24 Jan 2005 14:08:06 +0000 (14:08 +0000)]
Added color filtering for raytrace transparency.

http://www.blender3d.org/cms/Transparent_filtering.514.0.html

Choice was for using a single (new) filter value and have it working OK
with existing alpha.

15 years agofix some undeclared parameters
Stephen Swaney [Sun, 23 Jan 2005 20:32:34 +0000 (20:32 +0000)]
fix some undeclared parameters

15 years agoSeparated some variable declarations from the code, for wider compiler support.
Yann Vernier [Sun, 23 Jan 2005 20:15:06 +0000 (20:15 +0000)]
Separated some variable declarations from the code, for wider compiler support.

15 years agoChanges Mathutils.Vector() to be less picky about its argument(s).
Yann Vernier [Sun, 23 Jan 2005 17:04:02 +0000 (17:04 +0000)]
Changes Mathutils.Vector() to be less picky about its argument(s).

15 years agoThis should make the Texture stype attribute work for EnvMaps.
Yann Vernier [Sun, 23 Jan 2005 16:32:51 +0000 (16:32 +0000)]
This should make the Texture stype attribute work for EnvMaps.

15 years agoMake the KX_PolygonMaterial Python member variables writable.
Kester Maddock [Sun, 23 Jan 2005 01:40:37 +0000 (01:40 +0000)]
Make the KX_PolygonMaterial Python member variables writable.

15 years agoDon't delete the Python Controller's private dictionary between frames.
Kester Maddock [Sun, 23 Jan 2005 01:38:41 +0000 (01:38 +0000)]
Don't delete the Python Controller's private dictionary between frames.

15 years agoAdded Joystick sensor (from snailrose)
Kester Maddock [Sun, 23 Jan 2005 01:36:29 +0000 (01:36 +0000)]
Added Joystick sensor (from snailrose)

15 years agoDon't fail on mesh objects with no faces.
Kester Maddock [Sat, 22 Jan 2005 23:46:54 +0000 (23:46 +0000)]
Don't fail on mesh objects with no faces.

15 years agoBPython:
Willian Padovani Germano [Sat, 22 Jan 2005 02:48:03 +0000 (02:48 +0000)]
BPython:
- Stephane Soppera added long missed support for edge data in Blender.NMesh + related doc;
- Michael Reimpell improved script registration (fixes bug report #2160) and the file and image selectors in Blender.Window (improved with suggestions from Yann Vernier).  They now suppport methods as callbacks;
- World.get/setMode were not registered, so could not be directly called (reported by Ken Hughes).  Still needs some work to improve things, including docs.

Scripts:
- Jean-Michel Soler updated his texture baker based on input from Appolux;
- Campbell and Jean-Michel improved the bvh importer: faster, better float units scaling (by Campbell); supports Poser 3.01 files (by jms).

Thanks guys!

15 years agofixed animations using jpeg (bug # 2166)
Kent Mein [Fri, 21 Jan 2005 17:50:11 +0000 (17:50 +0000)]
fixed animations using jpeg  (bug # 2166)

Basically the deal was on the last fix (multiple opens/closes to a filehandle)
I changed the return values to match other image formats 0=fail and 1 = good
(was 1=fail 0=good before)
I Didn't update the animation code to see this so it was
thinking the first frame failed because it was looking for the old return code.

Kent

15 years agoModified interface texture font support, which should work nicely with the freshly...
Rob Haarsma [Fri, 21 Jan 2005 14:48:03 +0000 (14:48 +0000)]
Modified interface texture font support, which should work nicely with the freshly added bFTGL library.
Also removed some redundant #include's on some files.

15 years agoModified FTGL for proper texturefont support.
Rob Haarsma [Fri, 21 Jan 2005 14:43:21 +0000 (14:43 +0000)]
Modified FTGL for proper texturefont support.
Also fixed msvc6 (release only) projectfile to build and output correctly.

15 years agoAdded some extra comments about creating a new image format.
Kent Mein [Fri, 21 Jan 2005 13:02:14 +0000 (13:02 +0000)]
Added some extra comments about creating a new image format.

Kent

15 years agoBug fix 2116
Ton Roosendaal [Fri, 21 Jan 2005 12:46:59 +0000 (12:46 +0000)]
Bug fix 2116

Area lights with "Noise" dithering only worked for first area light, the
other ones then used wrong table... bug since area lights are in blender.

15 years agoBug 2162
Ton Roosendaal [Fri, 21 Jan 2005 11:07:35 +0000 (11:07 +0000)]
Bug 2162

Current cvs bug; the texture 'crop' lines were not drawn using correct
Panel/Window transform. Simple fix.

15 years agoAdded bFTGL to extern and updated the Makefiles. I'm guessing there will
Kent Mein [Fri, 21 Jan 2005 05:15:33 +0000 (05:15 +0000)]
Added bFTGL to extern and updated the Makefiles.  I'm guessing there will
need to be tweaks but it seems to work on my linux box.  I haven't
touched any of the other build systems so those will need to be done.

We probably don't need all of this stuff but I figured better to add a little
too much then to little.

Kent

15 years agoReading .blend from runtime closed file handle twice... seemed to crash in
Ton Roosendaal [Thu, 20 Jan 2005 10:33:11 +0000 (10:33 +0000)]
Reading .blend from runtime closed file handle twice... seemed to crash in
windows? Weird, was a commit from april last year (Nathan) and nobody has
reported errors. (bug report 2155)

15 years agoAdded experimental option to use GL textured interface fonts.
Rob Haarsma [Wed, 19 Jan 2005 13:53:43 +0000 (13:53 +0000)]
Added experimental option to use GL textured interface fonts.
Set preferred method in userprefs->language & font.
Kinda requested by Kaito, i'm sure he regrets after seeing
my code changes.

This commit includes a patch provided by Jacques Baurain,
which seemed nescessary to handle font sizing properly.
Thank you !

15 years agoMelchior FRANZ's patch to allow the normal +- to work with border select.
Kent Mein [Wed, 19 Jan 2005 13:01:49 +0000 (13:01 +0000)]
Melchior FRANZ's patch to allow the normal +- to work with border select.
Currently it doesn't conflict with anything and I think it makes sense.

Kent

15 years agoJacques patch to get things compiling on windows.
Kent Mein [Wed, 19 Jan 2005 12:53:47 +0000 (12:53 +0000)]
Jacques patch to get things compiling on windows.
basically it returns NULL for two functions that had their entire body
commented out.

Kent

15 years agoUsing halo (particle) render with OSA and gauss had error.
Ton Roosendaal [Tue, 18 Jan 2005 18:31:18 +0000 (18:31 +0000)]
Using halo (particle) render with OSA and gauss had error.

Removed it in OSA from special thread loop now, making it unthreaded but
render OK. Main reason; subpixel-based adding with gauss doent work
for halos yet.

Unified render does that though, but result is just filter, no real
subpixel.

15 years agoRender lens flare works again. Didn't work due to wrong value for zbuffer
Ton Roosendaal [Tue, 18 Jan 2005 15:22:42 +0000 (15:22 +0000)]
Render lens flare works again. Didn't work due to wrong value for zbuffer
passed on (zbuffer values changed with previous commit)

Also fixed previewrender for lens flare.

15 years agoThe non scons specific stuff for bug tracker bug #2131
Kent Mein [Tue, 18 Jan 2005 14:17:44 +0000 (14:17 +0000)]
The non scons specific stuff for bug tracker bug #2131

Basically removed #include <iostream.h>
from some files that didn't need it (and I'm assuming it caused problems)

I'll leave the scons stuff for someone else to look at since I don't really
use it.

Kent

15 years agoUse the default windows assert for VisualC
Kester Maddock [Mon, 17 Jan 2005 11:02:44 +0000 (11:02 +0000)]
Use the default windows assert for VisualC
Update Scons

15 years agoremove gcc compiler error using -pedantic flag:
Stephen Swaney [Sun, 16 Jan 2005 17:59:23 +0000 (17:59 +0000)]
remove gcc compiler error using -pedantic flag:
  comma at end of enumerator list

If this change causes problems, feel free to back it out.

I am trying to get gcc to complain about mixed declarations and
code since that breaks on platforms that only support C89/C90.

15 years agoFixed #define for snprintf on win32
Simon Clitherow [Sun, 16 Jan 2005 17:40:59 +0000 (17:40 +0000)]
Fixed #define for snprintf on win32

15 years agoAdded new files to VC6 project (KX_PolygonMaterial.cpp | h)
Simon Clitherow [Sun, 16 Jan 2005 15:42:22 +0000 (15:42 +0000)]
Added new files to VC6 project (KX_PolygonMaterial.cpp | h)

15 years agoFix for bug #2152
Ton Roosendaal [Sun, 16 Jan 2005 11:29:44 +0000 (11:29 +0000)]
Fix for bug #2152

Using File->Save Image menu didn't work while Stars were drawn... the used
method to save an image (mainqenter F3 key) is a bit awkward anyway, so
replaced with proper BIF_xxx call.
Reason for mainqenter not to work was RE_draw_stars() function calling
a blender_test_break(), swallowing queue events. Very bad and need review.

Small tweak in previewrender; preview type Cube now displays texture
coordinates better (it showed a bit too much)

15 years agoAdd an Python Material example
Kester Maddock [Sun, 16 Jan 2005 06:27:12 +0000 (06:27 +0000)]
Add an Python Material example

15 years agoUnified KX_BlenderPolyMaterial & GPC_PolygonMaterial into KX_PolygonMaterial.
Kester Maddock [Sun, 16 Jan 2005 06:02:06 +0000 (06:02 +0000)]
Unified KX_BlenderPolyMaterial & GPC_PolygonMaterial into KX_PolygonMaterial.

Make game engine materials use Zoffs in Materials.
Added Python material hooks.

15 years agoAdded getDistanceTo Python method (thanks Charlie C)
Kester Maddock [Sun, 16 Jan 2005 05:55:04 +0000 (05:55 +0000)]
Added getDistanceTo Python method (thanks Charlie C)

15 years agoAdvanced MT_assert macro.
Kester Maddock [Sun, 16 Jan 2005 04:28:55 +0000 (04:28 +0000)]
Advanced MT_assert macro.

It will attempt to break into the debugger instead of aborting the program.  On Windows you have a nice MessageBox function, so you can choose to break, ignore, or permanently ignore the assert.

15 years agoMade Suzanne speechless again... what was i thinking.
Rob Haarsma [Fri, 14 Jan 2005 17:35:24 +0000 (17:35 +0000)]
Made Suzanne speechless again... what was i thinking.

15 years agoBPython:
Willian Padovani Germano [Thu, 13 Jan 2005 19:19:05 +0000 (19:19 +0000)]
BPython:
- Added Blender.UpdateMenus() + doc: so scripts can automatically update Blender menus when they create (or download or whatever) new scripts to be registered.
- Removed a long deprecated function from the Blender module (release dict).

Matt (broken) mentioned the UpdateMenus function a couple weeks ago.  I also updated the Save Current Theme script to use it.  This is all related to his ideas to use scripts to save and restore themes and e.g. render presets.

15 years agoDid some checking to make sure a variable exits before trying to use it.
Kent Mein [Thu, 13 Jan 2005 13:58:29 +0000 (13:58 +0000)]
Did some checking to make sure a variable exits before trying to use it.
(Submitted by Vidarino on irc)

I also cleaned up a couple of warnings in the file.

Kent

15 years agoNew methods: Curve.isCyclic(), CurNurb.isCyclic() for checking if curve is cyclic...
Stephen Swaney [Thu, 13 Jan 2005 03:42:53 +0000 (03:42 +0000)]
New methods:  Curve.isCyclic(), CurNurb.isCyclic() for checking if curve is cyclic ( closed ).  Both methods are boolean.
Patch contributed by Toni Alatalo.  Thanks.

15 years agoBPython:
Willian Padovani Germano [Thu, 13 Jan 2005 03:04:12 +0000 (03:04 +0000)]
BPython:
- patch by Jonathan Merritt: new function Blender.Draw.Image() + its doc;
- patch by Campbell Barton: .users attribute for many types;
- tiny internal change in nmesh.hasVertexUV() method.

Thanks to Jonathan and Campbell for the patches and the patience!

15 years agoSoftbody commit broke compilation of blenderplayer. There was a dependancy
Brecht Van Lommel [Wed, 12 Jan 2005 23:57:33 +0000 (23:57 +0000)]
Softbody commit broke compilation of blenderplayer. There was a dependancy
from blenkernel/ to src/. Moved the offending functions to blenkernel...

15 years agobig softbody commit
Jens Ole Wund [Wed, 12 Jan 2005 22:28:13 +0000 (22:28 +0000)]
big softbody commit
some vertex group , weight painting stuff too
/me crosses fingers it does not break anything

15 years agoLet's keep Blender a monkey app.
Rob Haarsma [Wed, 12 Jan 2005 12:25:56 +0000 (12:25 +0000)]
Let's keep Blender a monkey app.

15 years agoRGBA Quicktime movies give codec compression crashes on OSX.
Rob Haarsma [Wed, 12 Jan 2005 11:03:25 +0000 (11:03 +0000)]
RGBA Quicktime movies give codec compression crashes on OSX.
Reverting Quicktime export to ARGB for both OSX and Windows to
keep some consistency on Blender's output.

15 years agoTrying to make RGBA Quicktime movies on OSX, instead of ARGB.
Rob Haarsma [Wed, 12 Jan 2005 10:34:05 +0000 (10:34 +0000)]
Trying to make RGBA Quicktime movies on OSX, instead of ARGB.

15 years agoReverting Quicktime movie export method for OSX.
Rob Haarsma [Wed, 12 Jan 2005 10:18:47 +0000 (10:18 +0000)]
Reverting Quicktime movie export method for OSX.

15 years agomake release
Kent Mein [Tue, 11 Jan 2005 15:07:06 +0000 (15:07 +0000)]
make release
Now copies over gameplayer if it was build durring the make.

Kent

15 years agobug fix #2118
Ton Roosendaal [Tue, 11 Jan 2005 13:06:21 +0000 (13:06 +0000)]
bug fix #2118

Rendering wire didnt work;
- for edges that are not in face, with subsurf on
- same for new Edges block, subsurf or not

15 years agoBug fix #2061
Ton Roosendaal [Tue, 11 Jan 2005 12:14:45 +0000 (12:14 +0000)]
Bug fix #2061

On exit editing mesh being linked multiple times, and other object-users have
a deform, the displists were not recalculated.

15 years agoImproved functionality for Quicktime movie export.
Rob Haarsma [Tue, 11 Jan 2005 10:58:58 +0000 (10:58 +0000)]
Improved functionality for Quicktime movie export.
Exporter now uses less memory and might be a little faster.

Needs tesing on OSX, there might be RGBA endian issues.

15 years agoBug #2119
Roel Spruit [Mon, 10 Jan 2005 18:17:41 +0000 (18:17 +0000)]
Bug #2119

The Separate option was missing from the toolbox and headermenu for curves,
Added it to both.

First commit in a loooooooooong time, have to start with something small ey ;)

Roel

15 years agoThis is for bug # 2068
Kent Mein [Mon, 10 Jan 2005 16:22:40 +0000 (16:22 +0000)]
This is for bug # 2068

I standarized the returns on a failed opening of the output file for
the above image formats.

I also cleaned up a couple of warnings.

Kent

15 years agoSomehow in 2.3x the file window collum display got cancelled. It even
Ton Roosendaal [Mon, 10 Jan 2005 12:34:39 +0000 (12:34 +0000)]
Somehow in 2.3x the file window collum display got cancelled. It even
pretended to be a user-preset, which it isnt yet.

Brought back collum display and wait for severe complaints to have it as
option in user settings. :)

15 years agoborder render support through plugin. Working with current yafray CVS version
Alejandro Conty Estevez [Sun, 9 Jan 2005 21:53:50 +0000 (21:53 +0000)]
border render support through plugin. Working with current yafray CVS version

15 years agoMixup of vectors in VecAngle3 (caused by me switching order of args!)
Ton Roosendaal [Sun, 9 Jan 2005 14:28:18 +0000 (14:28 +0000)]
Mixup of vectors in VecAngle3 (caused by me switching order of args!)
Resulted in wrong angle display, especially in trias

15 years agoDifferent integer overflow test for zbuffering, this due to mist+wire bug
Ton Roosendaal [Sun, 9 Jan 2005 13:36:14 +0000 (13:36 +0000)]
Different integer overflow test for zbuffering, this due to mist+wire bug
that seems not to be solved on intel platforms.

Previously, a positive signed integer overflow addition was checked by
assuming it to become negative. Now it checks 'safe' with this version:

if(vergz > 0x7FFFFFF0 - dz) vergz= 0x7FFFFFF0;
else vergz+= dz;

Reason why using signed ints is cumbersome... overflows for unsigned are
much easer to find.

15 years agoFix bug #2006:
Kester Maddock [Sun, 9 Jan 2005 00:06:45 +0000 (00:06 +0000)]
Fix bug #2006:

Floating point imprecision made MT_Quaternion::angle return NaN, since acos(x) is NaN for |x| > 1.

Because of the way NaN's propagate through float math, the view pos would be set to [NaN, NaN, NaN] resulting in a grey screen.

15 years ago - correct position of "Edge Angles" and "Face Area" in button window
Jiri Hnidek [Sat, 8 Jan 2005 23:31:04 +0000 (23:31 +0000)]
 - correct position of "Edge Angles" and "Face Area" in button window

15 years agoThe "teac" (measurement info) patch from Campbell Barton
Ton Roosendaal [Sat, 8 Jan 2005 21:16:24 +0000 (21:16 +0000)]
The "teac" (measurement info) patch from Campbell Barton

Cleaned code somewhat (half the size!) and applied some changes:
- made it compatible with selection flags for new mesh editing (edge/face)
- renamed 'face angles' to 'edge angles' and made it display angles for
  2 selected edges too
- removed the confusing convention that always drawed the info if one
  of the vertices of edge/face/angle was selected. now it only displays on
  minimum of 1 full edge or face selected.
- made it react to "zbuf occluded selection" option (for zbuffered text)
- made it also colorize text for white theme color (TH_TEXT)

On larger meshes this info still draws very confusing. The idea of displaying
the info on 1 vertex selected was probably to show values while grabbing,
although that didnt really work for angles. One idea could be, for transform,
that it draws all lenghts/angles/areas that get changed during transform

All in all, still useful addition tho!

15 years agoStar halos still used old fashioned byte colors, instead of nice floats :)
Ton Roosendaal [Sat, 8 Jan 2005 14:45:58 +0000 (14:45 +0000)]
Star halos still used old fashioned byte colors, instead of nice floats :)
Reason for them to show wrong.

15 years agoFix for commit of yesterday, where wire render + mist was solved.
Ton Roosendaal [Sat, 8 Jan 2005 14:22:27 +0000 (14:22 +0000)]
Fix for commit of yesterday, where wire render + mist was solved.

Had moved normalizing the view vector just a couple of lines to much...
causing OSA vectors to be calculated wrong, and image texture to show
much to filtered (nearly invisible)

15 years agoBug fix #2113
Ton Roosendaal [Sat, 8 Jan 2005 13:50:44 +0000 (13:50 +0000)]
Bug fix #2113

A series of hide/reveil in editmode didn't result in identical selection
always, except in face mode. current method works in all modes, including
mixed (face+edge for example)

15 years ago- Added warning print and return in glaDrawPixelsSafe when zoom level
Ton Roosendaal [Sat, 8 Jan 2005 13:15:43 +0000 (13:15 +0000)]
- Added warning print and return in glaDrawPixelsSafe when zoom level
  exceeds window (glScissor) size. Apparently zooming in on one single
  pixels larger than a window isn't well supported.
- Moved drawing of editmode objects to 2nd loop in drawview.c, this
  makes sure draw-extra wire is always visible correctly