Commit Graph

5619 Commits

Author SHA1 Message Date
Erwin Coumans
9119b6e8a5 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',
'Bullet/CollisionShapes/ConvexTriangleCallback.cpp',
'Bullet/CollisionShapes/EmptyShape.cpp',
'Bullet/CollisionShapes/OptimizedBvh.cpp',
'Bullet/CollisionShapes/TriangleCallback.cpp',
'Bullet/CollisionShapes/TriangleIndexVertexArray.cpp',
'Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp'.
Sorry, no armatures fix yet.
2005-12-31 07:20:08 +00:00
Campbell Barton
625c553e20 Added a python hook to Joining objects
Object.Join()

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
2005-12-30 14:17:15 +00:00
Campbell Barton
73dc1ff4af Ooops 2 tipos in the epydocs... 2005-12-30 11:56:44 +00:00
Campbell Barton
f310f296b2 Added the function Duplicate to the object module.
Object.Duplicate(linked=1)

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
2005-12-30 11:54:53 +00:00
Campbell Barton
0565d86952 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.
Cam
2005-12-30 09:56:02 +00:00
Joseph Gilbert
8bc7d0bdf0 *crash fix
- previous fix crashes win32 and creates an unreachable code block
2005-12-29 19:27:52 +00:00
Campbell Barton
ccf117376d 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. 2005-12-29 12:06:42 +00:00
Campbell Barton
b73748bdd0 Just added some comments about face material incides and the material list. 2005-12-29 11:08:55 +00:00
Campbell Barton
69746f3b83 Added some details to the Object documentation, some parts were a big vague.. 2005-12-29 10:33:00 +00:00
Ton Roosendaal
6e4146f1e6 New icon image 2005-12-28 16:02:52 +00:00
Hans Lambermont
f0e7d21793 - include path and file changes for FreeBSD 2005-12-27 20:37:15 +00:00
Yann Vernier
a61871360f 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.
2005-12-27 15:28:09 +00:00
Chris Want
b39465b7fb 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.
2005-12-26 21:43:35 +00:00
Alexander Ewering
6f10660f0c 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 ;-)
2005-12-23 22:16:33 +00:00
Chris Want
e8f7ff2ffb Copy release/text/*.pdf into release tarball 2005-12-22 05:58:30 +00:00
Ken Hughes
ea16c447c3 Fix typo in epydocs for Mesh example 2005-12-21 18:12:28 +00:00
Ton Roosendaal
8349f1bc08 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?)
2005-12-21 17:24:13 +00:00
Kent Mein
441fe09832 This fixes two things:
http://www.blender.org/forum/viewtopic.php?t=7646
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.

Kent
2005-12-21 16:18:59 +00:00
Ton Roosendaal
0802a953d1 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.
2005-12-20 15:21:57 +00:00
Matt Ebb
5c51e131d2 * Teeny tiny menu item correction 2005-12-20 15:17:04 +00:00
Ton Roosendaal
e742c61f13 Forgot to remove obsolete button "correct normal mapping" 2005-12-20 15:00:13 +00:00
Ton Roosendaal
b9de4fd0ea Small fix in alpha for icons image. 2005-12-20 14:54:30 +00:00
Ton Roosendaal
a0d71f9534 Part 2 of commits for release, the release target name/version 2005-12-20 14:21:18 +00:00
Matt Ebb
057c803121 * Updated the splash with credit! 2005-12-20 14:18:14 +00:00
Ton Roosendaal
8b458c0b68 Based on bugreport, fixed the confusing tooltip for Subdivide options
"Short" or "Beauty".
2005-12-20 14:04:41 +00:00
Matt Ebb
c6f80f9a65 * uncommented some pre-2.40 file conversion code for cameras, for the release 2005-12-20 13:27:35 +00:00
Erwin Coumans
d59531226f Forgot to add 'ForgetReference' for game-python objects. 2005-12-20 09:13:06 +00:00
Campbell Barton
73fa63751f Added missing mode rayShadow and updated docs, "NoSpecular" was also missing from the docs too. 2005-12-20 06:50:13 +00:00
Campbell Barton
bbb00043cd 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
where
if (oops->id->lib) // crashes

so made the needed change in a few places.
2005-12-19 23:04:58 +00:00
Johnny Matthews
b05433a095 Bug #3522
Fix from Ken Hughes, just checking a few more faces looking for 'double faces' in removedoublesflag.
2005-12-19 19:39:24 +00:00
Johnny Matthews
67ad2b88e7 Bug #3633
Updating Some W key shortcuts in menus
2005-12-19 19:28:22 +00:00
Ton Roosendaal
c1a2851c0d Sync of blenderbuttons for orange and bf-blender, including Joilnens new
'sort by extension' icon.
2005-12-19 18:41:52 +00:00
Ton Roosendaal
d1ac57ac20 Bug reported by Andy; pressing Vkey in action editor (vector handles)
crashed when there's a channel with no ipo.
2005-12-19 18:29:05 +00:00
Ton Roosendaal
b4d7f5c581 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
faces.
2005-12-19 17:21:55 +00:00
Willian Padovani Germano
ad579abf00 Scripts:
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 :).
2005-12-19 17:21:55 +00:00
Ton Roosendaal
f9b2a189fa #3631
Manipulator now centers on middle point of Bezier handle, when 2 or more
points in handle are selected.
2005-12-19 16:56:28 +00:00
Ton Roosendaal
2d6e7d58d0 #3628
Even while it's not supported, proportional mode was drawing a circle when
in EditMode armature.
2005-12-19 16:45:11 +00:00
Martin Poirier
a96bf9283a 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).
2005-12-19 16:32:18 +00:00
Ton Roosendaal
bcd8e4aad8 #3635
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.
2005-12-19 15:55:26 +00:00
Ton Roosendaal
92e1e16429 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...)
2005-12-19 14:00:32 +00:00
Ton Roosendaal
74374bcaf9 #3605
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.
2005-12-19 11:55:31 +00:00
Ton Roosendaal
60b22c1e71 #3598
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!
2005-12-19 11:30:52 +00:00
Ton Roosendaal
0a64b3e7c4 #3593
The user settings "auto rotate grid" or "auto scale grid" were never
implemented for new transform, apparently.
2005-12-19 11:01:44 +00:00
Ton Roosendaal
5884082ef6 #3581
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!).
2005-12-19 10:49:37 +00:00
Ton Roosendaal
d48c9c416d #3592
Normal rendering; adding gamma corrected halo could cause NaN's because
of a negative sqrt().
2005-12-19 10:31:32 +00:00
Campbell Barton
4a027d8124 Updated for new Mathutils (should be faster)
uses Mesh rather then NMesh
uses expernal box packer
uv coords are not stretched anynore.
2005-12-18 21:41:50 +00:00
Campbell Barton
c9de5c5b05 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.
2005-12-18 21:35:31 +00:00
Johnny Matthews
fe74c08510 Tri-Triple Subdivide filling was messed up. This should straigten it out when cuts > 2 2005-12-18 20:50:32 +00:00
Joilnen Leite
9b34c429c7 added ICON_SORTBYEXT for sort by ext feature
.
2005-12-18 20:45:03 +00:00
Joilnen Leite
41fbd282d9 added new ICON_SORTBYEXT
.
2005-12-18 20:24:19 +00:00