15 years agoFor sconstruct build blender linked against the winspool library. This seemed unneces...
Nathan Letwory [Fri, 16 Dec 2005 20:58:16 +0000 (20:58 +0000)]
For sconstruct build blender linked against the winspool library. This seemed unnecessary, and test showed Blender running
fine without it. This probably solves #3503 too, so ZoneAlarm users, do test!

The same change should be done for the project files.


15 years agoOops, left the script menu in there. problems.
Campbell Barton [Fri, 16 Dec 2005 13:50:45 +0000 (13:50 +0000)]
Oops, left the script menu in there. problems.

15 years agoBVH Export updated for 2.4x, also small updates in many areas.
Campbell Barton [Thu, 15 Dec 2005 23:18:48 +0000 (23:18 +0000)]
BVH Export updated for 2.4x, also small updates in many areas.

15 years ago-- Added BPy support for new Material modes. Recent additions of new mode
Ken Hughes [Thu, 15 Dec 2005 21:54:00 +0000 (21:54 +0000)]
-- Added BPy support for new Material modes.  Recent additions of new mode
   bits broke input-checking in the API, so added a bitmask #define in
   DNA_material_types.h which contains all valid mode bits.

15 years ago-- Fix misspelling in Material's TraShad tooltip.
Ken Hughes [Thu, 15 Dec 2005 20:55:52 +0000 (20:55 +0000)]
-- Fix misspelling in Material's TraShad tooltip.

15 years agoScripts:
Willian Padovani Germano [Thu, 15 Dec 2005 20:12:00 +0000 (20:12 +0000)]

- Mirror bone weights contributed by Thomas Oppl.
- Softimage XSI exporter contributed by Elira (with updates by Mal

Again, thanks to the authors mentioned. And to Tom (LetterRip) for
contacting the authors and making suggestions about scripts we should

15 years ago-- removed redundant initialization for Mesh_Type (thanks LetterRip)
Ken Hughes [Thu, 15 Dec 2005 19:12:31 +0000 (19:12 +0000)]
-- removed redundant initialization for Mesh_Type (thanks LetterRip)

15 years agoDisabled reading Groups from bf-blender. There was old rudimentary code
Ton Roosendaal [Thu, 15 Dec 2005 18:37:47 +0000 (18:37 +0000)]
Disabled reading Groups from bf-blender. There was old rudimentary code
for Groups in official release still, which will give very bad results when
loading an Orange branch file with bf-blender, save over, and read back
in Orange branch.

Now, reading files with Groups in bf-blender will just completely ignore
them (not read nor save). That's destructive, but normal behaviour and

15 years agoScripts:
Willian Padovani Germano [Thu, 15 Dec 2005 18:12:49 +0000 (18:12 +0000)]

- Jean-Baptiste Perin updated his bvh to armatures script to use the new
armature module.
- Johnny Matthews (guitargeek) contributed "Shape Widget Wizard". (Moved
it to the Animation menu in Scripts win)
- Benoit Foucque (dienben) contributed "Blender Lip Synchro".

Thanks to the three authors!

15 years agoMade Ctrl+RMB on an image in the oops view, activates images in the UV/Image window.
Campbell Barton [Thu, 15 Dec 2005 02:50:08 +0000 (02:50 +0000)]
Made Ctrl+RMB on an image in the oops view, activates images in the UV/Image window.
Faster way to flick through images.

15 years agoFixed some warnings from GetCurrent, remaining warnings seem to have no obvious solution
Campbell Barton [Thu, 15 Dec 2005 02:06:37 +0000 (02:06 +0000)]
Fixed some warnings from GetCurrent, remaining warnings seem to have no obvious solution
attr = Py_True; // Image.c:1107: warning: dereferencing type-punned pointer will break strict-aliasing rules

15 years agoScripts:
Willian Padovani Germano [Thu, 15 Dec 2005 01:42:45 +0000 (01:42 +0000)]
- added import and export scripts for 3ds and md2 (Quake 2) models
contributed by author Bob Holcomb. Thanks!
- updated ac3d importer to be more forgiving and exporter to get rid of
deprecated call.

More additions and possibly fixes to come.

Note: we're forming a group to take care of importers and exporters and
improve the situation as a whole in Blender. Discussions should happen
at the bf-scripts-dev mailing list:

Thanks Tom Musgrove (LetterRip) for helping a lot with scripts.

15 years agoThree fixes;
Ton Roosendaal [Wed, 14 Dec 2005 20:36:04 +0000 (20:36 +0000)]
Three fixes;

- On file reading, a check is added to see if a Pose has channels to
  missing bones. Poses are supposed to match an Armature completely.
  (Thanks for crash file, Johnny!... but how did you do it!)

- Own collection: added depsgraph update on setting all layers (with the
  ACCENTGRAVEKEY). This also could potentially crash with modifiers

- Renamed Xkey menu in NLA to more properly tell what it does. :)

