Commit Graph

5938 Commits

Author SHA1 Message Date
Joseph Gilbert
649273e89c *Bugfix
- uninitialized variable used during division.
2006-06-07 15:01:40 +00:00
Peter Schlaile
174cf92473 ==FFMPEG==
This fixes again some segfaults on error conditions.
It also gives some reasonable error-messageboxes if chooses the wrong
DV-format-options.

More to come...
2006-06-07 12:53:51 +00:00
Matt Ebb
efca4752d8 * Updated the preview render scene .blend
- Improved lighting and background (also turned off shadows, unnecessary and
a potential slowdown in generating the preview)

- UV unwrapped the sphere and monkey models, so you can actually see something
useful when a texture is mapped to UV

- Added a 'hair' preview option (reused sphere icon will be eventually
forthcoming)
2006-06-07 08:23:35 +00:00
Kent Mein
2222e4cbc1 Made it so avi code handles "dropped frames"
some avi's have 0 sized chunks that we were not handling properly.
(Need to basically rewind the avi to previous frame in this case)

http://www.cs.umn.edu/~mein/blender/avi/examp.avi has 25 frames,
4,7 and 9 are "dropped frames"

blender use to crash on these now it displays the frame before it assuming
there is one.

Kent
2006-06-06 18:55:55 +00:00
Ton Roosendaal
8bc6697978 Fix in commit I did of May 29
To enable python to change border while render, I moved the initialize
call inside of the main loop that went over the frames.
Forgot to do move the movie-initialize call as well... which now got
called with zero'ed values.

Thanks Peter Schlaile for the poke!
2006-06-06 18:45:55 +00:00
Ken Hughes
e77112f76b ===Python API===
added len() operator for MFaces, which returns number of MVerts.
2006-06-06 18:14:31 +00:00
Campbell Barton
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
Campbell Barton
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
Alfredo de Greef
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
Ton Roosendaal
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
Alfredo de Greef
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
Peter Schlaile
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
Ton Roosendaal
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
Ton Roosendaal
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
Matt Ebb
4612605786 * Woops, a debug printf slipped through. Removed. 2006-06-05 16:01:00 +00:00
Matt Ebb
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
Andrea Weikert
10bc192604 - small fix: image icons are now drawn without the white background 2006-06-05 13:08:54 +00:00
Andrea Weikert
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
Ton Roosendaal
6d98cce4a6 Blend method fixes by Fred van Essen.
Also renames "Lightness" to "Value".
2006-06-05 09:55:39 +00:00
Alfredo de Greef
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
Matt Ebb
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
Matt Ebb
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
Campbell Barton
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
Campbell Barton
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
Martin Poirier
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
Peter Schlaile
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
Ton Roosendaal
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
Ton Roosendaal
86af9a0065 Fix #4269
Using displacement mapping caused VectorBlur (speed vectors) to go haywire.
2006-06-04 17:22:19 +00:00
Ton Roosendaal
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
Ton Roosendaal
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
Matt Ebb
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
Peter Schlaile
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
Alfredo de Greef
91181b0e63 bugfix #3679 YFexport relative path on linux 2006-06-04 02:54:59 +00:00
Alfredo de Greef
3a0274769b Bugfix for crashes when rendering with yafray when the render
size was not 100%
2006-06-04 01:29:41 +00:00
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
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
Campbell Barton
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
Erwin Coumans
a4817c518c added basic docs for rbFriction and rbRestitution 2006-06-02 23:26:41 +00:00
Erwin Coumans
9c2707572a added friction and restitution for the Collada Physics export/import
See http://colladablender.illusoft.com
2006-06-02 20:59:29 +00:00
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
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
Ton Roosendaal
69546bcf08 Bugfix #4259
Static particles, drawmode Shaded or Texture, colors for strands were wrong
2006-06-02 12:34:09 +00:00