15 years agoSome rigidbody dynamics fixes (scaling again) to make Happy 2006 domino simulation...
Erwin Coumans [Sun, 1 Jan 2006 00:20:50 +0000 (00:20 +0000)]
Some rigidbody dynamics fixes (scaling again) to make Happy 2006 domino simulation to work.

For the baked dominos. Thanks to Tom M (LetterRip) for the blend.

15 years agomore game engine bug-fixes, hooked up 'formfactor' as inertia tensor tweaker, frictio...
Erwin Coumans [Sat, 31 Dec 2005 21:59:56 +0000 (21:59 +0000)]
more game engine bug-fixes, hooked up 'formfactor' as inertia tensor tweaker, friction/restitution, more scaling related fixes.

15 years agoFixed several bugs: python refcounting related and Bullet related (basic add/remove...
Erwin Coumans [Sat, 31 Dec 2005 07:20:08 +0000 (07:20 +0000)]
Fixed several bugs: python refcounting related and Bullet related (basic add/remove object support, bounding volume hierarchy). Added a few files, updated the Bullet scons. Vc6/7 Bullet projectfiles need to add a couple of files: 'Bullet/CollisionShapes/BvhTriangleMeshShape.cpp',
Sorry, no armatures fix yet.

15 years agoAdded a python hook to Joining objects
Campbell Barton [Fri, 30 Dec 2005 14:17:15 +0000 (14:17 +0000)]
Added a python hook to Joining objects

Seperated the join calls from space.c and view3dmenu into join_menu() in space.c, like the select_group_menu(),
okee's from join_curve, join_mesh.. etc are in join_menu() so python can call them without UI menu's in the way.
this is also a bit neater since there were 2 places that were doing what join_menu() does now.

- Cam

15 years agoOoops 2 tipos in the epydocs...
Campbell Barton [Fri, 30 Dec 2005 11:56:44 +0000 (11:56 +0000)]
Ooops 2 tipos in the epydocs...

15 years agoAdded the function Duplicate to the object module.
Campbell Barton [Fri, 30 Dec 2005 11:54:53 +0000 (11:54 +0000)]
Added the function Duplicate to the object module.

Basicly a wrapper for adduplicate();

There was previously no easy way to copy objects in python. even the ways that do exist dont take modifiers, particles etc into account.
Uses the current selection.. epydocs included also.

- Cam

15 years agofor Mesh_getFromObject made Mesh and Surf types copy the material list to the new...
Campbell Barton [Fri, 30 Dec 2005 09:56:02 +0000 (09:56 +0000)]
for Mesh_getFromObject made Mesh and Surf types copy the material list to the new mesh.
Still need to do Mball and Text.
Ken- this is fairly straight fwd but if you dont like it - its line 4867 of Mesh.c and 1 block that can be removed.
I tested for memory leaks and correct material user adjustment.
This is realy needed for using getFromObject to export to external rendering engines.
- Hope its ok.

15 years ago*crash fix
Joseph Gilbert [Thu, 29 Dec 2005 19:27:52 +0000 (19:27 +0000)]
*crash fix
- previous fix crashes win32 and creates an unreachable code block

15 years agoFixed a python segfault when linking a new object to a scene that had no data and...
Campbell Barton [Thu, 29 Dec 2005 12:06:42 +0000 (12:06 +0000)]
Fixed a python segfault when linking a new object to a scene that had no data and was a Surf. the data wasnt created and blender died. Now an error is raised instead.

15 years agoJust added some comments about face material incides and the material list.
Campbell Barton [Thu, 29 Dec 2005 11:08:55 +0000 (11:08 +0000)]
Just added some comments about face material incides and the material list.

15 years agoAdded some details to the Object documentation, some parts were a big vague..
Campbell Barton [Thu, 29 Dec 2005 10:33:00 +0000 (10:33 +0000)]
Added some details to the Object documentation, some parts were a big vague..

15 years agoNew icon image
Ton Roosendaal [Wed, 28 Dec 2005 16:02:52 +0000 (16:02 +0000)]
New icon image

15 years ago- include path and file changes for FreeBSD
Hans Lambermont [Tue, 27 Dec 2005 20:37:15 +0000 (20:37 +0000)]
- include path and file changes for FreeBSD

15 years agoFix crash in EXPP_(int|obj)Error. These functions are redundant;
Yann Vernier [Tue, 27 Dec 2005 15:28:09 +0000 (15:28 +0000)]
Fix crash in EXPP_(int|obj)Error. These functions are redundant;
they only differ by return type, so it's easier to just call
PyErr_Format and return appropriately.

15 years agoSome compilers don't like it when you initialize the fields in a
Chris Want [Mon, 26 Dec 2005 21:43:35 +0000 (21:43 +0000)]
Some compilers don't like it when you initialize the fields in a
struct using the values of variables during the declaration of
the struct.

15 years agoFixing a bit of horrible code in Armature.c (BonesDict_repr).
Alexander Ewering [Fri, 23 Dec 2005 22:16:33 +0000 (22:16 +0000)]
Fixing a bit of horrible code in Armature.c (BonesDict_repr).
There is a lot of very dangerous (and slow) string manipulation code in
there. I do not want to appear arrogant, but a bit of basic code QA in this
module certainly can't hurt.

Please see the diff for further explanation ;-)

