15 years agomore graphics patches from Snailrose,
Erwin Coumans [Sun, 15 Jan 2006 11:34:55 +0000 (11:34 +0000)]
more graphics patches from Snailrose,
remove constraint fixed,
Bullet timestep now subdivides Blender game engine timestep, so it runs 60 hertz,
SphereShape reverted to old style, so no support for non-uniform scaled spheres for now,

15 years agoBugfix #3731: User reported that cyclic IPO curves reported the wrong value
Ken Hughes [Sat, 14 Jan 2006 22:05:16 +0000 (22:05 +0000)]
Bugfix #3731: User reported that cyclic IPO curves reported the wrong value
in the BPy API for the "end point".  It was a minunderstanding of what
happens with cyclic Ipos, but we updated the documentation to make this
clearer in the future.

15 years agoBug fix: #3684
Martin Poirier [Sat, 14 Jan 2006 20:52:39 +0000 (20:52 +0000)]
Bug fix: #3684

When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot.

15 years agofix previously fixed error msg.
Stephen Swaney [Sat, 14 Jan 2006 19:05:33 +0000 (19:05 +0000)]
fix previously fixed error msg.

15 years agoObject.Get( name ) was throwing an AttributeError.
Stephen Swaney [Sat, 14 Jan 2006 02:13:15 +0000 (02:13 +0000)]
Object.Get( name ) was throwing an AttributeError.
Change to throw more correct ValueError when name
is not found as per IRC discussion

15 years agoCam Barton discovered the setter for me.faces[i].col was missing.
Ken Hughes [Fri, 13 Jan 2006 17:22:53 +0000 (17:22 +0000)]
Cam Barton discovered the setter for me.faces[i].col was missing.

15 years ago* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error...
Joseph Gilbert [Fri, 13 Jan 2006 16:19:11 +0000 (16:19 +0000)]
* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error: PyPose_FromPose: Internal Error Ocurred"
- added returns where appropriate.

15 years ago*head/tail addition
Joseph Gilbert [Fri, 13 Jan 2006 15:53:22 +0000 (15:53 +0000)]
*head/tail addition
- forgot to add the ability to get pose head/tail positions
- no setters (yet) as they are calculated

15 years ago*bone.children fix
Joseph Gilbert [Fri, 13 Jan 2006 15:27:23 +0000 (15:27 +0000)]
*bone.children fix
- fixes bone.children to return direct bone children
- added bone.getAllChildren() to allow previous behavior

15 years agoFixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are...
Campbell Barton [Fri, 13 Jan 2006 15:26:15 +0000 (15:26 +0000)]
Fixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are ignored)
Have alredy tested 100's of obj files and cant believe this is the first I have found with negative coords.
May fix the UI before 2.41, Importing a whole dir isnt very user friendly. and may want to support sequence import.
- Cam

15 years agoBugfix as provided by 'stealth apprentice' on the bf-comitters list.
Ton Roosendaal [Fri, 13 Jan 2006 12:14:13 +0000 (12:14 +0000)]
Bugfix as provided by 'stealth apprentice' on the bf-comitters list.
Function get_constraint_target() should catch the case when a constraint
has unknown type, to prevent a pointer to become unitialized.

15 years agoAnother bug fix for reference counting in extend methods.
Ken Hughes [Fri, 13 Jan 2006 07:11:30 +0000 (07:11 +0000)]
Another bug fix for reference counting in extend methods.

15 years agoSubsurf UV crasher fix - thanks Malefico and Matthew for test files.
Brecht Van Lommel [Fri, 13 Jan 2006 06:56:32 +0000 (06:56 +0000)]
Subsurf UV crasher fix - thanks Malefico and Matthew for test files.

15 years agomake clear that 'concave mesh' is really for static triangle mesh. too many people...
Erwin Coumans [Fri, 13 Jan 2006 01:00:35 +0000 (01:00 +0000)]
make clear that 'concave mesh' is really for static triangle mesh. too many people try to make it moving, it is for landscapes/static environment.