15 years agoBPython:
Willian Padovani Germano [Wed, 14 Dec 2005 18:01:42 +0000 (18:01 +0000)]
- malformed nmeshes could crash Blender with a sigsegv. Related to old
behavior that accepted "faces" with one or two verts.
- removing unused var (store_edges) + doc update.

15 years agoCommit with fix for ActionStrip "Hold" missed two crucial features;
Ton Roosendaal [Wed, 14 Dec 2005 14:10:04 +0000 (14:10 +0000)]
Commit with fix for ActionStrip "Hold" missed two crucial features;
- if repeat is set on exact integer values, it jumped to first position
- code was missing the action start offset

15 years agoAdded
Campbell Barton [Wed, 14 Dec 2005 03:27:35 +0000 (03:27 +0000)]
Image.New(name, w,h,depth)
Image.start- for animtex
Image.end - for animtex
Image.speed - for animtex
Image.packed - read only bool

See the pydocs for details.

15 years agoOrange reported fix: Stride bone offset was blending with any strip, even
Ton Roosendaal [Tue, 13 Dec 2005 20:16:10 +0000 (20:16 +0000)]
Orange reported fix: Stride bone offset was blending with any strip, even
when strips had no stride set... causing using multiple strips not to work
for stride.

15 years ago-- More of Bugfix #3580: Mesh_getFromObject() was not updating key->from
Ken Hughes [Tue, 13 Dec 2005 18:39:50 +0000 (18:39 +0000)]
-- More of Bugfix #3580: Mesh_getFromObject() was not updating key->from
   when it duplicated mesh data.

   I'm not thrilled with how I implemented this code, but currently don't
   know a better way.  If someone more familiar with how blender duplicates
   objects and converts things to meshes wants to have a look, it would be

15 years ago-- Calling mesh.verts.extend() on a mesh with vertex groups was not updating
Ken Hughes [Tue, 13 Dec 2005 15:36:32 +0000 (15:36 +0000)]
-- Calling mesh.verts.extend() on a mesh with vertex groups was not updating
   mesh->dvert, eventuallu causing a crash.

15 years agoBugfix #3580
Ton Roosendaal [Tue, 13 Dec 2005 15:07:21 +0000 (15:07 +0000)]
Bugfix #3580

Apparently python allows to create Key blocks without proper *from pointer
back to the owner of the Key. The Key unfortunately wasn't mean to be a
dynamic block linkable to any Mesh...

This patch sets the from pointer on any call to do_mesh_key, which is safe
to do anyway. I made a note to get rid of that convention once, but at
least now we got non-crashing blenders. :)

(In bugreport noted that we need to check Python code for it too!)

15 years ago*warnings fixes
Joseph Gilbert [Tue, 13 Dec 2005 14:29:56 +0000 (14:29 +0000)]
*warnings fixes

15 years agoBugfix #3590
Ton Roosendaal [Tue, 13 Dec 2005 14:28:34 +0000 (14:28 +0000)]
Bugfix #3590

Adding Ipos to Sound strips in Sequencer didn't work anymore. Adding a new
curve with CTRL+click also wasn't smart enough to detect that only one
channel existed there... fixed that too.

15 years agoBugfix #3579
Ton Roosendaal [Tue, 13 Dec 2005 13:38:14 +0000 (13:38 +0000)]
Bugfix #3579

Saving envmap, with a filter set (like gauss) and with a percentage set
(like 50%), saved envmaps with empty pixels inbetween the sub images.

15 years agoBugfix #3552
Ton Roosendaal [Tue, 13 Dec 2005 13:17:29 +0000 (13:17 +0000)]
Bugfix #3552

