Commit Graph

5933 Commits

Author SHA1 Message Date
Ken Hughes
e77112f76b ===Python API===
added len() operator for MFaces, which returns number of MVerts.
2006-06-06 18:14:31 +00:00
721de110b2 Added Py_DECREF since PySequence_GetItem adds a reference where as PyTuple_GetItem borrows it.
Thank ken.
2006-06-06 17:28:39 +00:00
46329e5ab0 made it so a meshes uvsel could be set with any sequence, not just a tuple. 2006-06-06 17:04:00 +00:00
f82ffb2e1e Updated the 'library linked data' code to use the render object table as
suggested by Ton.
2006-06-06 16:56:47 +00:00
8741e7d06d Bugfix #3664
Curves and Text without extrude or bevel, didn't allow to set 'width'
anymore. Code got removed in too rigid cleanup for 2.40 modifiers.
2006-06-06 10:09:44 +00:00
f832e30669 Added support for linked objects from libraries which can have names that
are already defined locally, probably does not work fully yet.
Added extra 'threads' parameter as requested by Lynx3d.

Optimized drawing of rendered tiles, so that the entire image doesn't have
to be redrawn every time a tile is complete.
The blender code that handles this part was not yet complete and could only
draw (sets of) scanlines. I extended the renderwin_progress() function in
renderwin.c to handle a given subrectangle.
This code needs review!
For the limited test I did it seems to work at least...
2006-06-06 01:57:07 +00:00
4467c26337 == Sequencer & IPOs ==
This code enables IPO-pinning for Sequence-strips again, by working
around the missing libdata in blenloader/intern/readfile.c.

Bad hack(tm). Maybe we find a way, to make Sequence-strips true libdata?

It also fixes two places in IPO-editing where frame-locking wasn't handled.
2006-06-05 19:04:19 +00:00
e7ee6c3ec4 Stupid me... commit for support of viewer Node in Groups broke adding
new viewer nodes. Wrong use of variable.
2006-06-05 16:46:13 +00:00
67d5d686f4 Bugfix #4275
Edit Mesh: "Add duplicate" failed when used in mixed edge/face select mode,
you then can make incoherent vertex selections. Nicely solved.

Also, related, uncommitted fix I did 6 months ago for EM_selectmode_set().
It is supposed to deliver full consistant selection, for all combos of
selection modes.
2006-06-05 16:39:50 +00:00
4612605786 * Woops, a debug printf slipped through. Removed. 2006-06-05 16:01:00 +00:00
1fcae2e0f7 * Cut, Copy and Paste for buttons now also works while editing button text.
Hotkeys Ctrl/Command (Mac) X, C, and V will cut, copy and paste the selected
  text to and from the 'buttons clipboard'.

  This clipboard is still not that good since it doesn't even use the same
  storage as the blender text editor, let alone the host OS. But I guess that
  sort of thing should be tackled inside of GHOST. Any takers? :)
2006-06-05 15:52:42 +00:00
Ken Hughes
a57bb6bee1 Bugfix #4081: support for OpenBSD platform for scons. Big thanks to Nathan Houghton for this contribution. 2006-06-05 15:52:26 +00:00
10bc192604 - small fix: image icons are now drawn without the white background 2006-06-05 13:08:54 +00:00
e5218ce9aa - added saving of the image previews to the .blend file to prevent having to load the full images for the image previews
- new struct PreviewImage in DNA_image_types can in the future be moved to struct ID for storing previews for all types
2006-06-05 11:07:15 +00:00
6d98cce4a6 Blend method fixes by Fred van Essen.
Also renames "Lightness" to "Value".
2006-06-05 09:55:39 +00:00
6f0d7e8d1f bugfix #4072 added support for strandmapping, done by exporting the
strand texcoords as orco coords, so yafray doesn't have to be adapted for this.
bugfix #4254 added support for dupligroups, but might not work completely
correct yet at this point, more testing needed.

Also added some missing parts from the code apparently removed at some time.
Mainly having to do with dupliverts, cam.info for aspect ratio/ortho mode/etc.
Header stats (render window) should now work again too.
Fixed missing last tile draw of render window.
Added the missing const_cast in the win32 part of the xml export code.
2006-06-05 02:24:12 +00:00
ac27f21b36 * Made the emphasis on every 10th 3D View grid line brighten instead of darken,
if the grid colour is brigher than the background colour (so it increases
contrast in all situations)
2006-06-05 02:17:24 +00:00
cadc198f01 * Tweaked the ipo header menu hotkeys
Campbell, the standard convention is to include the direct hotkeys on the
  menu items themselves, not on the higher level menu categories. cheers