15 years ago==python scripts==
Tom Musgrove [Fri, 13 Jan 2006 00:24:23 +0000 (00:24 +0000)]
==python scripts==
added xfig exporter by Dino Ghilardi

ply import and export in previous commit were by Bruce Merry

15 years ago==python scripts==
Tom Musgrove [Thu, 12 Jan 2006 21:33:42 +0000 (21:33 +0000)]
==python scripts==
added ply import and export, extensively tested on files from

they give correct results for both import and export, however they could use some speed optimization for large mesh

15 years agobugfix: #3738 Armature bones returns none instead of key error
Stephen Swaney [Thu, 12 Jan 2006 21:21:41 +0000 (21:21 +0000)]
bugfix: #3738  Armature bones returns none instead of key error

BonesDict was returning None instead of throwing a KeyError
when key not found.
Also fixed a few compile warnings about struct initialization.

15 years agoFixed a segfault in zooming out on long wave files- 6min+
Campbell Barton [Thu, 12 Jan 2006 13:34:55 +0000 (13:34 +0000)]
Fixed a segfault in zooming out on long wave files- 6min+

Was using shorts which couldent code with viewing many samples at once.

15 years agoRenamed to
Campbell Barton [Thu, 12 Jan 2006 12:39:14 +0000 (12:39 +0000)]
Renamed to
Rewrote to use Kens Mesh module, much faster, cleaner and nicer UI. - Another use for PupBlock.

15 years agoClean-up of some reference counting issues with delete() methods. Also
Ken Hughes [Thu, 12 Jan 2006 07:51:19 +0000 (07:51 +0000)]
Clean-up of some reference counting issues with delete() methods.  Also
further relax the input types for edge.extend() and face.extend() so that
single lists or tuples are accepted without errors.

15 years agorenamed some variables to make the timing in the game engine less confusing+minor...
Erwin Coumans [Thu, 12 Jan 2006 06:30:01 +0000 (06:30 +0000)]
renamed some variables to make the timing in the game engine less confusing+minor improvements in this area.
enabled game engine for scons

15 years agoAdded tri2quad script finds all possible quads to be made from selected triangle...
Campbell Barton [Thu, 12 Jan 2006 05:28:47 +0000 (05:28 +0000)]
Added tri2quad script finds all possible quads to be made from selected triangle pairs, then joins the best first until the error limit is reached.
Just Updated and faster 8.5sec to 0.6sec for 2k triangles in my test.
Also my fav new function PupBlock for the UI input!

15 years agoFixed a bug in boxpack that archimap not to clear data between uses, and become progr...
Campbell Barton [Thu, 12 Jan 2006 03:34:37 +0000 (03:34 +0000)]
Fixed a bug in boxpack that archimap not to clear data between uses, and become progressivly slower.
Updated Archimap to set UV's aslists (dont need to convert to tuples anymore)

15 years agooverlooked IMB_imbuf.h was already included inside an extern "C" section.
Erwin Coumans [Thu, 12 Jan 2006 01:37:33 +0000 (01:37 +0000)]
overlooked IMB_imbuf.h was already included inside an extern "C" section.

15 years agouncommented include "IMB_imbuf.h", it is needed?
Erwin Coumans [Thu, 12 Jan 2006 01:15:09 +0000 (01:15 +0000)]
uncommented include "IMB_imbuf.h", it is needed?

15 years agoBPy: Mathutils fix: bug #3737
Martin Poirier [Thu, 12 Jan 2006 01:11:42 +0000 (01:11 +0000)]
BPy: Mathutils fix: bug #3737
Vector.resize4D() didn't put 1 in the 4th component (the scale factor), as it did in 2.37.
While this is more "correct", it is much less usefull. Also, matrix.resize4x4 puts a 1 there too,
so might as well revert and be consistent.