Another ancient bug in unified render... the lamphalo wasn't filled in
correctly over sky, especially when the background had halos (or stars).

Only shows when using filters other than box though.

15 years agoWith the introduction of fixed edge arrays in Mesh, the options to render
Ton Roosendaal [Tue, 13 Dec 2005 12:41:17 +0000 (12:41 +0000)]
With the introduction of fixed edge arrays in Mesh, the options to render
wire frame became very limited... the information of faces (vertex colors
and UV reside there) got lost.
Solved it nicely with creating a large index table, and use bsearch() to
get quickly the matching information.

Then I noticed the render code needed fixes too for wire, no proper UV's
were calculated over the wire edge.

15 years agobugfix #3585
Ton Roosendaal [Tue, 13 Dec 2005 08:44:07 +0000 (08:44 +0000)]
bugfix #3585

The tool "Single User" -> "Object data" missed a tag to recalculate the
geometry. This caused meshes to disappear after entering editmode on the
former linked mesh.

15 years agoFrom kh_pylon:
Campbell Barton [Tue, 13 Dec 2005 00:27:10 +0000 (00:27 +0000)]
From kh_pylon:
  You have to put Py_RETURN_NONE; inside { }; it's a two-line macro
Aparently breaks MacOS.

15 years agoAdded Image.GetCurrent()
Campbell Barton [Tue, 13 Dec 2005 00:00:11 +0000 (00:00 +0000)]
Added Image.GetCurrent()
Previously the only way to get the current image was flaky and relyd on the image being assigned to a mesh.

  me = Scene.GetCurrent().getAttiveObject().getData(mesh=1)
  image = me.faces[me.activeFace].image
  image = None

...Can new be replaced by the following, and works even when there is no mesh.
image = Image.GetCurrent()

  Get the currently displayed Image from Blenders UV/Image window.
  When multiple images are displayed, the last active UV/Image windows image is used.

15 years ago-- Bugfix #3566: Entering very large numbers for scaling/rotation/translation
Ken Hughes [Mon, 12 Dec 2005 23:03:32 +0000 (23:03 +0000)]
-- Bugfix #3566: Entering very large numbers for scaling/rotation/translation
   cause a write past end of string buffers in outputNumInput().  Patched to
   make large numbers (+-1.0e+10) display in scientific notation format.

15 years agoBugfix #3583
Ton Roosendaal [Mon, 12 Dec 2005 22:27:30 +0000 (22:27 +0000)]
Bugfix #3583

Auto-IK confused a routine that checked for IK on bones... causing
drawing errors in buttons and 3d window.

15 years agoBugfix #3565
Ton Roosendaal [Mon, 12 Dec 2005 22:04:34 +0000 (22:04 +0000)]
Bugfix #3565

Enabling FluidSim on non-mesh object crashed... it uses DerivedMesh. :)

15 years agoBug #3562
Ton Roosendaal [Mon, 12 Dec 2005 21:56:32 +0000 (21:56 +0000)]
Bug #3562

Strips with a repeat fraction (like 3.51) should also "hold" on the
fraction of .51 when indicated so.
Patch provided by Roland Hess, but cleaned up (exisiting) mess a bit too.

15 years agoBugfix #3556
Ton Roosendaal [Mon, 12 Dec 2005 21:16:24 +0000 (21:16 +0000)]
Bugfix #3556

Unified render didn't treat the alpha for raytraced transparent correct...
unified is based on layering with alpha, so it cannot support alpha in
raytraced transparent correctly.

I'm going to kill unified one day... its giving me headaches. :)

15 years ago*Armature api documentation
Joseph Gilbert [Mon, 12 Dec 2005 20:12:50 +0000 (20:12 +0000)]
*Armature api documentation

15 years agoBugfix #3544
Ton Roosendaal [Mon, 12 Dec 2005 19:06:34 +0000 (19:06 +0000)]
Bugfix #3544

First two vertices of a hair strand were not transformed OK, causing weird
results with especially thicker hair, or very short ones.

15 years ago- Armature/Bone API for python
Joseph Gilbert [Mon, 12 Dec 2005 18:46:26 +0000 (18:46 +0000)]
- Armature/Bone API for python
* this resolves a number of outstanding issues with the armature api and gets this ready for release
- add/remove bones possible
- rolls work correctly now!
- ik'ing to parent should work
- flags for tip/root/bone selection
- etc.

