Commit Graph

53000 Commits

Author SHA1 Message Date
Stephen Swaney
26aa15969f attempted fixage for gcc warnings with Python 2.5 2007-03-14 16:38:58 +00:00
Campbell Barton
6b584a6504 many menu items would crash blender if there was no 3d view. added checks. 2007-03-14 09:08:41 +00:00
Campbell Barton
5c5a80f644 made all python types that can do .__copy__(), also do .copy()
added copy function to lamp, texture and ipo types
2007-03-14 03:01:24 +00:00
Campbell Barton
d3ae4b9944 disabled Object.Duplicate() in background mode bacause it needs the 3d view, added a note in the docs. 2007-03-14 02:11:42 +00:00
Campbell Barton
ed31a7c6bb [ #6214 ] Select object of the same group.
rewritten to find the groups that an object is apart of only once (less listbase searching).
with the limitation of 24 maximum in the menu.
2007-03-13 16:15:59 +00:00
Campbell Barton
5ae20c6eaf renamed norepeatX/Y to ClampX/Y 2007-03-13 12:50:36 +00:00
Ton Roosendaal
a8b41017f1 Bugfix #6211
Group nodes with animation nodes inside (like Time) did not get updated
correctly.

I also noticed that with time Nodes,  the hotkey "E" (execute) fails to do
a composite after frame changes, fixed that too.
2007-03-13 12:20:55 +00:00
Campbell Barton
df1df624ac added back videoscape for python 2007-03-13 11:54:53 +00:00
Campbell Barton
0745133528 removed videoscape support, a format from 1988 that nobody uses anymore. 2007-03-13 10:00:27 +00:00
Campbell Barton
56b9617ce0 exiting editmesh when in face select mode could result in hidden and selected faces. 2007-03-13 03:05:12 +00:00
Kent Mein
844d6f9aa6 patch [#6213] msvc had problems with GL_CLAMP_TO_EDGE being undefined
on some systems.  If its undefined define it.

Kent
2007-03-13 00:06:37 +00:00
Ken Hughes
f9b20a37b2 Python API
----------
Chris Want on IRC pointed out a grammatical error in the Bpy doc file.  While fixing
it, I found about a dozen more.
2007-03-12 19:45:42 +00:00
Ton Roosendaal
f523cce837 Bugfix #6167
Metaball delete could crash, if selected/active ball is not the 'mother'
ball.
2007-03-12 16:27:20 +00:00
Ton Roosendaal
f82e278528 Bugfix #6181
An acos() getting a negative value caused 'ray trace shadow bias' to go
wrong (and object render entirely black). Only in very rare cases... but
nevertheless a nice discovery fixing other unpredictable issues.
(Symptom: entire object renders black)
2007-03-12 14:25:44 +00:00
Ton Roosendaal
4697a9d9de Bugfix #6183
Option "Align view to selected face(s)" (shift+v) did not work for non-
uniform scaled objects.
2007-03-12 13:31:47 +00:00
Ton Roosendaal
8044f9d280 Bugfix #6173
Dupliverts + shaded mode did not work; patch provided by Riku Palomäk
(tonttu)
2007-03-12 10:30:39 +00:00
Campbell Barton
021cd4aac3 python api
removed most custom add_*data* wrappers from Main.c
removed makeCurrent() from Text.c (was never in a release), use "bpy.texts.active = text" now
clamp new image sizes
made add_empty_action accept a string rather then a blocktype since the blocktype was only being used to choose one of 3 strings anyway.
2007-03-12 06:21:58 +00:00
Campbell Barton
268fdb7425 added no-xtile and no-ytile to the images realtime properties and python api. 2007-03-12 01:43:11 +00:00
Brecht Van Lommel
ffd91ac726 Fix for bug #6127:
Import scripts could create meshes with old style edgecodes.
2007-03-12 00:30:46 +00:00
Ken Hughes
508a24269b Python API
----------
Fixed some broken/disabled Texture attributes after Image refactor.
Added texture.autoRefresh attribute.
2007-03-11 18:20:55 +00:00
Ken Hughes
d60b05254d Remove gcc compiler warnings from various files. 2007-03-11 17:31:27 +00:00
Campbell Barton
e0c77c0f14 made all data adding functions accept a name such as add_mesh or add_curve, previously only some datatypes adding functions accepted a name.
also updated the Bpy.py epydocs
2007-03-11 16:25:17 +00:00
Campbell Barton
f84c02429e Documentation for the new automatically imported "bpy" module. (was Blender.Main) 2007-03-11 12:35:01 +00:00
Joseph Eagar
dcd74620e5 =Cineon Bug=
In my attempts to get cinepaint's cineon code to work with files in memory,
I accidently rewrote something that should have been left as it is.  This
causes images whose image buffers didn't start right after the cineon header to
become "shifted" to the left.

The DPX code looks correct, though.
2007-03-11 12:27:57 +00:00
Ton Roosendaal
d0d9899e76 Bugfix #6201
Shape key drivers were not copied correctly, when choosing the option
"ADD NEW Scene -> Full copy".
2007-03-11 12:14:50 +00:00
Joshua Leung
64f7994454 Action Editor - Remove unused code.
Nothing ever called that part of code, and that code was
'not implemented' anyway.
2007-03-11 04:39:19 +00:00
Campbell Barton
1135434ed1 moved python functions that deal with blender libdata into gen_library.c from gen_utils and BPY_interface
small cleanup, removed unused functions and explicetly cast pointers..
2007-03-11 04:05:45 +00:00
Campbell Barton
36eba6eb6c PyApi: fix for own bad bug, obdata was having a user removed when the object was removed with (scene.objects.unlink(ob)) 2007-03-10 12:37:03 +00:00
Campbell Barton
a8695b1c6e removed python oops access, (was unreliable and nobody used it)
oops data access need to be done differently.

Blender.sys fix for win32 path bug 6193
2007-03-10 11:47:24 +00:00
Campbell Barton
59ff076d03 Main
* Added bpy.*.new() - works for all except sound and font types
* Added bpy.*.load() - works for sound, font and image types

Text3d - removed unneeded check.
2007-03-10 09:43:43 +00:00
Campbell Barton
046508b78d added "bpy" as a module imported by default to replace Blender.Main as a new way to access blender data
gen_utils was missing some type checks that made assigning a objects DupGroup and meshes texcomesh not work.
2007-03-10 06:33:19 +00:00
Ken Hughes
6da624fead Python API
----------
Added Image.source attribute, so image type can be get/set for still, movie,
sequence or generated images.
2007-03-09 22:21:23 +00:00
Ken Hughes
cec9f42296 Python API
----------
Rearrange includes, remove dead code to fix gcc warnings.
2007-03-09 21:48:47 +00:00
Geoffrey Bantle
739b3a045b -> Fix for bug #6150
Missing call to update despgraph caused merge tools to crash
when called from toolbox or header menus.
2007-03-09 19:54:05 +00:00
Geoffrey Bantle
50186c9a2d -> Small bug fix for modifiers and info header stats
Small but very annoying issue with  modifiers meant that G.totvert/totedge/totface
were updated to reflect the effects of a subsurf modifier in object mode but all other
modifier types were ignored. This was not only inconsistent, but also made it very
difficult to keep track of poly budgets. Now in order to obtain accurate counts
object_handle_update is called immediatly after adding a modifier and precedes  a call
to countall() which has been modified to query the final derived mesh directly
using dm->getNumVerts/Edges/Faces callbacks. Editmode behaviour is unchanged.
2007-03-09 15:36:21 +00:00
Matt Ebb
86a20402b6 * Visualise material 'Shadeless' a bit better in the 3D View solid mode.
Now it draws as if Ref = Emit = 1.0 - not as accurate as shaded mode,
  but it's better than before, and at least it allows transparency.
2007-03-09 04:19:59 +00:00
Ken Hughes
b8e236a861 Python API
----------
Fix bug with variable declaration in middle of function.
2007-03-09 00:11:02 +00:00
Campbell Barton
5eaf9f90c1 BPython API
added a function - GenericLib_assignData for assigning blender data, to assign an ipo to a camera or world to a scene for instance.
Using this function removed ~300 lines of code.
also fixes user count error in some places that didnt check.

also made it possible to clear the colorband by setting it to []
2007-03-08 14:37:34 +00:00
Campbell Barton
51c16edabc bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it. 2007-03-08 13:43:59 +00:00
Ton Roosendaal
e3fc193641 Bugfix #6176
Matrix cache for particles was read out of bounds. Fix found by Ken Hughes.
2007-03-08 12:22:50 +00:00
Ton Roosendaal
aec81d8b4b Bugfix #6190
Composite: renderlayer nodes were not tagged 'changed' when rerendered,
causing a composite to skip them. (only for nodes having another scene)
2007-03-08 12:05:34 +00:00
Campbell Barton
8e0704f59a Added python access to material and texture colorbands.
mat.colorbandDiffuse
	mat.colorbandSpecular
	tex.colorband

gen_utils - removed unused func
2007-03-08 06:35:01 +00:00
Nicholas Bishop
4bd5ab628b == Multires ==
Fixed bug #6153, Blender Crash during rendering (internal) with object selected in edit mode.

* Added a render parameter to several of multires's functions. If render==true, multires won't push data onto the undo stack, and regular Mesh data is always used (as opposed to EditMesh data.)
2007-03-08 05:54:39 +00:00
Campbell Barton
f361c49d70 Was missing a define for intern_pos_update, somehow GCC didnt complain but MSVC did. 2007-03-08 03:04:17 +00:00
Charlie Carley
f56fca448a Added a guard to prevent more than one texture to be generated per image. 2007-03-08 03:00:33 +00:00
Campbell Barton
9e2081a5fc made alloc_sequence accept a linkedList so it can be used from Python.
the start/end points for new strips were not set properly.
2007-03-07 14:58:29 +00:00
Brecht Van Lommel
c5a1582801 Bugfix (forum report):
Texture space copy (ctrl+c) crashed.
2007-03-07 14:57:01 +00:00
Matt Ebb
37308c01ca Compositor/assorted nodes fixes:
* Auto-create compbufs for first socket of alphaover and set alpha nodes.
This allows you to eg. plug something into the second socket of an
alphaover node, and choose a solid colour in the first empty socket for
the image to be superimposed over.

Previously I had to create a bunch of extra nodes to (for example) mix
100% black over my render, just to get a black compbuf of the right size
that I could plug in. Not nice.

The Mix node already works this way, and these two should have, but
didn't.

* Allow the 'Fac' value to be used on RGB curves when there is no input
image. This lets you easily fade the changes in and out to check it
against the original, or to tone down the effect of the colour correction.
2007-03-07 11:09:03 +00:00
Campbell Barton
d79f21eba7 DNA_meta_types.h - had a max element type defined that wasnt used anywhere, and some metaballs alredy use more then 1024 elements.
Metaball - added metaball.update attribute and constants Mataball.Update.ALWAYS, NEVER, HALFRES and NEVER
2007-03-07 09:53:40 +00:00
Campbell Barton
37c7d4d385 Type header_seq.c - Reassing Inputs -> Reassign Inputs
Mesh.c added new function to mesh - mesh.pointInside(vec)
2007-03-07 08:53:26 +00:00