Commit Graph

4915 Commits

Author SHA1 Message Date
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
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
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
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
Joseph Gilbert
5f0232f68f *pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices
2006-01-11 19:40:06 +00:00
Hans Lambermont
f4de95a5f6 At least FreeBSD needs to know where to find gl.h 2006-01-11 19:31:15 +00:00
Ken Hughes
0ee5c131dc A few Mesh fixes:
* edge and face extend() methods now add edges and faces in the order given
  by their parameters.  Note that if duplicate edges or faces are specified,
  the order is preserved but the dups are removed, so indices won't match.
* allow extend(), findEdges() and faces.uv to accept lists or tuples
* fix bug in mesh.verts.extend() which didn't correctly check argument types
2006-01-11 18:37:47 +00:00
Campbell Barton
74ed402490 Exclude labels from grouping. - Clever numbuts look nicer with rounded theme. 2006-01-11 16:55:31 +00:00
Erwin Coumans
fbc977e48c attempt to avoid nameclashes (although it is already in a namespace) -> extension names renamed from glXXX to blXXX. 2006-01-11 13:31:45 +00:00
Campbell Barton
c012b94ca4 Fixed bug in do_clever_numbuts not displaying tooltips.
Comment:
	Clear all events so tooltips work, this is not ideal and
	only needed because calls from the menu still have some events
	left over when do_clever_numbuts is called.
	Calls from keyshortcuts do not have this problem.
2006-01-11 04:03:19 +00:00
Brecht Van Lommel
b3eef4f9f1 MSVC compile error fix for subsurf UV. 2006-01-10 12:25:07 +00:00
Brecht Van Lommel
dd7e0b6bfe Apply Subsurf to UV's.
This fixes most of the UV distortion issues with subsurf. Near seams
however there might still be some distortion, but this should at least
not be worse than before. Subsurf UV is enabled by default on new meshes,
and can be enabled in the modifier panel for existing ones.

Before and after:
http://users.pandora.be/blendix/notsmooth.png
http://users.pandora.be/blendix/smooth.png
2006-01-10 11:36:57 +00:00
Erwin Coumans
b7be6620d6 applied patch from snailrose, related to multi-platform OpenGL extensions. 2006-01-10 06:34:42 +00:00
Campbell Barton
30633421d2 Fixed bug in convert function with Mesh objects.
Objects with no modifier could still be converted, but resulting meshes were corrupt and segfaulted Blender when cycling edit mode.
This tests each mesh object for modifiers before converting.

Resulting metaballs meshes were not visible in wireframe.

Also made the selection context nicer, All new converted objects are selected while objects that are converted are deselected.
2006-01-10 02:01:24 +00:00
Kent Mein
7e94fd8254 added prototypes for bottom_sel_action and friends.
Steath Apprentice said its needed for MSC.  Bug # 3687

Kent
2006-01-10 01:36:36 +00:00
Campbell Barton
7ee9caf523 There was a problem with typing over text selections, where you had an object with 21 letter name (19 is the max but 21 is supported, just copy a mesh a few times)
After this click on the object name and start typing, even though the selection makes it that the new string would be overwritten, it dosent let you type in any text.

from
if(len <= but->max) {
to...
if(len-SELWIDTH+1 <= but->max) {

- Tested and works well.
2006-01-09 15:24:23 +00:00
Campbell Barton
beba2cf172 Made buttons in clever numbuts allign.
Commented out crufty name spesific actions that changed variables and added a label of buttons started with "Rot" - Since panels are used for rotating now.
2006-01-09 05:01:17 +00:00
Kent Mein
17598faca1 Another small gameengine build tweak. Included a missing header directory.
I also provided a fix for tiff images.  (It was appending tif even if
it was already in the name, now it does it correctly)
(no more image.tif.tif)

Kent
2006-01-09 02:23:04 +00:00
Martin Poirier
2ead92cc2b BPy:
PupBlock method. This wraps the "clevernumbut" code to allow scripters to use popup blocks for user input instead of a sequence of multiple different popups.
See the blend file for a comprehensive test and example file.
2006-01-08 18:59:55 +00:00
Erwin Coumans
c94455c14d more linux game engine work. hopefully works now! 2006-01-08 09:37:15 +00:00
Erwin Coumans
88a8508b34 Got the armatures, GLSL shaders and other snailrose changes to work for Linux.
now attempting to get this in cvs :)
2006-01-08 09:11:17 +00:00
Erwin Coumans
9f429be173 removed testing code 2006-01-07 02:00:44 +00:00
Erwin Coumans
bed24bc299 more work to get armatures/blender materials to work under non-windows platforms 2006-01-07 00:14:37 +00:00