15 years agobugfix: #3420 Indent/Unindent in text editor not undoable
Stephen Swaney [Mon, 12 Dec 2005 18:35:15 +0000 (18:35 +0000)]
bugfix:  #3420 Indent/Unindent in text editor not undoable

contributed by Mr. TextEditor - themyers.  Thanks!

15 years agoRewrote TimeLine_getFramesMarked func with better coding
Joilnen Leite [Mon, 12 Dec 2005 11:57:58 +0000 (11:57 +0000)]
Rewrote TimeLine_getFramesMarked func with better coding

15 years agoFix confusing (too early) waitcursor when selecting rand fac for fractal
Alexander Ewering [Mon, 12 Dec 2005 03:02:29 +0000 (03:02 +0000)]
Fix confusing (too early) waitcursor when selecting rand fac for fractal

15 years agoFix: reading library files with option "Relative Paths" set, whilst library
Ton Roosendaal [Sun, 11 Dec 2005 22:03:04 +0000 (22:03 +0000)]
Fix: reading library files with option "Relative Paths" set, whilst library
was read already AND relative, caused the path for libraries to corrupt...

Error caused big headaches in studio Orange... :)

15 years agoAdded some details in the Mathutils documentation.
Campbell Barton [Sun, 11 Dec 2005 04:20:37 +0000 (04:20 +0000)]
Added some details in the Mathutils documentation.

15 years ago-- Bugfix #3573: Deleting a scriptlink when some other scriptlinks were no
Ken Hughes [Sat, 10 Dec 2005 19:36:05 +0000 (19:36 +0000)]
-- Bugfix #3573: Deleting a scriptlink when some other scriptlinks were no
   longer linked to a script would cause a crash.  We now delete all
   scriptlinks which are not linked.

15 years ago-- Bugfix #3564: Texture.getImage() always returned None for Env maps, even if
Ken Hughes [Fri, 9 Dec 2005 23:19:00 +0000 (23:19 +0000)]
-- Bugfix #3564: Texture.getImage() always returned None for Env maps, even if
   an image was assigned.

15 years agoBugfix #3526
Ton Roosendaal [Fri, 9 Dec 2005 17:22:50 +0000 (17:22 +0000)]
Bugfix #3526

Division with zero caused wrong pixels to be rendered with Ortho camera.

15 years agochange return of getMarked method for dict {framnum:['nameframe']}
Joilnen Leite [Fri, 9 Dec 2005 15:00:54 +0000 (15:00 +0000)]
change return of getMarked method for dict {framnum:['nameframe']}

15 years agobugfix #3550
Johnny Matthews [Fri, 9 Dec 2005 14:49:41 +0000 (14:49 +0000)]
bugfix #3550

Fixing Loopcut smooth to actually cut smooth

I think this will go to HEAD now...

15 years ago-- Bugfix #3520: Text with extrusion and/or bevelling would would disappear
Ken Hughes [Fri, 9 Dec 2005 14:30:51 +0000 (14:30 +0000)]
-- Bugfix #3520: Text with extrusion and/or bevelling would would disappear
   when edit mode was entered.

15 years ago-- Bugfix #3545: Toggling the "apply modifier to editing cage during
Ken Hughes [Fri, 9 Dec 2005 13:57:27 +0000 (13:57 +0000)]
-- Bugfix #3545: Toggling the "apply modifier to editing cage during
   Editmode" flag in one modifier cleared the flag for all other modifiers.
   It now only allows toggling of the last modifier in the stack.

15 years agoMade Mesh verts/edges/faces hashable (as they were in NMesh); this will
Ken Hughes [Wed, 7 Dec 2005 21:12:33 +0000 (21:12 +0000)]
Made Mesh verts/edges/faces hashable (as they were in NMesh); this will
make it easier for some scripts to be converted.

15 years agoBugfix from own collection: Rename option in Outliner didn't handle an ESC
Ton Roosendaal [Wed, 7 Dec 2005 19:59:26 +0000 (19:59 +0000)]
Bugfix from own collection: Rename option in Outliner didn't handle an ESC
correctly. Button wasn't closed then.

