Commit Graph

66005 Commits

Author SHA1 Message Date
78cbd04d12 renaming python script... 2006-01-20 02:37:00 +00:00
6aff25e014 * Got rid of the silly 'Set' button in curve edit buttons and made the DefResolU update automatically when modified. 2006-01-19 21:32:18 +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
14e1000e38 Made the minimal theme align, and buttons now sit close together.
Looks nicer.
2006-01-19 14:42:04 +00:00
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
9ea630196c Fixed up naming new objects/meshes when that name alredy existed - faster and better new names. 2006-01-18 22:57:55 +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
1d6c3f8788 This patch fixes some issues with MSVC 6
See: http://www.blender.org/forum/viewtopic.php?t=7863

I added Pose.c to BPY_python.dsp and moved some variable declarations
in OptimizedBvh.cpp so things weren't defined in the middle of code.

There is an odd global maxIterations  that seems out of place,
Erwin you may want to look at it quickly...

Kent
2006-01-18 16:22:29 +00:00
827895280f * Added a command to copy NLA strips to the Copy Attributes (Ctrl C) menus. Will be useful for updating versions of armatures, and transferring animation between them. 2006-01-18 13:44:51 +00:00
e3512ab335 assert caused compile problems too :( 2006-01-18 06:48:28 +00:00
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
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
4100794153 ==python scripts==
Updated bvh to armatures script by Jean-Baptiste Perin (thanks).
2006-01-18 02:20:48 +00:00
c4a155cf39 fixed seam tearing with edge collapsing, should be last commit ;) 2006-01-18 00:22:22 +00:00
1395d7166c Added Mesh menu access for b-brush sculpter. 2006-01-18 00:14:33 +00:00
24b5e21c65 Moved script. Minor updates to subdivision and adaptive meshes. 2006-01-17 23:50:06 +00:00
f90b7a6906 moving to bpydata because it cant be accessed from the menus 2006-01-17 23:47:45 +00:00
9f47286673 Changed the URL to be the Image filename sans path, not the image name.
Sped up intentation writing a bit..
Many more changes need to be applied here...
2006-01-17 22:13:25 +00:00
3ebf0c9600 ==python scripts==
slight updates and cleanups to vrml97 and x3d exporter,  the ability to do gzip compression has been added.  The redundant vrml exporter has been removed.  Thanks Bart
2006-01-17 21:04:12 +00:00
d40162bc1a Fixed crash in pupmenu for image icons
* Scaled down image can be smaller than icon - bad memory access
* Also needed to copy float buffer for exr images
* rectcpy only copied first row

There probably is some unnessary copying, will check with a little more time.
For now better be safe since it's no huge amount of mem that is copied.
2006-01-17 17:23:44 +00:00
cf5570c45b ==python api==
epyDoc for insertShapeKey
2006-01-17 16:32:09 +00:00
c34dd4d5f2 ==python api==
tex2uvbaker and hotkeys update by jms
2006-01-17 11:34:33 +00:00
5494927714 Speed up for edge list's
Remove doubles on mouseup to minimizie editMode cycling.
2006-01-17 11:05:45 +00:00
9b2640aa93 Added edge collapsing when adaptive geometry enabled. 2006-01-17 09:58:24 +00:00
75aa68e821 ==python api==
clarification of Blender.Mesh.Mode() tip
2006-01-17 09:20:37 +00:00
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
0ea84e4a07 Fixed a problem with non mesh objects
Stopped seams from tearing away with xclip enabled.
2006-01-17 06:14:52 +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
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
4734a2db7e ==python scripts==
updated version of bevel center by Loic Berthe
2006-01-16 21:42:53 +00:00
2c9a4eb6ef Fix for useing with modifiers, dosent check for subsurf flag when copying vgroups.
Leaves all new objects selected.
Faster and cleaner operation- naming etc.
2006-01-16 21:28:09 +00:00
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
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
c5819fe03f * added missing file
- for some reason mesh_data types file was not in project
2006-01-16 16:37:00 +00:00
7d536502f8 *fixes global redefinitions
- added some extern keywords
2006-01-16 16:34:08 +00:00
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
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
9cbf04ca9a Added user interface to OBJ import.
With options.
	('Material (*.mtl)', IMPORT_MTL, 'Imports material settings and images from the obj\'s .mtl file'),\
	('All *.obj\'s in dir', IMPORT_DIR, 'Import all obj files in this dir (avoid overlapping data with "Create scene")'),\
	('Create scene', IMPORT_NEW_SCENE, 'Imports each obj into its own scene, named from the file'),\
	'Geometry...',\
	('Edges', IMPORT_EDGES, 'Import faces with 2 verts as in edge'),\
	('Smooths all faces', IMPORT_SMOOTH_ALL, 'Smooth all faces even if they are not in a smoothing group'),\
2006-01-16 06:33:55 +00:00
cc183db483 Hopefully clear up the last of the obj import bugs.
* 8% speedup by using list comprehension.
* Slightly better smoothing group import.
* Handles bug in python that puts spaces before every line with '\r\n' line endings.
2006-01-16 05:28:34 +00:00
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
9137d364df ==python scripts==
slight bug fix update to ply importer by Bruce Merry
2006-01-15 20:05:28 +00:00
afb0f2ff24 In fixing for negative indicies I broke positive indicies. Fixed. not helped by the fact the files I had for testing were 32 and 70 meg..
ALso modified the MTL loader for Object.Get's new ValueError.
- Should be good for release now.
2006-01-15 17:56:40 +00:00
Ken Hughes
4f916b3081 Removed printfs in setPoints(), add proper exception handling. 2006-01-15 17:14:58 +00:00
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
c5fd40f0bf Mesh sculpting event handeler script,
see http://www.elysiun.com/forum/viewtopic.php?t=56101 for details,
2006-01-15 14:44:09 +00:00
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