15 years agore-enable game engine by default, for 2.41 preparation
Erwin Coumans [Thu, 12 Jan 2006 00:57:28 +0000 (00:57 +0000)]
re-enable game engine by default, for 2.41 preparation

15 years agoScons fix:
Martin Poirier [Thu, 12 Jan 2006 00:07:08 +0000 (00:07 +0000)]
Scons fix:

new BPy Pose files weren't added to Sconscript

15 years agoremove Constraint.h since it doesn't exist.
Kent Mein [Wed, 11 Jan 2006 21:58:37 +0000 (21:58 +0000)]
remove Constraint.h since it doesn't exist.

Provided by Letterrip.


15 years ago- override the temporary disabling of KETSJI and OPENAL for FreeBSD.
Hans Lambermont [Wed, 11 Jan 2006 21:11:07 +0000 (21:11 +0000)]
- override the temporary disabling of KETSJI and OPENAL for FreeBSD.

15 years agoForgot the pose file.... :p
Joseph Gilbert [Wed, 11 Jan 2006 20:48:46 +0000 (20:48 +0000)]
Forgot the pose file.... :p

15 years ago*pose docs
Joseph Gilbert [Wed, 11 Jan 2006 20:44:24 +0000 (20:44 +0000)]
*pose docs
- some pose python documentation

15 years ago- sanitize spacings and tabs a bit. It's still not completely clean though.
Hans Lambermont [Wed, 11 Jan 2006 20:25:04 +0000 (20:25 +0000)]
- sanitize spacings and tabs a bit. It's still not completely clean though.

15 years ago*vc7 project file update
Joseph Gilbert [Wed, 11 Jan 2006 19:42:58 +0000 (19:42 +0000)]
*vc7 project file update
- adds pose to python project

15 years agoProbably need these....
Joseph Gilbert [Wed, 11 Jan 2006 19:41:01 +0000 (19:41 +0000)]
Probably need these....

15 years ago*pose code for python
Joseph Gilbert [Wed, 11 Jan 2006 19:40:06 +0000 (19:40 +0000)]
*pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices

15 years agoAt least FreeBSD needs to know where to find gl.h
Hans Lambermont [Wed, 11 Jan 2006 19:31:15 +0000 (19:31 +0000)]
At least FreeBSD needs to know where to find gl.h

15 years agoA few Mesh fixes:
Ken Hughes [Wed, 11 Jan 2006 18:37:47 +0000 (18:37 +0000)]
A few Mesh fixes:
* edge and face extend() methods now add edges and faces in the order given
  by their parameters.  Note that if duplicate edges or faces are specified,
  the order is preserved but the dups are removed, so indices won't match.
* allow extend(), findEdges() and faces.uv to accept lists or tuples
* fix bug in mesh.verts.extend() which didn't correctly check argument types

15 years agoExclude labels from grouping. - Clever numbuts look nicer with rounded theme.
Campbell Barton [Wed, 11 Jan 2006 16:55:31 +0000 (16:55 +0000)]
Exclude labels from grouping. - Clever numbuts look nicer with rounded theme.

15 years agoattempt to avoid nameclashes (although it is already in a namespace) -> extension...
Erwin Coumans [Wed, 11 Jan 2006 13:31:45 +0000 (13:31 +0000)]
attempt to avoid nameclashes (although it is already in a namespace) -> extension names renamed from glXXX to blXXX.

15 years agoFixed a silly bug when copying images.
Campbell Barton [Wed, 11 Jan 2006 10:12:03 +0000 (10:12 +0000)]
Fixed a silly bug when copying images.

