Commit Graph

53000 Commits

Author SHA1 Message Date
Tom Musgrove
427b132ad0 ==python api==
patch from jean-michel soler (jms) - .insertShapeKey()

Python API, a function to insert a shape key in an object . It works on Mesh, Lattice curve ans surface .
Example of use :

import Blender
OBJECT=Blender.Object.GetSelected()[0]
OBJECT.insertShapeKey()

a docstring to follow soon
2006-01-17 06:47:48 +00:00
Ken Hughes
aeffb121c8 ==Python API==
Added Mesh.Modes() function, which allows scripts to get/set the selection
mode settings for meshes.  This was necessary in order for the mesh tools
such as triangulate, remove doubles, etc., to work properly.
2006-01-17 06:18:43 +00:00
Ken Hughes
cfdf71bc5c Patches submitted by Michael Reimpell to get/set relative key selection, and
to get the current value of the IPO shape key.  There are still some issues
to discuss as to whether methods/attributes should be used and what they
should be named, but this will (or should) be addressed in the upcoming API
rewrite.
2006-01-17 06:12:53 +00:00
Jean-Luc Peurière
77c4eef90b after much suffering, got GE build and work almost cleanly on Os X
(with make, need to confirm with scons)

after cleaning the changes are in fact minimal, but the situation
is still quite a bit hackish.

Game engine coders, there is also quite a number of warnings that
need to be fixed.