15 years ago-- Bugfix #3551: fix memory corruption problem if Text3d.setText() called
Ken Hughes [Wed, 7 Dec 2005 05:44:29 +0000 (05:44 +0000)]
-- Bugfix #3551: fix memory corruption problem if Text3d.setText() called
   while selected text is in edit mode.

(Future note: now that there is Unicode support in Blender, we need to add
support for it in the BPy Text3d API.)

15 years agoFix memory leak; if Blender quits while in text edit mode, free textbuf
Ken Hughes [Wed, 7 Dec 2005 05:41:58 +0000 (05:41 +0000)]
Fix memory leak; if Blender quits while in text edit mode, free textbuf
inside of free_editText().

15 years agoFix for bug #3529
Kent Mein [Tue, 6 Dec 2005 18:52:55 +0000 (18:52 +0000)]
Fix for bug #3529

Provided by Jorge Bernal (lordloki)

Function was returning a wrong value in a switch statement.


15 years ago-- Bugfix #3548: material.setMode() was doing incorrect range check on
Ken Hughes [Tue, 6 Dec 2005 17:08:09 +0000 (17:08 +0000)]
-- Bugfix #3548: material.setMode() was doing incorrect range check on
   inputs, returned error setting RAYMIRROR or RAYTRANSP modes.

15 years agoMore corrections and additions to Ipo and IpoCurve documentation.
Ken Hughes [Tue, 6 Dec 2005 06:16:10 +0000 (06:16 +0000)]
More corrections and additions to Ipo and IpoCurve documentation.

15 years agoAdded some extra parameter checking in Ipo driver code.
Ken Hughes [Tue, 6 Dec 2005 05:42:23 +0000 (05:42 +0000)]
Added some extra parameter checking in Ipo driver code.

15 years agoAdded GPL licence header. possibly some other new stuff, not sure how old the CVS...
Campbell Barton [Tue, 6 Dec 2005 04:30:23 +0000 (04:30 +0000)]
Added GPL licence header. possibly some other new stuff, not sure how old the CVS console script was.

15 years agoUpdated bvh importer. tested on over 100 bvh files.
Campbell Barton [Tue, 6 Dec 2005 03:53:35 +0000 (03:53 +0000)]
Updated bvh importer. tested on over 100 bvh files.

* Modified to use Mathutils for matrix math,
* Fixed possible joint naming bug,
* Imports BVH's with bad EOF gracefully
* Fixed duplicate joint names, make them unique
* Use \r as well as \n for newlines
* Added suppot for nodes with 0 motion channels
* Rotation IPOs never cross more then 180d
   fixes sub frame tweening and time scaling
* 5x overall speedup.

15 years ago-- Bugfix 3543: call to test_index_face() in decimateModifier_applyModifier()
Ken Hughes [Tue, 6 Dec 2005 00:02:55 +0000 (00:02 +0000)]
-- Bugfix 3543: call to test_index_face() in decimateModifier_applyModifier()
   was passing pointer to the wrong face, which led to eekadoodle later in

15 years agoModified the logic under linux.
Kent Mein [Mon, 5 Dec 2005 21:32:55 +0000 (21:32 +0000)]
Modified the logic under linux.
My 64bit box fell through and didn't do anything
because it didn't match a CPU type, so changed the logic so there is a default.


15 years ago-- Bugfix #3072: As discussed on IRC, matrix.invert() should throw a
Ken Hughes [Mon, 5 Dec 2005 19:57:23 +0000 (19:57 +0000)]
-- Bugfix #3072: As discussed on IRC, matrix.invert() should throw a
   ValueError exception if matrix is singular.

15 years ago-- Bugfix 3453: coercion operations were doing an extra incref on coerced
Ken Hughes [Mon, 5 Dec 2005 19:02:30 +0000 (19:02 +0000)]
-- Bugfix 3453: coercion operations were doing an extra incref on coerced
   objects.  Also found extra increfs on some newly-created quat and matrix
   objects, from calls to Matrix_Identity() and Quaternion_Identity().

15 years agoBugfix #3514
Ton Roosendaal [Mon, 5 Dec 2005 13:44:22 +0000 (13:44 +0000)]
Bugfix #3514

Once an Object Ipo position was inserted, the object couldn't be moved when
a particle system was tied to it. Needed code to copy object settings,
before the particle animation was done.

15 years agoBugfix #3512
Ton Roosendaal [Mon, 5 Dec 2005 13:22:16 +0000 (13:22 +0000)]
Bugfix #3512

