Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
db88e4c94a Bugfix #4935
July 10 commit accidentally included a testing line for a selection debug
session in IRC... that line saved a /tmp/rt.png file on each border select
in EditMode with 'visible selection' on.
2006-08-27 12:27:21 +00:00
Ton Roosendaal
5387532526 Bugfix #4923
Particle distribution error when using Vertex Weights.
In the unlucky case the last face in a Mesh has no weight (zero), the code
that tries to distribute particles evenly accidentally could assign it
still a particle, because of the 'remainder' calculus.

Also only happens in cases where the remainder has a value.
So a workaround is also to increase/decrease amount of particles.
2006-08-27 11:55:32 +00:00
Campbell Barton
683d0c579d errorin mathutils docs, rowSize not rowsize same with colSize 2006-08-26 16:01:25 +00:00
Campbell Barton
66bc55e8a6 Added a new iterator type to the scene - scene.objects should eventualy be used in place of scene.getChildren() and linking objects to the scene. 2006-08-26 09:53:26 +00:00
Campbell Barton
ee302f8693 Metaball wasnt checking the length of any of the input arg lists which resulted in errors in unrelated parts of the script.
Updated the doc too and added a longer example (converting an envalope armature into a meta object)
2006-08-26 07:26:04 +00:00
Campbell Barton
f479235f8e added tipRadius and headRadius bone properties 2006-08-26 05:40:58 +00:00
Campbell Barton
b56047a65a Added missing settings to Modifiers (could not set on Render/Cage/Editmode :/)
added GPL header to Group.c
2006-08-26 03:18:55 +00:00
Ken Hughes
69836ce9bc ===Python API===
More additions for Mesh.faces.extend(); allow faces with 2 verts or duplicate
verts to remain in the input list (although they are still not added to the
mesh) so that indexList option can return None for them.  The goal is for all
faces which are discarded to still be ignored but return None.
2006-08-25 16:01:16 +00:00
Ken Hughes
2ee94cbbac ===Python API===
New keyword parameters for Mesh.faces.extend() method:
  * ignoreDups: turns off checks for duplicate faces in the input list and
    existing mesh faces.  Intended for constructing new meshes where the
    faces are known to be unique.
  * indexList: makes the method return a list of new faces indices, which
    can be used to index new faces to add other attributes like color.  If
    duplicate faces are removed, None is placed in their list slot.
2006-08-24 20:02:22 +00:00
Ken Hughes
de762ae555 ===Python API===
Bugfix: Mesh.faces.extend() would incorrectly add duplicate faces in some
circumstances.
2006-08-24 19:28:36 +00:00
Ken Hughes
7fdf88c0fe Bugfix: structure declaration in the middle of code was breaking compilation. 2006-08-23 00:42:48 +00:00
Ken Hughes
a217e546a4 ===Python API===
Fix return value problem in Mesh_getFakeUsers(): compiler warning in this case
was indicating a real bug.
2006-08-22 18:08:57 +00:00
Chris Want
adc1333d85 Stubs for verse (maybe the verse files should be moved from src/
to blenkernel/intern/ ?)
2006-08-22 13:19:59 +00:00
Nathan Letwory
7fd8ce8156 * Patch #4909 by Joseph Eagar (joeedh)
- this patch adds verse support for SCons, which can be enabled by
    giving WITH_BF_VERSE=1, ie. on command-line
  - this patch also adds a custom lib dir possibility. From the patch description:


 "To set a custom ../lib dir, put LCGDIR="path to lib dir, including the platform folder name!" in your user-config.py."

* Fixed win32-vc-config.py so that it links to the proper library. Reported by Brandano.
2006-08-22 13:04:07 +00:00
Nils Thuerey
f21f3cb290 - modified patch #4681, for scons compiling
of the fluidsim can now be disabled with the
	flag: BF_NO_ELBEEM='true', e.g. for irix systems.
	(The number of ifdefs from the original
	patch was reduced, and the defines are now
	only necessary when elbeem is switched off.)