current situation is that everything seems to work, but GLSL shaders
spew a lot of errors on console and blender may crash on exit when
a GLSL shader was used. ARB stuff works fine.
2006-01-16 22:27:30 +00:00
Matt Ebb
eb839608be * commented the version number check for empty display types so they are properly read on current files. This can be uncommented before this is released (a la camera stuff last time) 2006-01-16 20:11:40 +00:00
Erwin Coumans
56489f4830 fixed a runtime problem with stl container usage, as reported on bf-committers mailing list 2006-01-16 19:34:52 +00:00
Stephen Swaney
14cc1192a3 clean up some warnings in bpy code 2006-01-16 17:55:03 +00:00
Joseph Gilbert
7d536502f8 *fixes global redefinitions
- added some extern keywords
2006-01-16 16:34:08 +00:00
Campbell Barton
9fbf699eac Alligned bone pose copy buttons (noticed in orange screenshot)
Also found that Proportional edit button starts allign but dosent end align. Didnt chgange incase this is intended??
Take a look header_view3d.c:4390
2006-01-16 11:57:04 +00:00
Matt Ebb
3c40b2ac25 * Tiny tweak to button alignment after Campbell's commit.
Campbell, most of the changes you made seem ok, but you do have to be careful since it's not just about looking good, it's also about grouping things meaningfully. We did some thoughts on more concrete guidelines for this here: http://mediawiki.blender.org/index.php/BlenderDev/UIAlignRulesGuides
2006-01-16 11:27:50 +00:00
Willian Padovani Germano
bb9cadbb77 BPython:
- minor: added missing theme options (bone_solid, bone_pose, strip,
strip_select) to Blender.Window.Theme and also updated accordingly
(version info) the script that saves themes as scripts and the module's
doc.
2006-01-16 03:51:32 +00:00
Ken Hughes
df3fd052dd Fixed Window.Editmode(0) so that it only calls undo_push_mesh() when
U.undosteps is nonzero.  Also added optional parameter to avoid pushing
undo info alltogether if desired.
2006-01-16 02:06:02 +00:00
Ken Hughes
4f916b3081 Removed printfs in setPoints(), add proper exception handling. 2006-01-15 17:14:58 +00:00
Campbell Barton
56de05c497 last of the cosmetic fixes with aligning buttons in the path setting/info win prefs area. 2006-01-15 14:47:16 +00:00
Campbell Barton
93904a476e Aligned all remaining non-aligned header buttons, (was looking yuck with rounded theme, hope this doesn't mess you up Broken)
Aligned filesel buttons|text entry- looked arse also.
Added tooltips for filesel text entry- "Type in dir to create" and "+/- increment" or somthing like that.
- Cam
2006-01-15 13:30:56 +00:00
Erwin Coumans
6f3e593105 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,
2006-01-15 11:34:55 +00:00
Ken Hughes
e35f73cd00 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.
2006-01-14 22:05:16 +00:00
Martin Poirier
8d05e14b0f 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.
2006-01-14 20:52:39 +00:00
Stephen Swaney
148134205f fix previously fixed error msg. 2006-01-14 19:05:33 +00:00
Stephen Swaney
adcef46599 Object.Get( name ) was throwing an AttributeError.
Change to throw more correct ValueError when name
is not found as per IRC discussion
2006-01-14 02:13:15 +00:00
Ken Hughes
c18db96f56 Cam Barton discovered the setter for me.faces[i].col was missing. 2006-01-13 17:22:53 +00:00
Joseph Gilbert
144e3f827d * [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error: PyPose_FromPose: Internal Error Ocurred"
- added returns where appropriate.
2006-01-13 16:19:11 +00:00
Joseph Gilbert
1a4c31442f *head/tail addition
- forgot to add the ability to get pose head/tail positions
- no setters (yet) as they are calculated
2006-01-13 15:53:22 +00:00
Matt Ebb
2af2c2c700 Orange: Display types and variable size for Empties.
This is using instructions from Ton, so hopefully the implementation is ok.
This is really needed here where we are using all sorts of wacky scales, and
empties look too big or too small. Of course we don't want to scale the
empties because there are often things parented to them.

New options are in edit buttons for empties to control the display style
and the size. New styles are easy to add, too. Just needs useful ideas and
minor effort from anyone who wants to.

Support for copying these values has also been added to the Copy Attributes
->Drawtype menu command.
2006-01-13 15:50:32 +00:00
Joseph Gilbert
2aa6d4fc11 *bone.children fix
- fixes bone.children to return direct bone children
- added bone.getAllChildren() to allow previous behavior
2006-01-13 15:27:23 +00:00
Ton Roosendaal
9d889a94b7 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.
2006-01-13 12:14:13 +00:00
Ken Hughes
5951b4dda7 Another bug fix for reference counting in extend methods. 2006-01-13 07:11:30 +00:00
Brecht Van Lommel
bb1ce1c3ec Subsurf UV crasher fix - thanks Malefico and Matthew for test files. 2006-01-13 06:56:32 +00:00
Erwin Coumans
7e8d848eb1 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. 2006-01-13 01:00:35 +00:00
Stephen Swaney
dea1ac52b4 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.
2006-01-12 21:21:41 +00:00
Chris Want
cc2a332907 Optimization -frerun-cse-after-loop (included with -O2) was
causing render to crash on cygwin with gcc 3.4.4. Changed
declaration of shadepixel() argument "int facenr" to volatile.
Can anybody recommend a more elegant solution?
2006-01-12 18:34:07 +00:00
Ton Roosendaal
715794859a Orange:
- cleanup of color curves code; goes at least twice faster now!
  (includes black/white point stuff)
- When using 'Curves' in image window on a byte rect, it creates a (temp)
  float rect to operate on. So curves work for regular pictures too now.
2006-01-12 15:46:29 +00:00
Kent Mein
402518c66c convert IMB_rectop to IMB_rectcpy since IMB_rectop has been retired in
orange.

Kent
2006-01-12 15:36:02 +00:00
Kent Mein
8cdf8096b8 Ken's 64bit patches weren't merged over to orange for some reason.
This fixes that.

I'm going to see if there are other things that weren't merged over
as well.

Kent
2006-01-12 15:27:20 +00:00
Campbell Barton
02cdb8a745 Fixed a segfault in zooming out on long wave files- 6min+
Was using shorts which couldent code with viewing many samples at once.
2006-01-12 13:34:55 +00:00
Ken Hughes
6ded7d67d1 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.
2006-01-12 07:51:19 +00:00
Erwin Coumans
631979f909 renamed some variables to make the timing in the game engine less confusing+minor improvements in this area.
enabled game engine for scons
2006-01-12 06:30:01 +00:00
Erwin Coumans
a9e64286a9 overlooked IMB_imbuf.h was already included inside an extern "C" section. 2006-01-12 01:37:33 +00:00
Erwin Coumans
b9d99662d2 uncommented include "IMB_imbuf.h", it is needed? 2006-01-12 01:15:09 +00:00
Martin Poirier
150d36e4da 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.
2006-01-12 01:11:42 +00:00
Erwin Coumans
0132ac9b8b re-enable game engine by default, for 2.41 preparation 2006-01-12 00:57:28 +00:00
Martin Poirier
81f42b491a Scons fix:
new BPy Pose files weren't added to Sconscript
2006-01-12 00:07:08 +00:00
Ton Roosendaal
d4f48f43ef Orange: Ortho camera now gives correct z values for buffers too. 2006-01-11 23:15:48 +00:00
Ton Roosendaal
0665f0d647 Orange;
Until now, the zbuffer was written straight from the internal zbuffer,
which has values that are inverse-proportional (like 1.0/z) which makes
it very hard to use it for postprocess, like zblur or other composit effects
that require Z.

Based on info from ILM, the values stored for Z in exr files is the
actual distance from a camera. I think that's about time to migrate to that
convention!

By default now, after render, the z values are converted to floats. This
saves in exr files now, but not in the Iris Z files. That latter was a
blender-only anyway, so might be not a real hassle to drop. :)

You can see the difference in the image window, but notice the range now
is linear mapped from camera clipstart to clipend.

Note; I just discover that ortho Z values need a different correction...
2006-01-11 22:36:31 +00:00
Kent Mein
468dd24cd5 remove Constraint.h since it doesn't exist.
Provided by Letterrip.

Kent
2006-01-11 21:58:37 +00:00
Hans Lambermont
ce4dcda91a - override the temporary disabling of KETSJI and OPENAL for FreeBSD. 2006-01-11 21:11:07 +00:00
Joseph Gilbert
f41c1f1c73 Forgot the pose file.... :p 2006-01-11 20:48:46 +00:00
Joseph Gilbert
31518a374b *pose docs
- some pose python documentation
2006-01-11 20:44:24 +00:00
Hans Lambermont
21733dccc9 - sanitize spacings and tabs a bit. It's still not completely clean though. 2006-01-11 20:25:04 +00:00
Joseph Gilbert
6544ed3b64 Probably need these.... 2006-01-11 19:41:01 +00:00