Duplicated objects, that have modifiers, didn't render (or not correct).
Bug reported case with softbody being duplicated.

The duplicator system is ancient... integration with new derivedmesh or
modifiers has not been really done yet.

15 years agoHrms... setting the undosteps to zero then should also work! :)
Ton Roosendaal [Mon, 5 Dec 2005 11:52:30 +0000 (11:52 +0000)]
Hrms... setting the undosteps to zero then should also work! :)

15 years agoBugfix #3507
Ton Roosendaal [Mon, 5 Dec 2005 11:46:40 +0000 (11:46 +0000)]
Bugfix #3507

Global Undo didn't use the 'undo steps' value in the user presets yet...
even whilst button mentioned 'editmode undo' there, an easy fix to add.

15 years agoFix unchecked parameter in M_Ipo_Recalc, and some documentation fixes.
Ken Hughes [Mon, 5 Dec 2005 05:23:35 +0000 (05:23 +0000)]
Fix unchecked parameter in M_Ipo_Recalc, and some documentation fixes.

15 years ago-- remove unused variable "dict" which was giving compiler warnings.
Ken Hughes [Mon, 5 Dec 2005 01:07:24 +0000 (01:07 +0000)]
-- remove unused variable "dict" which was giving compiler warnings.

15 years agofix for exotic msvc6 projects building
Jens Ole Wund [Sun, 4 Dec 2005 22:44:19 +0000 (22:44 +0000)]
fix for exotic msvc6 projects building
so i think i can do, though we're BCON-4 ( official builds are VC7 anyway )

building elbeem debug lib with proper threading model

15 years ago-- Fix segfault when callign Blender.Armature.Get() with no parameters
Ken Hughes [Sun, 4 Dec 2005 20:39:56 +0000 (20:39 +0000)]
-- Fix segfault when callign Blender.Armature.Get() with no parameters

15 years agoBf-blender commit! :)
Ton Roosendaal [Sun, 4 Dec 2005 17:18:58 +0000 (17:18 +0000)]
Bf-blender commit! :)

Forgot to put back window/screen-size clipping when opening render window.
Note for windows coders; check this diff, here's where you might need to
add an ifdef too for windows, to get the window opening correct for the
top of the screen (probably because of windows bottom toolbar?)

15 years ago- fixed output behaviour (now behaves just like render output,
Nils Thuerey [Sat, 3 Dec 2005 17:45:35 +0000 (17:45 +0000)]
- fixed output behaviour (now behaves just like render output,
  thus directories in the path are created using RE_make_existing_file
  in fluidsim.c)
- changed default output to be '//fluidsimdata/...'
- hopefully fixed bugs #3466 and #3470 (orco texture coords caused
  problems when the fluidsim mesh was bigger than the original one,
  one no other deformations were used - new deformedVerts are now
  allocated in this case in DerivedMesh.c)

15 years agoJust one more useful commit from Desoto: added a newline to the end
Chris Burt [Sat, 3 Dec 2005 00:52:51 +0000 (00:52 +0000)]
Just one more useful commit from Desoto: added a newline to the end
of the file. Hold the applause please.

15 years agofix for #3498
Kent Mein [Fri, 2 Dec 2005 21:46:52 +0000 (21:46 +0000)]
fix for #3498

(Swap colors on bigendian machines)

I also made it so that the env variable is tried ahead of all
of the other looking.  (That way you can override a system default
if its broken without having to upgrade)

This also makes it so we can remove the OSX ifdef.  So I did.
lukep: If you still want it add it back in but my gut says the less ifdefs
we have the better ;)


15 years agoSmall changes to API docs on curves and space handlers explanations.
Ken Hughes [Fri, 2 Dec 2005 21:25:30 +0000 (21:25 +0000)]
Small changes to API docs on curves and space handlers explanations.

15 years agoThis commit does very little for the number of files touched.
Kent Mein [Fri, 2 Dec 2005 21:13:14 +0000 (21:13 +0000)]
This commit does very little for the number of files touched.
I updated so its in sync with the file(s) it creates.
I added a little more documentation to the readme.txt for adding
new file formats.

I also added two dummy functions to the tiff.c so it stopped whining
about them being NULL.