2006-06-05 02:12:43 +00:00
5695dba2c9 Added the letter T for the Ipo type menu (key shortcut). So we can close bug 3700
typo in commant interface.c
2006-06-05 01:46:03 +00:00
ce202f7540 Clicking on the arrows of a python float button did not change the value :/ - (Click step was zero) Fixed in Draw.c
Added a comment to interface.c on how a1 and a2 are used with float buttons.
Added an example to Draw.py epydocs of a script using a float button.
2006-06-05 01:23:56 +00:00
233348197e === Bug Fix ===
[ #4272 ] Camera zooming problem
Move the camera in camera view could block inexplicably sometimes.

Was a silly programmation error that any competant compiler should have given a warning for. Alas, I'm using gcc...
2006-06-04 18:38:58 +00:00
df782b1122 ==Sequencer & ffmpeg==
Bugfixes:
- hddaudio now allocates it's decode buffer + AVCODEC_MAX_AUDIO_FRAME_SIZE
  safety interval. (The former code expected all decoded audio frames to
  be the same size which can hurt under some circumstances e.g. VBR files)
- writeffmpeg: some pointers where not initialized on start and after
  deletion not set to null. Could segfault randomly on error conditions.
- drawseq: use startdisp and enddisp to decide, if a strip should be drawn.
  (Just extend strips first or last frame beyond screen dimensions in
  the previous version and watch the strip disappear)
2006-06-04 18:05:47 +00:00
42c5725349 Bugfix #4271
Sequence editor: Ipowindow allowed to "Pin" an animation curve, which
isn't supported really. (Strips are not library data)
2006-06-04 17:48:02 +00:00
86af9a0065 Fix #4269
Using displacement mapping caused VectorBlur (speed vectors) to go haywire.
2006-06-04 17:22:19 +00:00
3a77069fe7 Bug found by Campbell; Tkey in IpoWindow on "shape keys" didn't work at
all, and even crashed in some cases.
2006-06-04 17:19:32 +00:00
e9fb9f2c33 Bugfix #4223
Sequencer:
A call to view2d_do_locks() got accidentally added in main drawing loop,
causing an infinite loop of redraws when this option was used with more
sequence windows open.

Added missing view2d_do_locks() to zooming in Sequence window. Also
cleaned this call a bit.
2006-06-04 16:26:02 +00:00
f2cfb886d6 * Fixed bug #4000 (can't select horizontally flipped sequence effect strips).
Just needed a check if start > end.
2006-06-04 15:00:24 +00:00
14ede28c56 ==Sequencer==
Bugfix: If you use the IPO-pinning feature and edited an IPO that wasn't
  highlighted as the current Sequence (current Sequence being a Metastrip),
  you'll get obscure crashes, since the code
  a) was mistakenly using last_seq
  b) didn't test for se->ok != 2, thereby doing double frees on imbufs

  Am I the only one, who wants to remove the last_seq global completely... ?
2006-06-04 13:46:51 +00:00
Ken Hughes
cc28a00d15 ===Python API===
Patch to add 'NoSpecular' to Lamp.Modes constant dict, submitted by Jonathan
Merritt.  Thanks!
2006-06-04 13:16:31 +00:00
91181b0e63 bugfix #3679 YFexport relative path on linux 2006-06-04 02:54:59 +00:00
3a0274769b Bugfix for crashes when rendering with yafray when the render
size was not 100%
2006-06-04 01:29:41 +00:00
a6c97c90fb Rotation constraint update.
Small fix, but results are at least less frustrating now. It uses the
"compatible euler" function from inserting key positions here, preventing
euler values to be constrainted that differ weirdly.

I've tried several other approaches to get a definite rotate constraint,
but only constraining a single axes seems to me impossible magic still...
2006-06-03 17:21:45 +00:00
9ab30b4acb Patch from Fred van Essen: six new blending modes.
http://mediawiki.blender.org/index.php/BlenderDev/BlendingModes

Functional in Node editor and Material Ramps.
2006-06-03 13:26:39 +00:00
71f349e9dd Plumiferos bugfix:
The new (months ago) added option for "Local Constraint" always copied
and restored a PoseChannel quaternion, that disabled the required
normalizing of quaternions.

