Commit Graph

5526 Commits

Author SHA1 Message Date
Ton Roosendaal
e51f752e75 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.
2005-12-13 08:44:07 +00:00
Campbell Barton
fadaa2fbe9 From kh_pylon:
You have to put Py_RETURN_NONE; inside { }; it's a two-line macro
Aparently breaks MacOS.
2005-12-13 00:27:10 +00:00
Campbell Barton
d73e312f88 Added Image.GetCurrent()
Previously the only way to get the current image was flaky and relyd on the image being assigned to a mesh.

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

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

epydocs:
  Get the currently displayed Image from Blenders UV/Image window.
  When multiple images are displayed, the last active UV/Image windows image is used.
2005-12-13 00:00:11 +00:00
Ken Hughes
b72dc4585f -- 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.
2005-12-12 23:03:32 +00:00
Ton Roosendaal
556451345b Bugfix #3583
Auto-IK confused a routine that checked for IK on bones... causing
drawing errors in buttons and 3d window.
2005-12-12 22:27:30 +00:00
Ton Roosendaal
ba237f5170 Bugfix #3565
Enabling FluidSim on non-mesh object crashed... it uses DerivedMesh. :)
2005-12-12 22:04:34 +00:00
Ton Roosendaal
f27350174a 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.
2005-12-12 21:56:32 +00:00
Ton Roosendaal
bf412134d4 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. :)
2005-12-12 21:16:24 +00:00
Joseph Gilbert
540e5bb77d *Armature api documentation 2005-12-12 20:12:50 +00:00
Ton Roosendaal
ebfe09a223 Bugfix #3544
First two vertices of a hair strand were not transformed OK, causing weird
results with especially thicker hair, or very short ones.
2005-12-12 19:06:34 +00:00
Joseph Gilbert
9ae9527c51 - 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.
2005-12-12 18:46:26 +00:00
Stephen Swaney
d32b100464 bugfix: #3420 Indent/Unindent in text editor not undoable
contributed by Mr. TextEditor - themyers.  Thanks!
2005-12-12 18:35:15 +00:00
Joilnen Leite
c452e8672c Rewrote TimeLine_getFramesMarked func with better coding
.
2005-12-12 11:57:58 +00:00
Alexander Ewering
6c3e8ac2e1 Fix confusing (too early) waitcursor when selecting rand fac for fractal
subdivide.
2005-12-12 03:02:29 +00:00
Ton Roosendaal
e58eecbea5 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... :)
2005-12-11 22:03:04 +00:00
Campbell Barton
e0d20e00ce Added some details in the Mathutils documentation. 2005-12-11 04:20:37 +00:00
Ken Hughes
76e7905736 -- 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.
2005-12-10 19:36:05 +00:00
Ken Hughes
080eb9b3fa -- Bugfix #3564: Texture.getImage() always returned None for Env maps, even if
an image was assigned.
2005-12-09 23:19:00 +00:00
Ton Roosendaal
ccb285006c Bugfix #3526
Division with zero caused wrong pixels to be rendered with Ortho camera.
2005-12-09 17:22:50 +00:00
Joilnen Leite
7b2f1d4776 change return of getMarked method for dict {framnum:['nameframe']}
.
2005-12-09 15:00:54 +00:00
Johnny Matthews
e4c375ef0b bugfix #3550
Fixing Loopcut smooth to actually cut smooth

I think this will go to HEAD now...
2005-12-09 14:49:41 +00:00
Ken Hughes
1e589f59d0 -- Bugfix #3520: Text with extrusion and/or bevelling would would disappear
when edit mode was entered.
2005-12-09 14:30:51 +00:00
Ken Hughes
cf42e62ebb -- 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.
2005-12-09 13:57:27 +00:00
Ken Hughes
e67360cb97 Made Mesh verts/edges/faces hashable (as they were in NMesh); this will
make it easier for some scripts to be converted.
2005-12-07 21:12:33 +00:00
Ton Roosendaal
2f0ae40979 Bugfix from own collection: Rename option in Outliner didn't handle an ESC
correctly. Button wasn't closed then.
2005-12-07 19:59:26 +00:00
Ken Hughes
b02ff5f2a2 -- 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.)
2005-12-07 05:44:29 +00:00
Ken Hughes
b558edd629 Fix memory leak; if Blender quits while in text edit mode, free textbuf
inside of free_editText().
2005-12-07 05:41:58 +00:00
Kent Mein
4cf83c2c14 Fix for bug #3529
Provided by Jorge Bernal (lordloki)

Function was returning a wrong value in a switch statement.

Kent
2005-12-06 18:52:55 +00:00
Ken Hughes
39ca3e3fa4 -- Bugfix #3548: material.setMode() was doing incorrect range check on
inputs, returned error setting RAYMIRROR or RAYTRANSP modes.
2005-12-06 17:08:09 +00:00
Ken Hughes
1aebee2f9e More corrections and additions to Ipo and IpoCurve documentation. 2005-12-06 06:16:10 +00:00
Ken Hughes
569f9de63c Added some extra parameter checking in Ipo driver code. 2005-12-06 05:42:23 +00:00
Campbell Barton
e61ebefd90 Added GPL licence header. possibly some other new stuff, not sure how old the CVS console script was. 2005-12-06 04:30:23 +00:00
Campbell Barton
9497b6dfb6 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.
2005-12-06 03:53:35 +00:00
Ken Hughes
2d19c4f208 -- Bugfix 3543: call to test_index_face() in decimateModifier_applyModifier()
was passing pointer to the wrong face, which led to eekadoodle later in
   EditMode.
2005-12-06 00:02:55 +00:00
Kent Mein
34049def4e 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.

Kent
2005-12-05 21:32:55 +00:00
Ken Hughes
1a2ac4e64d -- Bugfix #3072: As discussed on IRC, matrix.invert() should throw a
ValueError exception if matrix is singular.
2005-12-05 19:57:23 +00:00
Ken Hughes
e209676d3d -- 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().
2005-12-05 19:02:30 +00:00
Ton Roosendaal
f98a5a8036 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.
2005-12-05 13:44:22 +00:00
Ton Roosendaal
cd014fd556 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.
2005-12-05 13:22:16 +00:00
Ton Roosendaal
a2d66cbff8 Hrms... setting the undosteps to zero then should also work! :) 2005-12-05 11:52:30 +00:00
Ton Roosendaal
4fb1bcaa15 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.
2005-12-05 11:46:40 +00:00
Ken Hughes
bf05bbef86 Fix unchecked parameter in M_Ipo_Recalc, and some documentation fixes. 2005-12-05 05:23:35 +00:00
Ken Hughes
00ce7c629f -- remove unused variable "dict" which was giving compiler warnings. 2005-12-05 01:07:24 +00:00
Jens Ole Wund
bc16c3bd7a 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
2005-12-04 22:44:19 +00:00
Ken Hughes
beb80aa609 -- Fix segfault when callign Blender.Armature.Get() with no parameters 2005-12-04 20:39:56 +00:00
Ton Roosendaal
409f60d605 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?)
2005-12-04 17:18:58 +00:00
Nils Thuerey
e49998807c - 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)
2005-12-03 17:45:35 +00:00
Chris Burt
5b9e85f0a2 Just one more useful commit from Desoto: added a newline to the end
of the file. Hold the applause please.
2005-12-03 00:52:51 +00:00
Kent Mein
4739837377 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 ;)

Kent
2005-12-02 21:46:52 +00:00
Ken Hughes
9588cfdffe Small changes to API docs on curves and space handlers explanations. 2005-12-02 21:25:30 +00:00