(I'm still working on the reported bugs but thought this was a good time
to at least get this in)


15 years ago-- Bugfix #3524: theEditMesh structure was not being initialized correctly.
Ken Hughes [Fri, 2 Dec 2005 18:00:38 +0000 (18:00 +0000)]
-- Bugfix #3524: theEditMesh structure was not being initialized correctly.

15 years agoBugfix #3510
Johnny Matthews [Thu, 1 Dec 2005 16:36:30 +0000 (16:36 +0000)]
Bugfix #3510

Adding a couple of countall() to update header after using the Vertgroup and Material Group "select" and "deselect" buttons

15 years ago- last bugfix caused problems when using the makefile, this should work as well now
Nils Thuerey [Thu, 1 Dec 2005 16:10:38 +0000 (16:10 +0000)]
- last bugfix caused problems when using the makefile, this should work as well now

15 years agoWee li'll commit in tooltip for "W" button softbodies.
Ton Roosendaal [Thu, 1 Dec 2005 16:00:39 +0000 (16:00 +0000)]
Wee li'll commit in tooltip for "W" button softbodies.

15 years ago- this should fix bug #3468 (scons problem with fluidsim off)
Nils Thuerey [Thu, 1 Dec 2005 15:44:08 +0000 (15:44 +0000)]
- this should fix bug #3468 (scons problem with fluidsim off)

15 years ago-- Bugfix #3139: Blender.Library.Open() was changing current .blend
Ken Hughes [Thu, 1 Dec 2005 05:30:15 +0000 (05:30 +0000)]
-- Bugfix #3139: Blender.Library.Open() was changing current .blend
   filename.  We now save and restore file before opening library.

15 years agoMake curnurb.flagU and curnurb.flagV range check their inputs, plus make
Ken Hughes [Thu, 1 Dec 2005 04:50:04 +0000 (04:50 +0000)]
Make curnurb.flagU and curnurb.flagV range check their inputs, plus make
the documentation correctly describe how the attributes and methods work.

15 years agoOrange bugreport; disabling (with small icon button) a deforming modifier
Ton Roosendaal [Wed, 30 Nov 2005 20:22:27 +0000 (20:22 +0000)]
Orange bugreport; disabling (with small icon button) a deforming modifier
for EditMode, the CrazySpace correction still worked. Made it check for
the modifier mode flag.

15 years ago-- previous commit was decrefing a borrowed reference; thanks Ascotan for
Ken Hughes [Wed, 30 Nov 2005 20:18:54 +0000 (20:18 +0000)]
-- previous commit was decrefing a borrowed reference; thanks Ascotan for
   tracking this down!

15 years agoBugfix - own repertoire :)
Ton Roosendaal [Wed, 30 Nov 2005 18:58:10 +0000 (18:58 +0000)]
Bugfix - own repertoire :)

- Curves without bevel or extrude didn't calculate the Z value for
  softbody when the "3d" option for curves was off.
- Typo in softbody.c, for switch of // comments to /* */

15 years agoBoolean op error handling has been added. When a no closed mesh is used the follow...
Marc Freixas [Wed, 30 Nov 2005 17:38:41 +0000 (17:38 +0000)]
Boolean op error handling has been added. When a no closed mesh is used the follow message is showed:
"Both meshes must be a closed mesh"