- particle generation option is available again
2006-08-22 11:18:00 +00:00
Campbell Barton
d6d2d6f063 added fakeUser property to mesh (will need to add to all other library datablocks too)
and added __copy__ to quat and euler types as well as updating the docs.
2006-08-22 09:13:44 +00:00
Ken Hughes
18ab4ff62d ===Python API===
Fix various typos in Modifier, IpoCurve and Armature docs.
2006-08-21 19:11:43 +00:00
Ken Hughes
e5be894a29 ===Python API===
Bugfix: unary minus on a point object should not modify the original point
data but return a new point.
2006-08-21 14:36:11 +00:00
Jiri Hnidek
e3ff8e3507 - uncommit my personal hack of nan_compile.mk, which came to cvs with
huge commit of verse ... this shouldn't be there, I'm sorry
2006-08-21 14:22:08 +00:00
Campbell Barton
0925d80cfa removed the unpopular 'ed' functions, and added .copy() to Mathutils vector and matrix
(inverted, normalized, transposed)

making an inverted copy of an objects matrix used to be.. (2.42)

  imat= Mathutils.Matrix(ob.matrixWorld)
  imat.invert()


# inverted.. I added but now removed

  imat= ob.matrixWorld.inverted()

# with copy (current functionality)...

  imat= ob.matrixWorld.copy().invert()
2006-08-21 13:52:32 +00:00
Jiri Hnidek
0dcfab3e32 - bug fix, bug reported by Campbel, thanks! Keep in mind, that integration
of verse supports only sharing of mesh geometry now, you can't share
   vertex color, vertex weight, etc.
2006-08-21 13:19:18 +00:00
Ton Roosendaal
6dd9c8f6d6 Two small fixes for armature editing:
- CTRL+Click bones in editmode gave too small envelope distances (was 0.1
  instead of 0.25*bone->length)
- PoseMode: ALT+S in Envelope drawmode only scaled the Parent Bone(s).
2006-08-21 10:27:17 +00:00
Jiri Hnidek
2ee42ac01e Huge commit: VERSE
- All code is in #ifdef ... #endif
 - Only make build system is supported and you have to add:
    export WITH_VERSE=true
   to user-def.mk file
 - Blender can share only mesh objects and bitmaps now
 - More informations can be found at wiki:
    http://mediawiki.blender.org/index.php/BlenderDev/VerseIntegrationToBlender
    http://mediawiki.blender.org/index.php/BlenderDev/VerseIntegrationToBlenderUserDoc

  I hope, that I didn't forget at anything
