Commit Graph

9622 Commits

Author SHA1 Message Date
Nicholas Bishop
a734d3cc27 == Sculpt Mode ==
When switching scenes, turn Sculpt Mode off (same as for other special modes.)
2007-02-28 21:10:41 +00:00
Andrea Weikert
e53c5058b4 === bugfix ===
filename and path issues:
[ #6107 ] Animation crashes when ouput folder does not exist
- using the Windows drive as default and only then degrading to the
  Blender installation drive and then the first valid drive.
- in case of degrading added error message print to console to make it
  transparent
[ #6106 ] fluids - no default path
- setting the default path to U.tempdir where Blender stores temporary files
2007-02-28 20:11:10 +00:00
Brecht Van Lommel
b58d1f9ba0 Fix for bug #6136:
Yafray rendering with 2 or cameras linked crashes. Iterating over and
erasing from STL map at the same time wasn't being done correct.
2007-02-28 17:50:15 +00:00
Martin Poirier
f6ebfd6f80 === Transform Snap ===
Snapping to other meshes from edit mode.

This commit adds the capacity to snap to vertice of other selected meshes. (This is for sanity reasons, big scenes would kill the speed)
So, if you want to snap to another mesh, just add it to the selection and you're done.

NOTE: Priority is given to vertice inside the current mesh (if they overlap with outside verts)
2007-02-28 17:16:17 +00:00
Martin Poirier
09a587ea51 === Transform Snap ===
[ #6131 ] Vertex snapping broken in shaded face + edge select mode

The problem was trying to use the OGL optimisation when vertex selection was turned off. Added a check for that in all the find_nearest functions (vert, edge, face) so nobody falls in that trap again.

The offshot is that snapping in shaded view without vertex select on can snap to occluded vertice.
2007-02-28 15:29:18 +00:00
Joshua Leung
185ede21ce Added a few extra defines for adding constraints. No new constraints added yet. 2007-02-28 08:54:32 +00:00
Nathan Letwory
113fa75449 === SCons ===
Update configs to use Python 2.5. To quote from IRC:

07:17  * stivs waves his +5 Mouse of Power and authorizes jestie to update all of scons to py 2.5.
07:17 < stivs> let the screaming begin!
2007-02-28 04:51:13 +00:00
Campbell Barton
780177ec13 mis named Layer, should be Scene.Layers 2007-02-28 04:50:39 +00:00
Campbell Barton
b7e314c558 plumiferos request,
Simple script to copy the active vertex group, also has the option to only copy the selected faces into the new group.
2007-02-28 03:07:07 +00:00
Nicholas Bishop
04337d4ada == Sculpt Mode ==
Added a SculptSession parameter to sculptmode_propset_end, to avoid propset_end creating a new session (propset_end is called when freeing the session, so this can cause a memory leak.)
2007-02-27 23:54:55 +00:00
Campbell Barton
4f9cb4c710 dumb error with Lattice getseters, found with a python random testing script 2007-02-27 15:59:25 +00:00
Campbell Barton
7380249cb4 added wrong file. 2007-02-27 12:55:48 +00:00
Campbell Barton
96cfdf991d Added 2 options to the object Ctrl+F menu - Sort faces by View axis (front to back) and (back to front)
Use the build modifier to see it sort.
2007-02-27 11:15:38 +00:00
Campbell Barton
e3f8c62028 fix for own error, mixed decloration. 2007-02-27 10:27:12 +00:00
Campbell Barton
d067c11336 added id_attributes.py, this containes ID doc strings, all datablocks that have use ID props import this docstring. 2007-02-27 10:23:24 +00:00
Campbell Barton
9d7ace2654 x3d_export.py - fix for bug 6120
Sound.c - moved to getseters
2007-02-27 06:39:48 +00:00
Nicholas Bishop
4b0db88d3e == Sculpt Mode ==
Removed special Sculpt Mode undo code. Sculpt Mode undo is no longer so useful, since in order to make it more correct it has gotten slower, so normal BIF_undo_push is used now. Fixes bug with Shape Keys, sculpting on a shape key wasn't doing undo properly.
2007-02-27 06:22:41 +00:00
Joshua Leung
6e3b4ee0d4 Code Cleanups for Constraints
* Removed some code which really wasn't needed
2007-02-27 04:35:05 +00:00
Campbell Barton
58d1a25da0 moved Lattice to getseters. gen_utils.c - removed unused code fixed a warning. 2007-02-27 04:28:15 +00:00
Nicholas Bishop
d3f9e661de == Sculpt Mode ==
Followup to joeedh's commit, removed use of RenderInfo struct from Sculpt Mode.
2007-02-26 21:28:46 +00:00
Stephen Swaney
79ad751013 add some comments about libalut and a BF_OPENAL_LIB line
to uncomment if necessary.

libalut is becoming problematic.  some distros have it, some do not.
At least one considers it deprecated, iirc.
2007-02-26 20:50:50 +00:00
Joseph Eagar
c9f4a0f066 =NKey Panel Fix=
The weightgroup menu in the NKEY panel in 
the 3D viewport was using a two-small string variable,
which could cause crashes on msvc compilers (which detects
stack mangling at runtime, nice!).

This should fix bug #6097, though it's hard for me to test
as my default compiler (gcc) is much more lenient :S
2007-02-26 20:36:03 +00:00
Ton Roosendaal
44cb770af4 Bugfix #6115
Render crash: "Stars" render didn't survive scenes without a camera.
2007-02-26 19:58:20 +00:00
Joseph Eagar
eb7b0df8ea =Armature Undo Fix=
I forgot a few hide functions that needed undo pushes, and misnamed
an undo push in one of them.
2007-02-26 19:34:38 +00:00
Martin Poirier
509967930e === Edit Mesh Bevel ===
[ #6110 ] bevel tool contains a bug

Fix: Added missing initgrabz
2007-02-26 17:24:22 +00:00
Campbell Barton
a3320f209c console.py
* improved autocompleation
* faster dictionary usage

Types.c
* type(scene.getTimeLine()) # old bug, will crash blender
2007-02-26 02:24:04 +00:00
Brecht Van Lommel
2ffe25aa79 Bugfix:
Mesh extruding in vertex mode did not copy face data correct, leading
to garbage UV data.
2007-02-25 21:57:45 +00:00
Campbell Barton
ebc042a808 World.c
* moved to getseters with id attribs
* added 2x missing checks for list size when parsing args.

Text3d.c
* use getseters with id attribs
* added a comparison function
2007-02-25 17:38:22 +00:00
Martin Poirier
0bd2d0ff45 === Transform Snap ===
adding GL_DEPTH_TEST disable and enable to make sure snapping circle is drawn on top.
2007-02-25 16:22:19 +00:00
Andrea Weikert
a91e25ac1f ==== MSVC project files ====
- maintenance: added python Main.c
2007-02-25 15:49:22 +00:00
Campbell Barton
a05f95f347 Image.c
* moved to getseters (use new generic ID funcs)
* added 'reflect' attribute

Text.c
* moved to getseters (new generic ID funcs too)

NLA.c
* moved to getseters (ditto)

Ipo.c
* bugfix, allow nested loops on an IPO's curves.

Blender.c
* removed undocumented function RemoveFakeuser, since actions now have the fakeUser attribute.
2007-02-25 12:41:50 +00:00
Campbell Barton
436e1697fd made attributes (name, property, users, fakeUser, lib) into functions all python types can use.
removed a lot of code duplication when moving to this.
Also removed unused functions GetMaterialByName(), same for Mesh, Object, World etc.
2007-02-25 07:36:50 +00:00
Campbell Barton
e64b887fad comments in these files made gcc choke, removed 2007-02-25 02:02:53 +00:00
Stephen Swaney
d07e0abf89 print out the subversion of the Python version string. ex 2.4.2 2007-02-25 01:41:14 +00:00
Campbell Barton
75147698e2 Scene
* Moved to getsetattrs
* added scene.users (get)
* added scene.fakeUser (get/set)
* added scene.world (get/set)
* added scene.timeline (get)
* added scene.render (get)
* added scene.radiosity (get)
* added scene.objects.camera (get/set)

Group
* added properties

gen_utils
* made getScriptLinks work as documented, return an empty list rather then None.

header files, noted libdata after PyObject as a requirement.

Others,
* Deprecate prints for older functionality

EpyDocs still need updating.
2007-02-25 01:07:28 +00:00
Brecht Van Lommel
f791672e76 Fix for bug #6099:
Crash deleting last vertex group in lattice. This code wasn't updated
to work for lattice vertex groups yet.
2007-02-23 20:34:27 +00:00
Brecht Van Lommel
758307b9cc Bug #6093:
Spin tool now uses the 'clockwise' setting again. This was disabled
because degrees accepts negative values, but it seems to cause confusion,
and there's no reason both buttons can't work at the same time.
2007-02-23 20:06:17 +00:00
Ton Roosendaal
30984a3bc8 Render passes:
Feature fix for ObjectIndex, now frontmost visible transparent face also
writes an index.
2007-02-23 15:06:27 +00:00
Campbell Barton
086d51c822 BPython API
* Added data.lib attributes to almost all data types, (except for Text3d and NLA)
  This is None or the path of the library as a string.
* Main was giving a warning, Include Curve.h rather then CurNurb.h
* Added Library.LinkedLibs(), returns a list of externaly linked libs.
2007-02-23 14:51:20 +00:00
Ton Roosendaal
260af5f3c1 Plumiferos report:
Bad bad bug in Vector Blur: when using Ztransp in a RenderLayer,  the speed
vectors of moving solid faces were all cleared. Bug since january 21st... is
this the 2.43a case? Dunno... :)
2007-02-23 13:12:28 +00:00
Nicholas Bishop
53855b4a43 == Multires ==
Fixed bug #6056, Brush Grab in SculptMode don't works for ShapeKeys

* Grab Brush stores active vertices differently from other brushes, need to read from a different List when updating shape keys.
2007-02-23 06:02:46 +00:00
Joshua Leung
98a81b3927 Bugfix #6089:
"Forward/backward 10 frames" option in Timeline menu now respects
steps (spacing between frames to jump) value.
2007-02-23 04:44:52 +00:00
Willian Padovani Germano
bdf75bfbef Scripts:
- Updated ac3d exporter to use first material found in the mesh for loose edges (lines) color. Inspired by bug report from Stewart Andreason. Also made a few updates to very old parts of the code, got rid of two "try/except".

- Updated ac3d importer to be even more forgiving to bad data. Also added option to turn transparency on in the 3D View for models using materials with alpha < 1.0. Added optional support for ac3d's subdiv tag, works by adding a subsurf modifier to the imported model(s) that have this tag, so they appear as intended.
2007-02-22 20:19:58 +00:00
Nicholas Bishop
1f8469b7fb == Multires ==
Fixed bug #6046, updating edge data after applying multires

* Changing the Edge level in the Multires panel should update the edge render flag as well as the draw flag
2007-02-22 19:34:38 +00:00
Nicholas Bishop
a7bccae477 == Sculpt Mode ==
* Replaced get_tex_angle() with tex_angle() and set_tex_angle(). This removes the need to do a bunch of error-prone NULL checking everywhere the texture angle is used.
2007-02-22 18:49:00 +00:00
Ton Roosendaal
685d26f901 Bugfix:
UV Image window: option "Add new" did not properly set 'image user',
causing image to not draw and not assign to meshes.
2007-02-22 16:00:20 +00:00
Campbell Barton
9759a373d7 Updating own scripts to use Blender.Main, remove Base files. 2007-02-22 15:48:26 +00:00
Campbell Barton
c540c8fa44 renamed Base to Main 2007-02-22 15:26:35 +00:00
Campbell Barton
1190b45263 Adding a new way of dealing with library data in blender, Blender.Base
Has a number of advantages over the existing method, described here.
http://wiki.blender.org/index.php/User:Ideasman42#Post_2.43_Update_to_the_Python_API

Only missing functionality is the ability to add new data through Base.scenes.new('name'), where scenes could be meshes, texts etc.

Other changes are minor,
Scene.h, bad var name in definition.
Text.c/h - moved the Python Struct into the header file, added BPy_Text_Check()
2007-02-22 14:37:30 +00:00
Matt Ebb
def30c5ff9 * Added the sculpt mode Ctrl/Shift/F interactive
brush scaling/strengthening/etc tools/hotkeys to
the Sculpt menu. Also made a couple of other small
changes for easier text scan reading.
2007-02-22 11:58:07 +00:00