15 years agoBoolean op are undeffined when one of the two meshes are a no closed mesh (without...
Marc Freixas [Wed, 30 Nov 2005 17:35:54 +0000 (17:35 +0000)]
Boolean op are undeffined when one of the two meshes are a no closed mesh (without holes).
I put a test to check the input meshes before do any thing. If one mesh have holes a error code is returned.

15 years ago-- Bugfix #3186: Fix memory leaks caused by multiple calls to
Ken Hughes [Wed, 30 Nov 2005 08:18:06 +0000 (08:18 +0000)]
-- Bugfix #3186: Fix memory leaks caused by multiple calls to
   PyDict_SetItemString() with objects that were not properly decrefed
   afterwards.  Due to the number of places this was used, I added a
   wrapper EXPP_dict_set_item_str() to gen_utils.c to handle it.

   This started as a scriptlink bug, due to how many times scripts were
   being executed I think it just magnified how bad the memory leak in
   BPy was.  Animating the blend attached with this bug report would cause
   memory to grow by about 3MB for every 280 frames.  After the patch,
   memory did not appear to grow at all (or at least not noticably using
   Unix's ps and top utils).

   Since many of the PyDict_SetItemString() calls were in initialization
   modules I think my tests executed most of the changed code, but would
   appreciate script users really giving feedback.

15 years ago-- Bugfix #2868: NMesh.update(0,0,1) with derived mesh data would cause a
Ken Hughes [Tue, 29 Nov 2005 23:38:40 +0000 (23:38 +0000)]
-- Bugfix #2868: NMesh.update(0,0,1) with derived mesh data would cause a
   crash.  Hopefully the NMesh module will die a silent death before we
   discovere this doesn't really fix the problem :-)

15 years agoBugfix #496
Ton Roosendaal [Tue, 29 Nov 2005 23:31:26 +0000 (23:31 +0000)]
Bugfix #496

Noticed that static particle orcos (strands) actually were global
coordinates. This was code copied from dynamic particles...

Bugreporter (hi env!) tried to make nice zebra texture, which of course
very much failed.

Note; orco textures for strand give the same texture coordinate for the
entire hair. UV maps don't work here yet.

15 years agoBugfix #3494
Ton Roosendaal [Tue, 29 Nov 2005 23:09:36 +0000 (23:09 +0000)]
Bugfix #3494

An image texture without picture returned a '0', causing the texture code
to generate a bump normal that warped the entire shading around.
In bugreport it was showing terminator issues with ray shadow.

Terminator problems can still occor with more extreme bumpmaps though,
something to look at further.

15 years agoBugfix #3493
Ton Roosendaal [Tue, 29 Nov 2005 21:44:47 +0000 (21:44 +0000)]
Bugfix #3493

Replaced sqrt() with the safe version sasqrt() in anisotropic.
the formula (1 - n*n) should not give negative values for n = dotproduct
of normals, but float inaccuracy can make negative zeros, as we know!

This solves, hopefully, last annoying "blotches" in hair!

15 years agoFixed calls to BIF_draw_icon_blended() in draw_marker() to use TH_BACK,
Ken Hughes [Tue, 29 Nov 2005 21:41:31 +0000 (21:41 +0000)]
Fixed calls to BIF_draw_icon_blended() in draw_marker() to use TH_BACK,
also removed unused parameter from draw_markers_time().

15 years agoA small tweak on the Glow effect Alpha channel.
Johnny Matthews [Tue, 29 Nov 2005 21:14:42 +0000 (21:14 +0000)]
A small tweak on the Glow effect Alpha channel.

15 years agoPossible fix for bug #3400
Johnny Matthews [Tue, 29 Nov 2005 21:07:17 +0000 (21:07 +0000)]
Possible fix for bug #3400

15 years agoDisabled commit of three days ago to speedup and improve hairstrand
Ton Roosendaal [Tue, 29 Nov 2005 20:18:31 +0000 (20:18 +0000)]
Disabled commit of three days ago to speedup and improve hairstrand
raytracing with a linedist (cylinder) check. It didn't behave OK on strands
set to be more than 1 pixel (not to mention 10 pixels), and I have no time
now to fully check and code it.

Which is not really important either... In general, all 3d papers talk about
using shadowbuffer shadows for hair, which gives much nicer results for
dense volumes of polygons.

This commit restores regular (flat polygon) raytrace shadow for strands.
Also fixes some nasty bugs as reported. :)

15 years agoCleanup & preparation commit for getting Armatures/Poses/Actions working
Ton Roosendaal [Tue, 29 Nov 2005 12:45:18 +0000 (12:45 +0000)]
Cleanup & preparation commit for getting Armatures/Poses/Actions working
in the game engine again.

All files in source/gameengine/ I've committed below have a comment like
/* XXX note .... */
where something needs to be done. This is pretty straightforward for Erwin,
who has been notified in person too about this. :)

15 years ago* warnings fixes
Joseph Gilbert [Tue, 29 Nov 2005 05:08:29 +0000 (05:08 +0000)]
* warnings fixes

15 years projectfile update
Joseph Gilbert [Tue, 29 Nov 2005 05:03:13 +0000 (05:03 +0000)]
.net projectfile update
* fixes file directory for elbeem (rebuild intern)
* adds the tiff stuff to imbuf and copies dll