15 years agoCopy release/text/*.pdf into release tarball
Chris Want [Thu, 22 Dec 2005 05:58:30 +0000 (05:58 +0000)]
Copy release/text/*.pdf into release tarball

15 years agoFix typo in epydocs for Mesh example
Ken Hughes [Wed, 21 Dec 2005 18:12:28 +0000 (18:12 +0000)]
Fix typo in epydocs for Mesh example

15 years agoTinsy wee little commit!
Ton Roosendaal [Wed, 21 Dec 2005 17:24:13 +0000 (17:24 +0000)]
Tinsy wee little commit!
In non-OSX environments, the render window opened too high, due to missing
offset. (Simon can get this in windows build still, DJ?)

15 years agoThis fixes two things:
Kent Mein [Wed, 21 Dec 2005 16:18:59 +0000 (16:18 +0000)]
This fixes two things:
and loading of old corrupt blendfiles.

Makes sure bhead.len is not < 0 (hacked blendfile)
also sets buffer to 0 when fails to read correctly (wasn't set so
was causing problems)

The second thing was provided by pidhash.


15 years agoRelease code (in Blender) to 2.40
Ton Roosendaal [Tue, 20 Dec 2005 15:21:57 +0000 (15:21 +0000)]
Release code (in Blender) to 2.40

And: first bugfix as found by doing regression files; bowl.blend did not
play realtime due to depsgraph omission.

15 years ago* Teeny tiny menu item correction
Matt Ebb [Tue, 20 Dec 2005 15:17:04 +0000 (15:17 +0000)]
* Teeny tiny menu item correction

15 years agoForgot to remove obsolete button "correct normal mapping"
Ton Roosendaal [Tue, 20 Dec 2005 15:00:13 +0000 (15:00 +0000)]
Forgot to remove obsolete button "correct normal mapping"

15 years agoSmall fix in alpha for icons image.
Ton Roosendaal [Tue, 20 Dec 2005 14:54:30 +0000 (14:54 +0000)]
Small fix in alpha for icons image.

15 years agoPart 2 of commits for release, the release target name/version
Ton Roosendaal [Tue, 20 Dec 2005 14:21:18 +0000 (14:21 +0000)]
Part 2 of commits for release, the release target name/version

15 years ago* Updated the splash with credit!
Matt Ebb [Tue, 20 Dec 2005 14:18:14 +0000 (14:18 +0000)]
* Updated the splash with credit!

15 years agoBased on bugreport, fixed the confusing tooltip for Subdivide options
Ton Roosendaal [Tue, 20 Dec 2005 14:04:41 +0000 (14:04 +0000)]
Based on bugreport, fixed the confusing tooltip for Subdivide options
"Short" or "Beauty".

15 years ago* uncommented some pre-2.40 file conversion code for cameras, for the release
Matt Ebb [Tue, 20 Dec 2005 13:27:35 +0000 (13:27 +0000)]
* uncommented some pre-2.40 file conversion code for cameras, for the release

15 years agoForgot to add 'ForgetReference' for game-python objects.
Erwin Coumans [Tue, 20 Dec 2005 09:13:06 +0000 (09:13 +0000)]
Forgot to add 'ForgetReference' for game-python objects.

15 years agoAdded missing mode rayShadow and updated docs, "NoSpecular" was also missing from...
Campbell Barton [Tue, 20 Dec 2005 06:50:13 +0000 (06:50 +0000)]
Added missing mode rayShadow and updated docs, "NoSpecular" was also missing from the docs too.

15 years agoWhen adding a Mesh in python a file saved caused blender to segfault when reloading.
Campbell Barton [Mon, 19 Dec 2005 23:04:58 +0000 (23:04 +0000)]
When adding a Mesh in python a file saved caused blender to segfault when reloading.
turns out that oops->id->lib isnt initialized? anyhow
if (oops->id && oops->id->lib) // works
if (oops->id->lib) // crashes

so made the needed change in a few places.

15 years agoBug #3522
Johnny Matthews [Mon, 19 Dec 2005 19:39:24 +0000 (19:39 +0000)]
Bug #3522

Fix from Ken Hughes, just checking a few more faces looking for 'double faces' in removedoublesflag.

15 years agoBug #3633
Johnny Matthews [Mon, 19 Dec 2005 19:28:22 +0000 (19:28 +0000)]
Bug #3633

Updating Some W key shortcuts in menus

15 years agoSync of blenderbuttons for orange and bf-blender, including Joilnens new
Ton Roosendaal [Mon, 19 Dec 2005 18:41:52 +0000 (18:41 +0000)]
Sync of blenderbuttons for orange and bf-blender, including Joilnens new
'sort by extension' icon.

15 years agoBug reported by Andy; pressing Vkey in action editor (vector handles)
Ton Roosendaal [Mon, 19 Dec 2005 18:29:05 +0000 (18:29 +0000)]
Bug reported by Andy; pressing Vkey in action editor (vector handles)
crashed when there's a channel with no ipo.

15 years agoInserted a sanity check in the boolean modifier (not the Wkey, but the
Ton Roosendaal [Mon, 19 Dec 2005 17:21:55 +0000 (17:21 +0000)]
Inserted a sanity check in the boolean modifier (not the Wkey, but the
modifier buttons). Prevents crashing on input of meshes with less than 4

15 years agoScripts:
Willian Padovani Germano [Mon, 19 Dec 2005 17:21:55 +0000 (17:21 +0000)]

Final (?) updates for 2.40 :) :

- Bob Holcomb sent a better version of his 3ds importer
- Added doc info to bvh2arm: links to doc and mocap tute from author
Jean-Baptiste Perin
- Alessandro Pirovano improved the Lightwave importer.
- Mikael Lagre updated the collada scripts (fixed a bug with camera
lens value)
- Adam Saltsman improved the wings importer (ongoing work with
his pal Toastie).
- Anthony D'Agostino GPL'd his scripts (used Blender's BAL
license previously)

Thanks to all script authors for their work, interest and kindness.
Again, Tom (LetterRip) has played an important part in this, thanks and
welcome :).

15 years ago#3631
Ton Roosendaal [Mon, 19 Dec 2005 16:56:28 +0000 (16:56 +0000)]

Manipulator now centers on middle point of Bezier handle, when 2 or more
points in handle are selected.

15 years ago#3628
Ton Roosendaal [Mon, 19 Dec 2005 16:45:11 +0000 (16:45 +0000)]

Even while it's not supported, proportional mode was drawing a circle when
in EditMode armature.

15 years agoMove bug fix hack so it acts only when it needs too.
Martin Poirier [Mon, 19 Dec 2005 16:32:18 +0000 (16:32 +0000)]
Move bug fix hack so it acts only when it needs too.
It was showing "global axis" even when using MMB to access user defined orientation (with Ctrl).

15 years ago#3635
Ton Roosendaal [Mon, 19 Dec 2005 15:55:26 +0000 (15:55 +0000)]

Vpaint/weight/texture/UV modes were disabling zbuffer draw after drawing
the active object, causing objects to be drawn after (only selected ones)
to have no zbuffer on.

15 years agoBugfix #3608
Ton Roosendaal [Mon, 19 Dec 2005 14:00:32 +0000 (14:00 +0000)]
Bugfix #3608

More bump issues... Env made very nice examples, but all of it quite nasty
to solve.
Three improvements I found nevertheless:

- bug in mipmap code for bump gave errors in one derivate, causing aliasing
- when Image texture option "Clip" was used, the imagetexture function
  returned wrong value, causing the caller to create own normal based on
  color (zero!).
- Mipmapped bump now also interpolates the samples (never did this...)

15 years ago#3605
Ton Roosendaal [Mon, 19 Dec 2005 11:55:31 +0000 (11:55 +0000)]

Shift+ctrl+A "Apply deformation" didn't work anymore, since we got the
Modifier stack. I've inserted a notice there for now, to point users to
the proper buttons.

15 years ago#3598
Ton Roosendaal [Mon, 19 Dec 2005 11:30:52 +0000 (11:30 +0000)]

Uninitialized 'alpha' flag in Image texture could cause render errors.
Didn't show in OSX though... (stupid system here inits stack to zero).
But, Ken Hughes found this, so all credits are for him!

15 years ago#3593
Ton Roosendaal [Mon, 19 Dec 2005 11:01:44 +0000 (11:01 +0000)]

The user settings "auto rotate grid" or "auto scale grid" were never
implemented for new transform, apparently.

15 years ago#3581
Ton Roosendaal [Mon, 19 Dec 2005 10:49:37 +0000 (10:49 +0000)]

Using the MMB constraint chooser in Transform, accidentally printed the
setting from the orientation menu (Local, View, Normal).
Martin: not sure if this a solid fix... the print now looks fine, but the
code isn't nicer this way. :) (just a one liner change though!).

15 years ago#3592
Ton Roosendaal [Mon, 19 Dec 2005 10:31:32 +0000 (10:31 +0000)]

Normal rendering; adding gamma corrected halo could cause NaN's because
of a negative sqrt().

15 years agoUpdated for new Mathutils (should be faster)
Campbell Barton [Sun, 18 Dec 2005 21:41:50 +0000 (21:41 +0000)]
Updated for new Mathutils (should be faster)
uses Mesh rather then NMesh
uses expernal box packer
uv coords are not stretched anynore.

15 years agoSeperated out archimaps generic 2d boxpacking function.
Campbell Barton [Sun, 18 Dec 2005 21:35:31 +0000 (21:35 +0000)]
Seperated out archimaps generic 2d boxpacking function.
For anyone who is interested in boxpacking the logic isnt
that complex and lscm could benifit from using it.

Archimap will use this rather then having the boxpacker inline.

15 years agoTri-Triple Subdivide filling was messed up. This should straigten it out when cuts > 2
Johnny Matthews [Sun, 18 Dec 2005 20:50:32 +0000 (20:50 +0000)]
Tri-Triple Subdivide filling was messed up. This should straigten it out when cuts > 2

15 years agoadded ICON_SORTBYEXT for sort by ext feature
Joilnen Leite [Sun, 18 Dec 2005 20:45:03 +0000 (20:45 +0000)]
added ICON_SORTBYEXT for sort by ext feature

15 years agoadded new ICON_SORTBYEXT
Joilnen Leite [Sun, 18 Dec 2005 20:24:19 +0000 (20:24 +0000)]

15 years agoadded icon of sort by extension
Joilnen Leite [Sun, 18 Dec 2005 20:23:30 +0000 (20:23 +0000)]
added icon of sort by extension

15 years agoChanged that sortby extension icon for new made by P-Luc_Alclair
Joilnen Leite [Sun, 18 Dec 2005 20:21:57 +0000 (20:21 +0000)]
Changed that sortby extension icon for new made by P-Luc_Alclair
agreed by broken, stivs, antont, Unamed and me thanks

15 years agoapplying Volker Mische engine patch
Jean-Luc Peurière [Sun, 18 Dec 2005 19:10:26 +0000 (19:10 +0000)]
applying Volker Mische engine patch

correct bug #3594

15 years ago* Updates for missing menu items
Matt Ebb [Sun, 18 Dec 2005 18:05:14 +0000 (18:05 +0000)]
* Updates for missing menu items

15 years ago- yet another minor fluidsim fix - when using a start frame != 1
Nils Thuerey [Sun, 18 Dec 2005 16:49:50 +0000 (16:49 +0000)]
- yet another minor fluidsim fix - when using a start frame != 1
  the scene is now exported at that time, still
  numbering and reading the files from zero to noFrames

15 years ago- another small fix thats prevent a cryptic error message
Nils Thuerey [Sun, 18 Dec 2005 15:55:11 +0000 (15:55 +0000)]
- another small fix thats prevent a cryptic error message
  if the fluid is baked without proper frame start & end

15 years agoThe png image for icons itself.
Ton Roosendaal [Sun, 18 Dec 2005 13:27:47 +0000 (13:27 +0000)]
The png image for icons itself.

15 years agoAdded Verse and Node-editor icons in blenderbuttons.c
Ton Roosendaal [Sun, 18 Dec 2005 13:27:11 +0000 (13:27 +0000)]
Added Verse and Node-editor icons in blenderbuttons.c
(Both needed for later)

Found bug in interface.c for translation of Panel header, using && instead
of a logical &.

15 years ago- added render.h header include for RE_make_existing_file
Nils Thuerey [Sun, 18 Dec 2005 13:15:53 +0000 (13:15 +0000)]
- added render.h header include for RE_make_existing_file

15 years ago- moved the check whether the current object is a mesh
Nils Thuerey [Sun, 18 Dec 2005 12:19:36 +0000 (12:19 +0000)]
- moved the check whether the current object is a mesh
  up front (as in the particle panel display), this
prevents any other object type to get fluidsim attributes

15 years agofixed returning true/false, thanks Willian. as well as removed the image space spesif...
Campbell Barton [Sun, 18 Dec 2005 08:47:55 +0000 (08:47 +0000)]
fixed returning true/false, thanks Willian. as well as removed the image space spesific image changed call.

15 years agoAdded get/set/attr for area lamp settings - needed to exporting arealamps to povray.
Campbell Barton [Sun, 18 Dec 2005 07:45:45 +0000 (07:45 +0000)]
Added get/set/attr for area lamp settings - needed to exporting arealamps to povray.
areaSizeX, areaSizeY
raySamplesX, raySamplesY
epydocs updated also,

15 years agoScripts:
Willian Padovani Germano [Sun, 18 Dec 2005 01:29:15 +0000 (01:29 +0000)]

- A Vanpoucke (xand) updated Axis Orientation Copy.

- Additions:
  - Campbell Barton contributed the Archimap UV Unwrapper.
  - Mikael Lagre contributed Collada importer and exporter (ongoing
work, no support for animation yet).

Thanks to them!

15 years agoAck! Error in the renaming code for outliner, it skipped doing the
Ton Roosendaal [Sat, 17 Dec 2005 20:22:36 +0000 (20:22 +0000)]
Ack! Error in the renaming code for outliner, it skipped doing the
handling callbacks that checked for double names... this was caused by
a bugfix I did a week ago for ESC on rename button in outliner.
Discovered in time by Andy, thanks!

15 years ago* ctrl-alt-numpad0 didn't correctly update 3dview when the camera had anything parent...
Nathan Letwory [Sat, 17 Dec 2005 14:27:33 +0000 (14:27 +0000)]
* ctrl-alt-numpad0 didn't correctly update 3dview when the camera had anything parented to it.

Fix for #3596 (

15 years agoEnvironment mapping "Reload" button didn't work. Required more stuff to
Ton Roosendaal [Sat, 17 Dec 2005 13:06:22 +0000 (13:06 +0000)]
Environment mapping "Reload" button didn't work. Required more stuff to

15 years ago-- Bugfix #3617; addBezier() was not initializing all the attributes for
Ken Hughes [Sat, 17 Dec 2005 04:57:48 +0000 (04:57 +0000)]
-- Bugfix #3617; addBezier() was not initializing all the attributes for
   a the beztriple, so things like the hidden and handle select states were
   set to random values.  Added a beztriple.hide attribute so that the
   hide attribute can be set/cleared from the BPy API.

15 years agotypo, thanks letterrip.
Campbell Barton [Fri, 16 Dec 2005 22:40:20 +0000 (22:40 +0000)]
typo, thanks letterrip.

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.