Commit Graph

7064 Commits

Author SHA1 Message Date
Matt Ebb
67dc5585cb * Added an 'eyedropper' tool in the colour picker. With the colour picker open,
you can click on the 'Sample' button, to sample any colour on the Blender
screen. This is really useful in the compositor, and would probably be good for
sampling footage in any eventual chroma key nodes that may be made, too.

LMB to pick the colour, ESC or RMB to cancel.
2006-06-09 16:01:27 +00:00
Matt Ebb
e8ce6c02d3 * removed an unused variable warning. my bad. 2006-06-09 15:56:29 +00:00
Matt Ebb
5b756f7b8a * preview.blend fixes
The preview.blend now shows raytracing/transparency, and also turns on and off
the fake shadow based on the 'shadbuf' setting.

Also included an updated preview.blend file to accomodate this.
2006-06-09 15:55:27 +00:00
Ton Roosendaal
27bea32b70 Bugfix #4284
Curves Widget: The endpoint condition for calculating the interpolation
had an error, moving too quickly to a constant value (for extending).
2006-06-09 13:04:21 +00:00
Ton Roosendaal
e18e59ee67 Bugfix #4295
Composite: Z Combine node, output socket "Z" didn't do anything, removed it
2006-06-09 12:45:09 +00:00
Ton Roosendaal
77223515a9 Bugfix #4298
Uncommitted the feature I added for Plumiferos to be able to render
animated render-borders (which effectively means every frame can be a
different size).
For several reasons;

- it will crash movie rendering (when image sizes differ)
- it forced code to do a full initialize each frame, also for setting the
  renderwindow (which popped up on each frame)
- the render pipeline was not designed with per-frame python changes in
  mind for image sizes... it uses an "Initialize" stage which is only
  called once for an entire sequence.

That latter might be an omission, but for that I better code a new API
call (for use in Python) so a re-init can be enforced.

The old functionality (animated render borders) will still work when you
render in background, using small steps like blender -s 1 -e 5 -a etc.
2006-06-09 12:21:15 +00:00
Ton Roosendaal
c595112d3d Bugfix #4288
The new Image icon system didn't take care of float images yet, causing
crashes.

Andrea: I also cleaned up some of the syntax...
- try to stick to NULL for pointer values (not 0), reads nicer
- pointer declarations like: int* a, b; is confusing... use: int *a, b;
  it wasn't consistant in code either... :)
2006-06-09 12:00:28 +00:00
Ton Roosendaal
908389b787 Bugfix #4293
And more particle issues... the attempts to allow particle systems to be
part of duplicators (groups especially) isn't easy to get working!
This commit solves regular animated particle systems... they rendered on
the wrong location, using wrong object transform.
2006-06-09 11:15:52 +00:00
Campbell Barton
ed5c132db1 fixed the logic for some of the ifs and remove a unused var 2006-06-09 05:14:16 +00:00
Campbell Barton
c0d594fca5 Fixed a bug when holding down shift before there was any motion.
Doubled the speed of rotation
2006-06-09 04:32:21 +00:00
Ton Roosendaal
2e9b33faa4 Increased sizes of strings in filesel.c
Extreme cases (also old bugs with corrupt relative paths) didn't survive.

Like this string:
"//../../../../../../../../../../../../../Users/yomomma/Documents/../../../../../../../../../../../../../Users/"
2006-06-08 19:55:29 +00:00
Ton Roosendaal
0950a40411 Plumiferos report: Appending objects with ipo drivers, didn't expand to
include the driver object.
2006-06-08 19:26:08 +00:00
Peter Schlaile
af3f454cd8 ==Sequencer==
Added patch by Matt Ebb, that enhances the sequencer GUI in several ways:
- It looks a lot better
- Strip colours are themeable.
- The drawing code is more readable.
- The background of the timeline makes now distinguishing the channels easier
  by alternating between different shades of gray.
- Handle-scaling is clamped to min and max-values, making it possible to
  grab strips at large zooming levels more easily.
- Preview-images can be panned by dragging it with the middle mouse button.
  Home-Key resets the position.
- Since some people can't grab the meaning of "C 0", it is renamed to "Chan: 0"
- Effect strips have slightly different colors to distinguish them better.

Additionally:
- fixed an off by one error in Matt's patch
- Scene-rendering saves CFRA to avoid jumping current-scene on scrub
  (might be academic fix, since most likely it only happens if you add
  the sequencer-scene to the timeline... But nevertheless it bugs you on
  testing the GUI ;-)
2006-06-08 19:05:58 +00:00
Campbell Barton
f6854b4d8e Replaced old fly mode for a fly mode that works in all 3 view types - ortho, perspective and camera (cheating, but its still usefull)
This one uses the 3d perspective view rather then the camera, and is nicer and easier to control then the old fly mode. it also gives some help in the header.
Shift+F to try it.
2006-06-08 18:10:41 +00:00
Ton Roosendaal
863ab755ba Bugfix: "Shaded drawmode" didn't support vertex colors in materials yet. 2006-06-08 10:57:23 +00:00
Geoffrey Bantle
4a1d4653da -> Fix for bug #3867
Face loop cut was failing on meshes with hidden parts. Also modified edge
ring selection code in editmesh_mods.c to ignore hidden parts of mesh.
2006-06-08 05:41:57 +00:00
Ken Hughes
5c95302043 ===Tools===
Previous patch for "problems with STL iterators/vectors that only show up under
Visual Studio 2005" could cause a crash when object used as a boolean modifier
was changed (for example, flipping all the normals).  The problem is that result
of boolean operations (apparently) can result in empty meshes.  Patched to
use the vector::size operator to check for empty vectors before trying to
check the iterator.
2006-06-08 03:10:26 +00:00
Joseph Gilbert
4c802a0a78 *bugfix
-another quick fix. Runtime checks complain that a unused reference being returned from a function.
2006-06-07 15:09:07 +00:00
Joseph Gilbert
8e631bd4b6 *bugfix
-uninitialized variable being returned from a function
2006-06-07 15:04:14 +00:00
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
Campbell Barton
b7b99be387 use f.area where possible over python function and use len(mface) over len(mface.v) 2006-06-07 02:10:10 +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
d435b02930 1 liner, bug that raised an error with textureless materials. 2006-06-06 18:12:29 +00:00
Ken Hughes
b8c6c1fdf0 ===Tools===
Bug "fix" for #3932, and possibly for #3799.  Booleans can get into an endless loop (at least until memory runs out); through triangulation somehow a face is repeatedly added to the list of faces to triangulate.  This patch checks the face list for duplicates prior to a list add and aborts if a dup is found.

The real issue is why the triangulation is creating the face in the first place, but that will take a more thorough (and longer) examination of the code.  If I can fix that issue that prior to the 2.42 release, then this code can be removed.
2006-06-06 17:43:57 +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
Campbell Barton
be2f840c7d Added the option to import as a group instance (creates own scene) - works the same as OBJ Import. 2006-06-06 09:59:36 +00:00
Campbell Barton
f657c05469 JMS Updates the script, and I did some fixes too. now works with more models. 2006-06-06 02:58:36 +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
8466ba9a3a Removed wings support, both apps are free and have good obj support. wings import was not maintainded and would not load some files. 2006-06-05 01:36:32 +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