Commit Graph

4947 Commits

Author SHA1 Message Date
Campbell Barton
39e1043cfe a touch neater and some comments. 2006-01-25 06:28:47 +00:00
Campbell Barton
d35be5c578 Dont draw blocks what are outside the the view. - massive speedup with complex sequence's 2006-01-25 05:14:03 +00:00
Ken Hughes
dc103bceab ==bugfix==
Access to G.vd without an active 3D window from sequences during Alt-A
playback caused segfault; check and return if it's NULL, and print an error
to stderr.  (Someone should check why viewmove() is being called).
2006-01-25 02:18:20 +00:00
Chris Want
164a7929ce Not a show stopper, and does not add or remove any functionality
... but a pythoner forgot to do a cast, causing an error with an
anally retentive compiler.
2006-01-24 17:23:01 +00:00
Ton Roosendaal
58db0210a8 Bug in commit for 'linked scene sets', that got sneaked in after 2.40. :)
This fixes shaded mode in lostride demo file, also for scenes that use
sets in shaded drawmode, lighting now will look ok.
2006-01-23 21:13:48 +00:00
Mika Saari
f9bb1b534e The character table shouldn't messed anymore when <builtin> font is used. 2006-01-23 15:14:01 +00:00
Mika Saari
913c0bc0c7 Fixing the user interface bug when unicode font area list is exited
without selecting any area. This caused the area to be from 0 to 0.
Now if no any area selected, the whole area from 0 to 0xffff is shown.
2006-01-23 12:52:53 +00:00
Matt Ebb
651650ae01 2.41 splash 2006-01-22 23:00:55 +00:00
Ton Roosendaal
6293e3e5aa And the 2nd commit for release codes.
Still todo: splash!
2006-01-22 22:48:07 +00:00
Chris Want
788b4528e0 The decimate modifier had a slider to control the level of mesh
reduction that was labeled "Percent" but was on a scale from
0.0 to 1.0. The word percent implies a scale for 0 to 100, so
I've relabeled this slider as "Ratio".
2006-01-22 03:27:45 +00:00
Ken Hughes
6e1db67cc0 ===Python API===
Bugfix: Hos discovered that recent fixes broke mesh.verts.extend(); it now
accepts three floats again.  Sorry....
2006-01-21 06:21:03 +00:00
Ken Hughes
0fcfd5bd40 ===Python API===
Bugfix #3660:  NMesh.getVertexInfluences() was broken following the changes
to the armature system.  Tron Thomas (kudos) came up with a fix that seems
to perform identically to the old method.  I'm also adding it to the Mesh
module for compatibility.
2006-01-19 15:48:56 +00:00
Campbell Barton
14e1000e38 Made the minimal theme align, and buttons now sit close together.
Looks nicer.
2006-01-19 14:42:04 +00:00
Campbell Barton
4a32e0380b Bugfix for http://projects.blender.org/tracker/?func=detail&atid=125&aid=3767&group_id=9
View All/View Selected - only took into account values from 1 axis. - Workaround because test_view2d needs to act that way for other functions.
Easy one :) Right mouse mutton cancels transform. - Must move to Theeth's new code one day.
2006-01-19 01:15:17 +00:00
Ken Hughes
407fcf1e8c ==renderer==
Patch #3760: Allows a python script to call renderer when the UI is not
active (thanks to Cory King for patch).  Without the patch, blender will
segfault since G.vd is NULL.
2006-01-18 20:06:13 +00:00
Erwin Coumans
e3512ab335 assert caused compile problems too :( 2006-01-18 06:48:28 +00:00
Erwin Coumans
5b8b745cba fixed an ordering issue caused by previous commit 2006-01-18 06:46:56 +00:00
Ken Hughes
a8cb639f0b ==Python API==
Bugfix #3761: Attempting to set mesh.faceUV=1 when a mesh has no faces
now throws a RuntimeError exception.  Previous behavior was to do nothing.
2006-01-18 06:15:17 +00:00
Erwin Coumans
85c58bfa8a attempt to fix reported problems with glsl shader on OS X (and other platforms). instead of continuous printing errors, it should just print once, and delete the shaders.
also, disabled the asynchronous logicbrick update, it reportedly causes jitter.
2006-01-18 06:04:11 +00:00
Tom Musgrove
cf5570c45b ==python api==
epyDoc for insertShapeKey
2006-01-17 16:32:09 +00:00
Tom Musgrove
75aa68e821 ==python api==
clarification of Blender.Mesh.Mode() tip
2006-01-17 09:20:37 +00:00
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
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
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