15 years agoupdate to obj export:
Campbell Barton [Wed, 11 Jan 2006 09:47:17 +0000 (09:47 +0000)]
update to obj export:
Added options.
pup_block = [\
('Apply Modifiers', EXPORT_APPLY_MODIFIERS, 'Use transformed mesh data from each object. May break vert order for morph targets.'),\
('Selection Only', EXPORT_SEL_ONLY, 'Only export objects in visible selection.'),\
('Edges', EXPORT_EDGES, 'Edges not connected to faces.'),\
('Normals', EXPORT_NORMALS, 'Export vertex normal data (Ignored on import).'),\
('Materials', EXPORT_MTL, 'Write a seperate MTL file with the OBJ.'),\
('All Scenes', EXPORT_ALL_SCENES, 'Each scene as a seperate OBJ file.'),\
('Animation', EXPORT_ANIMATION, 'Each frame as a seperate OBJ file.'),\
('Copy Images', EXPORT_COPY_IMAGES, 'Copy image files to the export directory, never everwrite.'),\

Obj import was updated to import edges (2 vert faces), will update some more later.

15 years agoMSVC6 projects for happy GE compiling
Jens Ole Wund [Wed, 11 Jan 2006 09:13:59 +0000 (09:13 +0000)]
MSVC6 projects for happy GE compiling

15 years agoFixed bug in do_clever_numbuts not displaying tooltips.
Campbell Barton [Wed, 11 Jan 2006 04:03:19 +0000 (04:03 +0000)]
Fixed bug in do_clever_numbuts not displaying tooltips.
Clear all events so tooltips work, this is not ideal and
only needed because calls from the menu still have some events
left over when do_clever_numbuts is called.
Calls from keyshortcuts do not have this problem.

15 years agoremoved slow list handeling
Campbell Barton [Tue, 10 Jan 2006 17:40:50 +0000 (17:40 +0000)]
removed slow list handeling
faster vert comparisons
replaced spaces for tabs
removed unneeded getData() calls
general cleanup.

15 years ago*project file updates
Joseph Gilbert [Tue, 10 Jan 2006 16:08:03 +0000 (16:08 +0000)]
*project file updates
- gets project files in line for compiling again

15 years agoAdded openflight import/export- Blight v1.2
Campbell Barton [Tue, 10 Jan 2006 13:42:20 +0000 (13:42 +0000)]
Added openflight import/export- Blight v1.2

15 years agoMSVC compile error fix for subsurf UV.
Brecht Van Lommel [Tue, 10 Jan 2006 12:25:07 +0000 (12:25 +0000)]
MSVC compile error fix for subsurf UV.

15 years agoWarning fixes for gcc 4 in iksolver and ghost.
Brecht Van Lommel [Tue, 10 Jan 2006 11:49:53 +0000 (11:49 +0000)]
Warning fixes for gcc 4 in iksolver and ghost.

15 years agoApply Subsurf to UV's.
Brecht Van Lommel [Tue, 10 Jan 2006 11:36:57 +0000 (11:36 +0000)]
Apply Subsurf to UV's.

This fixes most of the UV distortion issues with subsurf. Near seams
however there might still be some distortion, but this should at least
not be worse than before. Subsurf UV is enabled by default on new meshes,
and can be enabled in the modifier panel for existing ones.

Before and after:

15 years agoapplied patch from snailrose, related to multi-platform OpenGL extensions.
Erwin Coumans [Tue, 10 Jan 2006 06:34:42 +0000 (06:34 +0000)]
applied patch from snailrose, related to multi-platform OpenGL extensions.

15 years agoAnother msvc issue. Added #include <ctype.h> so it compiles.
Kent Mein [Tue, 10 Jan 2006 02:23:47 +0000 (02:23 +0000)]
Another msvc issue.  Added #include <ctype.h> so it compiles.
See patch #3686


15 years agoFixed bug in convert function with Mesh objects.
Campbell Barton [Tue, 10 Jan 2006 02:01:24 +0000 (02:01 +0000)]
Fixed bug in convert function with Mesh objects.
Objects with no modifier could still be converted, but resulting meshes were corrupt and segfaulted Blender when cycling edit mode.
This tests each mesh object for modifiers before converting.

Resulting metaballs meshes were not visible in wireframe.

Also made the selection context nicer, All new converted objects are selected while objects that are converted are deselected.

15 years agoadded prototypes for bottom_sel_action and friends.
Kent Mein [Tue, 10 Jan 2006 01:36:36 +0000 (01:36 +0000)]
added prototypes for bottom_sel_action and friends.
Steath Apprentice said its needed for MSC.  Bug # 3687


15 years agoThere was a problem with typing over text selections, where you had an object with...
Campbell Barton [Mon, 9 Jan 2006 15:24:23 +0000 (15:24 +0000)]
There was a problem with typing over text selections, where you had an object with 21 letter name (19 is the max but 21 is supported, just copy a mesh a few times)
After this click on the object name and start typing, even though the selection makes it that the new string would be overwritten, it dosent let you type in any text.

if(len <= but->max) {
if(len-SELWIDTH+1 <= but->max) {

- Tested and works well.

15 years agoMade buttons in clever numbuts allign.
Campbell Barton [Mon, 9 Jan 2006 05:01:17 +0000 (05:01 +0000)]
Made buttons in clever numbuts allign.
Commented out crufty name spesific actions that changed variables and added a label of buttons started with "Rot" - Since panels are used for rotating now.

15 years ago* Added PupBlock for user options.
Campbell Barton [Mon, 9 Jan 2006 03:43:48 +0000 (03:43 +0000)]
* Added PupBlock for user options.
* Improved context, unwraps active object if not selected and makes sure it only unwraps a mesh once even if 2+ instances are selected.
* Added Option to stretch to bounds
* Added option to have a margin, thanks to letterrip
* Fixed bug whe nassigning UV's to zero area faces.

15 years agoAnother small gameengine build tweak. Included a missing header directory.
Kent Mein [Mon, 9 Jan 2006 02:23:04 +0000 (02:23 +0000)]
Another small gameengine build tweak.  Included a missing header directory.

I also provided a fix for tiff images.  (It was appending tif even if
it was already in the name, now it does it correctly)
(no more image.tif.tif)


15 years agoBPy:
Martin Poirier [Sun, 8 Jan 2006 18:59:55 +0000 (18:59 +0000)]

PupBlock method. This wraps the "clevernumbut" code to allow scripters to use popup blocks for user input instead of a sequence of multiple different popups.
See the blend file for a comprehensive test and example file.

15 years agoNew plus/minus icons
Ton Roosendaal [Sun, 8 Jan 2006 11:50:52 +0000 (11:50 +0000)]
New plus/minus icons

15 years agomore linux game engine work. hopefully works now!
Erwin Coumans [Sun, 8 Jan 2006 09:37:15 +0000 (09:37 +0000)]
more linux game engine work. hopefully works now!

15 years agoGot the armatures, GLSL shaders and other snailrose changes to work for Linux.
Erwin Coumans [Sun, 8 Jan 2006 09:11:17 +0000 (09:11 +0000)]
Got the armatures, GLSL shaders and other snailrose changes to work for Linux.
now attempting to get this in cvs :)

15 years agoremoved testing code
Erwin Coumans [Sat, 7 Jan 2006 02:00:44 +0000 (02:00 +0000)]
removed testing code

15 years agomore work to get armatures/blender materials to work under non-windows platforms
Erwin Coumans [Sat, 7 Jan 2006 00:14:37 +0000 (00:14 +0000)]
more work to get armatures/blender materials to work under non-windows platforms

15 years agoadded new files
Erwin Coumans [Fri, 6 Jan 2006 21:01:03 +0000 (21:01 +0000)]
added new files

15 years agoadded few new files
Erwin Coumans [Fri, 6 Jan 2006 21:00:11 +0000 (21:00 +0000)]
added few new files

15 years agouse relative paths to avoid including extra folder
Erwin Coumans [Fri, 6 Jan 2006 20:35:02 +0000 (20:35 +0000)]
use relative paths to avoid including extra folder

15 years agoBug #3658 reported by Daniel Holtz (thanks):
Willian Padovani Germano [Fri, 6 Jan 2006 20:15:18 +0000 (20:15 +0000)]
Bug #3658 reported by Daniel Holtz (thanks):

Running scripts from command line in bg mode:
blender -b -P
crashes Blender 2.40.

The problem is in add_text() in text.c: G.scene can be NULL at this
point (in bg mode). Added a check:

line 323:
if (G.scene) /* can be NULL (bg mode) */
BLI_convertstringcode(str, G.sce, G.scene->r.cfra);

The text being added with add_text() in this particular case is the
script filename specified at the command prompt, so it should be ok to skip
BLI_convertstringcode. Feel free to disagree, though.

15 years ago*vc7 projectfile update
Joseph Gilbert [Fri, 6 Jan 2006 17:57:26 +0000 (17:57 +0000)]
*vc7 projectfile update
- removed PHY_ode project
- removed ode control from ketsji project

15 years agochanged the size of some local vars for 64bit linux.
Kent Mein [Fri, 6 Jan 2006 15:29:11 +0000 (15:29 +0000)]
changed the size of some local vars for 64bit linux.
also added a newline at the end of the file to shut gcc up.


15 years ago#3706 (patch tracker)
Nathan Letwory [Fri, 6 Jan 2006 13:33:20 +0000 (13:33 +0000)]
#3706 (patch tracker)
- Adds missing ipos for texture
   * color, contrast, brightness
- Adds IKey menu in the texture subcontext

#3711 (bug tracker)
- report and patch for missing blend types Halo and Radial

Patches by Levon Hudson

15 years agoTodo #2574
Nathan Letwory [Fri, 6 Jan 2006 12:37:45 +0000 (12:37 +0000)]
Todo #2574

Setchain: it allows you to chain sets. It checks for loops when trying
to assign new scene, and will notify if changing set would create a loop.

15 years agofixed copy/paste bug in physicscontroller applyforce, and crashing radar sensor
Erwin Coumans [Fri, 6 Jan 2006 09:57:27 +0000 (09:57 +0000)]
fixed copy/paste bug in physicscontroller applyforce, and crashing radar sensor

15 years agoremoved extra characters
Erwin Coumans [Fri, 6 Jan 2006 09:40:00 +0000 (09:40 +0000)]
removed extra characters

15 years agodisable game engine and gameplayer for all platforms except windows.
Erwin Coumans [Fri, 6 Jan 2006 09:02:53 +0000 (09:02 +0000)]
disable game engine and gameplayer for all platforms except windows.
Then after cvs is unfrozen, development can continue.

15 years agoopenal didn't compile under linux, some casting problem.
Erwin Coumans [Fri, 6 Jan 2006 07:34:35 +0000 (07:34 +0000)]
openal didn't compile under linux, some casting problem.

15 years agoAdded current directory to includes so it could find some headers.
Kent Mein [Fri, 6 Jan 2006 04:43:17 +0000 (04:43 +0000)]
Added current directory to includes so it could find some headers.
(I still do not have the whole thing working but I'm stumped now and
figured this will save someone a little time)


15 years agoHeaderfile had wrong Capatalization.
Kent Mein [Fri, 6 Jan 2006 04:13:20 +0000 (04:13 +0000)]
Headerfile had wrong Capatalization.


15 years agoSorry to break the cvs-closed status, so if you really need to make a new 2.40 build...
Erwin Coumans [Fri, 6 Jan 2006 03:46:54 +0000 (03:46 +0000)]
Sorry to break the cvs-closed status, so if you really need to make a new 2.40 build, just disable the game engine if it doesn't compile for a platform. Again, sorry if this breaks non-windows platforms, but I hope people help to get this amazing fix working for all platforms. Armature-fixing contribution from Snailrose. Also lots of cool things from Snailrose and Lagan.

Armatures are back
Split screen
Double sided lightning
Ambient lighting
Alpha test
Material IPO support (one per object atm)
Blender materials
GLSL shaders - Python access
Up to three texture samplers from the material panel ( 2D & Cube map )
Python access to a second set of uv coordinates


15 years agoScene.c - Removed redraw when in non UI mode.
Campbell Barton [Fri, 6 Jan 2006 01:53:26 +0000 (01:53 +0000)]
Scene.c - Removed redraw when in non UI mode. - Example indent - Improved join documentation.

15 years agoLots of stupid warning fixes:
Kent Mein [Thu, 5 Jan 2006 23:10:54 +0000 (23:10 +0000)]
Lots of stupid warning fixes:
Added newlines at end of a bunch of files that didn't have them.
removed a couple of unused variables and an extra ';'
(Also removed config.h crap from these files)


15 years agoI added {}'s around an if block of code to prevent gcc from saying
Kent Mein [Thu, 5 Jan 2006 20:52:51 +0000 (20:52 +0000)]
I added {}'s around an if block of code to prevent gcc from saying
this else is ambiguous...
code was
if (blah) if (blah2) stuff; else stuff2;
its now
if (blah) { if (blah2) stuff; else stuff2; }


15 years agoBugfix for Toni: Ipo_addCurve() needed to call set_icu_vars() in order to
Ken Hughes [Thu, 5 Jan 2006 19:25:38 +0000 (19:25 +0000)]
Bugfix for Toni: Ipo_addCurve() needed to call set_icu_vars() in order to
properly initialize data for new Ipo curves.

15 years agoChanged so all errors raise an excepton. - As per Toni's suggestions.
Campbell Barton [Thu, 5 Jan 2006 15:53:07 +0000 (15:53 +0000)]
Changed so all errors raise an excepton. - As per Toni's suggestions.
TypeError for pythonCoder error.
RuntimeError for blender not being able to be joined. (Sorry stivs, no BadJuJu yet)

Documented this in the epydocs also.

15 years agoThree minor fixes:
Nils Thuerey [Thu, 5 Jan 2006 15:49:27 +0000 (15:49 +0000)]
Three minor fixes:
- removed debugging output from fluidsim export
- directores with "+" are now valid for fluidsim data
- simulation now always uses frame 1 to endframe, so changing start frame settings should work again

15 years ago[ #3661 ] resize4x4 in Matrix class doesn't set ones on the diagonal
Joseph Gilbert [Wed, 4 Jan 2006 16:02:02 +0000 (16:02 +0000)]
[ #3661 ] resize4x4 in Matrix class doesn't set ones on the diagonal

* resizing a matrix now puts 1's back on the diagonals.

15 years agoFix for CrazySpace correction. (Special request of our Argentinan bird
Ton Roosendaal [Wed, 4 Jan 2006 15:37:48 +0000 (15:37 +0000)]
Fix for CrazySpace correction. (Special request of our Argentinan bird
movie friends :)

There were two issues with it, which both have been tackled as follows:

- the correction transformations (quaternions) were calculated per face,
  and then averaged over the vertices. This gave annoying inaccuracies,
  especially when the geometry is irregular.
  The new code first calculates two tangent vectors in a vertex, based on
  the associated edges it has in a face. These tangents then are used to
  define the transform. Tangents are 20% of the length of an edge now.

- When a SubSurf modifier was in the chain, the deformation caused by the
  subsurf was also included in CrazySpace correction, giving even larger
  New code temporally disables Subsurf, recalculates vertices, and then
  does the crazy tricks. :)

All in all, quite well working!

15 years agoAdded some notes regarding Object.GetSelected() - it uses the last localview.
Campbell Barton [Wed, 4 Jan 2006 15:11:35 +0000 (15:11 +0000)]
Added some notes regarding Object.GetSelected() - it uses the last localview.

15 years ago[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones
Joseph Gilbert [Wed, 4 Jan 2006 15:07:15 +0000 (15:07 +0000)]
[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones

* fixes bug where editbones are not freed on calling update()

15 years agoGave an example of changing lamp modes in epydocs. - answers a q on elysuin.
Campbell Barton [Wed, 4 Jan 2006 01:55:39 +0000 (01:55 +0000)]
Gave an example of changing lamp modes in epydocs. - answers a q on elysuin.

15 years agoBugfix #3646
Ton Roosendaal [Tue, 3 Jan 2006 20:59:51 +0000 (20:59 +0000)]
Bugfix #3646

Outliner, using scrollwheel with mouse in scrollbar didn't scroll in the
correct direction.

15 years agoBugfix #3643
Ton Roosendaal [Tue, 3 Jan 2006 20:26:24 +0000 (20:26 +0000)]
Bugfix #3643

Editmode mesh: after an unhide ("reveal") the countall() needed to be
called. This caused for example extrude not to work when all was hidden.

15 years agoBugfix #3673
Ton Roosendaal [Tue, 3 Jan 2006 20:06:08 +0000 (20:06 +0000)]
Bugfix #3673
Threadsafe patch for environment maps type "Load" missed to include a
call, so still crashed. Only for non-debug builds though, so not reported

From my cvs log 7 months ago:

"Added threadsafe patch from Martin.
Now envmaps of type "Load" should not give errors. I assume Martin tested!"


15 years agoBug #3681 The never ending bump mapping saga!
Ton Roosendaal [Tue, 3 Jan 2006 19:49:38 +0000 (19:49 +0000)]
Bug #3681 The never ending bump mapping saga!

With the fix over a month ago, which added correct texture space vectors for
the bump, gave results so crispy that normals could invert after normalize.
This only when the normal "fac" slider was > 1.0.

The normals from imagetextures now get clipped to prevent it to result in
flipping normals. Will do more tests though...

Also note that the real good way would be have the tangent vectors for the
actual render normal available to perturb for bump, thats another story.

15 years ago*bpy fix
Joseph Gilbert [Tue, 3 Jan 2006 17:24:24 +0000 (17:24 +0000)]
*bpy fix
- include file capitialized wrong

15 years ago*warnings fixes
Joseph Gilbert [Tue, 3 Jan 2006 16:27:34 +0000 (16:27 +0000)]
*warnings fixes
- fixes a number of warnings in bpy project

15 years ago*msvc7 update
Joseph Gilbert [Tue, 3 Jan 2006 16:19:36 +0000 (16:19 +0000)]
*msvc7 update
- added bullet files to project
- fixed compiler path on bBullet project

15 years agoreplaced more M_Object_Get for the faster Object_CreatePyObject.
Campbell Barton [Tue, 3 Jan 2006 06:14:53 +0000 (06:14 +0000)]
replaced more M_Object_Get for the faster Object_CreatePyObject.
Object.GetSelected now dosnt return None if there is no 3d view. - wasnt documented and likely would mess up scripts that always expected a list. - Just return an empty list instead.

15 years agomade scene.getChildren() a heap faster. 983.3 times faster in my test.
Campbell Barton [Tue, 3 Jan 2006 05:38:39 +0000 (05:38 +0000)]
made scene.getChildren() a heap faster. 983.3 times faster in my test.
getting 7200 objects did take: 1.18 sec,  now 0.0012 sec

It was doing a full object list lookup for every object in the scenes base using the name to compare.
now it just gets the object directly from the base and converts it to a python object, adding it to the list.
- Cam

15 years agoAdds a boarder around the oops, usefull to know where the oops bounds end with larger...
Campbell Barton [Tue, 3 Jan 2006 04:20:43 +0000 (04:20 +0000)]
Adds a boarder around the oops, usefull to know where the oops bounds end with larger scenes.
I needed to do a make clean, then make to see this change.