Commit Graph

9442 Commits

Author SHA1 Message Date
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
Stephen Swaney
5cc58ba8fe Doh! prototype for Armature_CreatePyObject() was already added.
I plead incompetence.  more coffee, please.
2007-02-22 10:46:02 +00:00
Stephen Swaney
5cb958f305 broken build!
FILE_MAX undefied in util.c
implicit method def Armature_CreatePyObject() in Armature.
2007-02-22 10:20:27 +00:00
Joshua Leung
fbd8a16933 Compiling bugfix:
Campbell's change from yesterday (renaming PyArmature_FromArmature
to Armature_CreatePyObject) broke compiling here - was missing change to
this file.
2007-02-22 10:00:47 +00:00
Campbell Barton
a2ce2600d9 renamed posebone.ik to hasIK, removed unused code, made the function name of Armatue's py object from Blender object consistant with others. 2007-02-21 23:14:01 +00:00
Andrea Weikert
f12d312275 === bugfix ===
- path without volume name still caused error when used as name for relative base
- could happen with name in .Blog file saved by older blender version
- fix for [ #6065 ] Blender refuses to save any renders
2007-02-21 20:00:03 +00:00
Roland Hess
3a2c58b6ec When looking into code for centering the Ipo view on the current frame,
it turned out it was already in there (center_currframe), and already
had an event entry in the View menu. It only lacked an actual menu entry.

Added the menu entry, along with hotkey Shift-C. Consistency with other
window types would indicate it should be C-key, but that is already taken
by what's probably an obscure curve edit mode function. With event refactor
in the future, I'm loathe to start changing hotkeys ;)
2007-02-21 16:48:36 +00:00
Campbell Barton
943007abbf text.makeCurrent() works now, it depends on the script menu type, so will only work from some menu's. 2007-02-21 13:00:12 +00:00
Campbell Barton
f71458b904 adding menu slot Armature
adding menu slot ScriptTemplate
new script scripttemplate_mesh_edit is a template for an editmesh script.

The function Text makeCurrent() is a dummy until I can get it working when the script runs from a menu.
2007-02-21 11:17:17 +00:00
Campbell Barton
6831c04533 * added MTex uvlayer string attribute
* added Pose attribute "ik" True/False depending on the pose bones IK.
  limitX/Y/Z bool's
  lockX/Y/ZRot bool's
  stiffX/Y/Z floats
  stretch (ikstretch) float
2007-02-20 23:23:54 +00:00
Campbell Barton
64231d19bf Object parentType could never match Object.ParentTypes.LATTICE, Id incorrectly assigned the lattice constant. Armature and Lattice parent types are the same. documented this. 2007-02-20 09:23:13 +00:00
Kent Mein
6c17f1187e Patch provided by Carsten,
KX_RaySensor::Evaluate returns false when hit was detected and it was
already marked as hit.  (no change in state)

Kent
2007-02-19 21:46:57 +00:00
Peter Schlaile
316df82cb4 == Sequencer ==
Bugfix: fixed missing plugin init on file load with open 'N'-key
  dialog reported by paprmh.
2007-02-19 21:35:32 +00:00
Brecht Van Lommel
25f7d6693f Fix for a potential crasher bug in the textured brush code, as found
by Andrea (thanks!). This code is known to run OK in the release builds
though, so not that big a deal.
2007-02-19 16:25:44 +00:00
Campbell Barton
95ac2acf39 uvcalc_lightmap, UVCalc menu, usefull for using the most texture area when baking lightmaps
object_sel2dupgroup, creates a dupliGroup from a set of selected objects, using the active as the transformation for the dupli-ob. The advantage of using thus script is that objects have this transformation removed.
2007-02-19 10:54:33 +00:00
Hans Lambermont
55cde4276b Finally commit a workaround for the Python>2.3 and FreeBSD>5.0 problem.
See http://projects.blender.org/pipermail/bf-committers/2005-April/010506.html
and projects.blender.org/pipermail/bf-committers/2006-December/017035.html

A workaround was proposed by Kester Maddock
http://projects.blender.org/pipermail/bf-committers/2005-April/010510.html
and recently again, independently by Andreas Kasparz (no URL, private email)

See also http://svn.python.org/projects/python/tags/r24c1/Include/pyport.h,
starting line 430 : "On 4.4BSD-descendants, ctype functions serves the
whole range of wchar_t character set rather than single byte code points
only. This characteristic can break some operations of string object..."
2007-02-18 21:03:23 +00:00
Jacques Beuarain
0246e8ba00 CMake: Think this is the reason linking python statically causes problems on some platforms (linking order) 2007-02-18 15:01:07 +00:00
Chris Want
de9a4bcdf1 Script removed by the request of the author 2007-02-15 22:43:08 +00:00
Ton Roosendaal
806692a41b Part 2 of 2.43 release commit 2007-02-15 21:32:30 +00:00
Ton Roosendaal
481eb71ef6 Part one of 2.43 release commit! 2007-02-15 21:31:57 +00:00
Ton Roosendaal
05de3fb3d5 Bugfix #6053
When in sculptmode, enter editmode, add faces or vertices, exit editmode,
then undos/redos screw up mesh.

Now the stack for sculpt is freed. Later on one could precisely test why
this undo isn't resistant to such changes.
2007-02-15 20:32:08 +00:00
Simon Clitherow
b5ca98f143 Added windows NSIS installer script to scons. Not pretty, but it works :)
To use:

Make sure NSIS is in your %PATH% and type 'scons nsis'

It doesn't currently compile blender first, so make sure you do a
normal 'scons' before this.
2007-02-15 17:00:22 +00:00
Campbell Barton
14e4d46112 added a reference to the original scripts location to comply with the GPL. 2007-02-15 12:23:26 +00:00
Campbell Barton
3c78f0daec * renamed to 'Consolidate into one image' and improved tooltips
* check for the faces TEX mode as well as the image
* use Scene.objects
* use 2 threads for rendering
2007-02-15 12:13:13 +00:00
Matt Ebb
7d40bc5ed6 Simple Fix: Compo AlphaOver Fac socket and Texture node sockets
accepted more than 1 input.
2007-02-15 12:01:41 +00:00
Ton Roosendaal
78a12943b1 Bugfix #6049
Calling a pop_space_text(st) crashed in Python code that was drawing areas.
Why this was there? No idea... remainder of NaN days. Ugly, bad, go away!
2007-02-15 11:26:19 +00:00
Ton Roosendaal
5b816ab8f8 Bugfix (via email)
Bake crashed when baking to float images. Caused by an Imbuf call not
handling float imbufs well.
2007-02-15 10:46:10 +00:00
Campbell Barton
97cc5db444 Added text noting this is a modified work, to comply with the GPL. 2007-02-15 00:57:58 +00:00
Campbell Barton
594026e70e re-enabled printing text to the console (since its optional)
Also added some descriptive text to the option and renamed "display time" to "Display Update" - since it also redraws in the 3d view.
2007-02-15 00:00:59 +00:00
Campbell Barton
5a3f1675a3 Commiting JMS's Latest KMZ minor changes.
* Redraw the 3d view only when importing. (Not all windows)
* Select all verts at once rather then 1 by 1.
* dont print polygons when importing. (Would be better to use the progress bar for this)
2007-02-14 21:08:58 +00:00
Ton Roosendaal
28f18ac9e6 bugfix #6047
Provided by Juho: proper softbody panel button refreshes.
2007-02-14 20:53:35 +00:00