Only visible when you manually draw Ipo Curves, but it's probable that
it showed in other cases too.
2006-06-03 11:49:30 +00:00
2ac16224d1 Bugreport #3891
Object Layer Ipos didn't work when the Ipo was moved an Object Action.
Can't get this to work though... this option has been added with a lot
of exception handling already, and for action/nla it's very nasty to
blend/mix/add layer bit values. So; better not support that.

As feedback for users, I've added a notice popup when you try to move
layer-ipos to an action.
2006-06-03 10:08:16 +00:00
bc7b4988d0 Plumiferos request
Compositor:
Viewer Nodes inside of Groups now work too. To not frustrate interactive
speed, the following rules apply:

- Making a Group editable (or closing) doesn't signal recalculation of
  composite
- clicking on an Input socket always checks changes and calulcates
- When there are Viewers inside an edited Group, Viewers in the main tree
  are not executed.

Also added: a "hide unused sockets" icon in the header of Viewer nodes.
This allows cleanup of Groups, to prevent these sockets get reveiled.
2006-06-03 09:19:10 +00:00
6f44fc5c1a Added an option to OBJ import "As Instance" - so people can import all the objs objects into a new scene and have a group instanced in the current scene.
some extra details in Epydocs about how groups work.
2006-06-03 07:46:56 +00:00
a4817c518c added basic docs for rbFriction and rbRestitution 2006-06-02 23:26:41 +00:00
9c2707572a added friction and restitution for the Collada Physics export/import
See http://colladablender.illusoft.com
2006-06-02 20:59:29 +00:00
6f1c45ced4 Plumiferos bugreport:
Appending a Scene, which had group-objects, accidentally linked these
objects to the active scene too. This was a mixup with the case of just
appending a group.
2006-06-02 20:48:22 +00:00
Ken Hughes
d631abe4fe ===Python API===
Define macros for Py_RETURN_TRUE and Py_RETURN_FALSE (for Python 2.3).  Also
make Py_RETURN_NONE macro a little safer.  Current macro will not work as
expected in situations like below since it expands to two C statements:

	if( !attr )
		Py_RETURN_NONE;
2006-06-02 19:42:09 +00:00
d40c1fc203 Bugfix:
- OpenGL render didn't display the render buffer
- OpenGL anim render always exported to movie, now it supports formats like
  normal renders.
2006-06-02 17:45:49 +00:00
db0f3846a5 Disabled the combination of "Border render" and "Save buffers" for now.
The latter uses OpenEXR tile-based files, but the EXR spec doesn't allow
tiles to differ in size... limiting the amount of OK resolutions for
images.
2006-06-02 16:01:25 +00:00
aecb5b468a Bugfix #4257
The "Laplace" filter in Compositor didn't do what it should... which is
a mild edge detection, similar to Sobel etc.
2006-06-02 13:19:48 +00:00
69546bcf08 Bugfix #4259
Static particles, drawmode Shaded or Texture, colors for strands were wrong
2006-06-02 12:34:09 +00:00
703d4baadb Wrong return and else combo... gave gcc warning. 2006-06-02 10:55:21 +00:00
7df985be0a I'm not sure if I'm allowed to do this, but I'm hoping this is ok...
I have been able to compile blender on linux 64 without problems up to a
month ago, but a recent change is giving me problems, and probably others
as well (on linux 64 at least). But if not, this commit shouldn't change
anything.
The problem was an added pad variable to RenderData in DNA_scene_types.h,
in a somewhat problematic place, since it causes the compiler to pad the
struct at the 'ListBase layers' variable, a struct of two pointers,
which caused me all sorts of trouble, variables declared after this having
incorrect or incorrectly assigned values.
This commit fixes this.

In makesdna.c is a useful section which will write a c program called
'padding.c' which compares the actual size to the expected size, which
for the RenderData and Scene struct in this case had a difference of 8.
Also useful was the gcc -Wpadded warning flag.

Hopefully I don't get 'fired' for this... ;)
Now back to fixing the yafray bugs...
2006-06-02 03:39:03 +00:00
Ken Hughes
1d6e626073 ===Python API===
addProperty() and removeProperty() were each defined twice, because each
could be called with different inputs.  Hence only the second definition
was showing up in the documentation.  Both descriptions are merged now.
2006-06-01 18:27:57 +00:00
46927c0a57 * Whoops, committed something I shouldn't have in the last one. Reverting.
* Added 'Make Local' to the menus. Also a minor capitalisation tweak.
2006-06-01 09:03:43 +00:00
fd79bd2608 * Theeth must be busy so I removed the 'Steps' from the timeline and changed it
to a number field in scene buttons.
2006-06-01 08:54:45 +00:00