2006-08-20 15:22:56 +00:00
Andrea Weikert
ffe630b452 Fixes for:
[ #4337 ] Cant refresh the C:\
[ #4710 ] Wrong paths in file selector under user prefs
[ #4353 ] Using ^ char + click on Open/Load = Blender crash

Details:

Fixes for root paths like C:\ on Windows, where Blender still used '/'.

Also contains fixes for relative paths:
- no relative paths for the default dirs (forced to absolute)
- message if using relative paths when .blend file hasn't been saved.

Lastly also added '.' for refresh in root paths. Windows
FindFirstFile/FindNextFile also return '.' and '..', but not in root paths like C:\
2006-08-20 14:41:13 +00:00
Ton Roosendaal
8dd3a792f0 Fixing stuff without using brains... shouldn't do that too often! :)
This fixes my commit of august 13th, that cleaned up the code for
drawing optional buttons for Constraint targets.
Now, Bone target buttons are corectly drawn, when a target is Armature.

(also bug report #4907)
2006-08-20 12:38:06 +00:00
Ton Roosendaal
d5dee986ec Commit of 2006/08/18, in compositor, had a debug print in armature... 2006-08-20 11:45:27 +00:00
Ton Roosendaal
9334048b60 Bugfix #4906
Python API bug: Importing ipo curves did a memcpy() on a 1 item too large
data block. I wonder how IpoCurve_append() would have ever worked...
2006-08-20 11:02:31 +00:00
Ton Roosendaal
b894ee5b87 Bugfix #4892
Compositor: Image nodes used for Movie files didn't convert the relative
paths (if used), so it could not load the movie file.

This bug explains why sometimes movies worked in the Compositor... so for
the current release the bypass is to disable the "Relative" button in the
File Window.
2006-08-20 10:18:01 +00:00
Campbell Barton
2580a91a8f Added another example for Curve in the epy docs 2006-08-19 11:00:11 +00:00
Matt Ebb
c637afe349 Fix: Previous check for front and back filling when using fattened curves was
too strict and ignored bevel objects. Fixed this.
2006-08-19 06:44:29 +00:00
Ton Roosendaal
7539cec416 Plumiferos bugreport:
The Blur node didn't pass on a buffer when the 'factor' value was not
exactly zero. Tiny values (like 0.0000001) or even negative ones were
still handled by the blur code.
2006-08-18 08:16:34 +00:00
Geoffrey Bantle
4b681e3910 -> Adjustable Tolerance for Knife Exact Snapping
Vertex Snapping for 'Knife Exact' tool was originally set at 75 pixels. Now its adjustable via the 'threshold' value in the editing context of the buttons window. I also changed the tooltip to reflect this.
2006-08-18 06:08:21 +00:00
Campbell Barton
8a9839fdef Added an example to Modifer.py epy docs 2006-08-18 01:56:18 +00:00
Kent Mein
7ab9e8d491 fix case on a header. (seems odd that it wasn't caught before but
is consitant with rest of file, so I feel pretty safe commiting it.

Kent
2006-08-17 23:52:58 +00:00
Ken Hughes
1e8033f45c ===Python API===
Patch from jms: adds attributes effect.disp and effect.staticStep.
2006-08-17 21:39:49 +00:00
Ken Hughes
66bd3fbd18 ===Python API===
Bugfix #4886: deleting a bone would disconnect bones when it shouldn't have.
Thanks to Michael Ward (easybreasy) for locating the problem.
2006-08-17 21:36:56 +00:00
Campbell Barton
314fbb4ff5 Added Armature.New() 2006-08-17 07:14:29 +00:00
Kent Mein
b3e431baab Changed previous commit.
Brings it more inline with the rest of blender as far as international
optinality goes...

Kent
2006-08-16 20:47:54 +00:00
Ken Hughes
a680d87902 ===Python API===
Patch to Mesh and NMesh APIs to bring FaceModes dict into sync (thanks jms).
2006-08-16 19:20:37 +00:00
Kent Mein
073f0d8ea6 added missing #ifdef INTERNATIONAL around: refresh_interface_font();
Kent
2006-08-16 18:14:42 +00:00
Campbell Barton
9ef3e8092b Added python __copy__ to Camera, Lattice, Metaball and World. 2006-08-16 14:06:24 +00:00
Campbell Barton
b92837c7c3 Object.c - Fixed dupli variable flags 2006-08-16 06:19:08 +00:00
Ton Roosendaal
73f44f6fbb Bugfix #4890
Driver relations for Constraints (in Actions, Armatures) were not in
depsgraph yet.
2006-08-15 13:30:06 +00:00
Ken Hughes
816da5bb6f ===Python API===
Change documentation of ProtectFlags dictionary from SIZE to SCALE.
2006-08-15 13:16:10 +00:00
Ton Roosendaal
605e0230bf Bugfix #4857
Boundbox code for display lists lacked a check for empty Curve/Surface
objects, causing a boundbox to be giant (initialized huge values). That
frustrates code like 'view3d home', or 'centered object view'.

(Commit in view.c is only a little bit code cleanup)
2006-08-15 11:33:00 +00:00
Campbell Barton
8e7095a464 Added __copy__ to armature, material, curve, group 2006-08-15 11:24:08 +00:00
Jiri Hnidek
2fc1f4ac42 - updated python api doc string for Object_SetDrawMode() 2006-08-15 11:06:00 +00:00
Ton Roosendaal
9851153814 Fix for issue found in IRC:
The Object Buttons, Constraint panel, didn't show Object constraints for
armatures when Armature was not in PoseMode. It was always drawing the
constraints for the active Bone...
Solved with a decent check in beginning of function, and have all types
use that.
2006-08-15 09:41:33 +00:00
Ton Roosendaal
72c8d7c313 Bugfix #4806
Reports came in that Elephants Dream files crash on quit or loading other
files. Was caused by freeing Material Nodes, which was accessing memory
that potentially was just freed before (node->id). Apparently only Windows
really gives issues then, which is actually a good thing :)
2006-08-15 08:56:48 +00:00
Campbell Barton
733c9445c6 improved TexMesh tooltip, always wondered what it did until recently.
was "Enter the name of a MeshBlock"
now "Derive texture coordinates from another mesh."
Also changed amb occusion tooltip.
2006-08-15 06:27:33 +00:00