Commit Graph

3240 Commits

Author SHA1 Message Date
Joseph Gilbert
649273e89c *Bugfix
- uninitialized variable used during division.
2006-06-07 15:01:40 +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
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
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
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
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
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
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
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
69546bcf08 Bugfix #4259
Static particles, drawmode Shaded or Texture, colors for strands were wrong
2006-06-02 12:34:09 +00:00
Ton Roosendaal
703d4baadb Wrong return and else combo... gave gcc warning. 2006-06-02 10:55:21 +00:00
Matt Ebb
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
Matt Ebb
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
Tom Musgrove
bc263b1e84 ==render by parts==
made xparts and yparts consistent in the different places it can be set now python and the buttons are max 64 (was 512 in some python locations) and xparts is max 512 (was max 64 in some python locations), also made the minimum xparts and yparts 1 again.  Ed Halley suggests that we should up the max xparts to 1024 (instead of the current 512) for 'smoother panoramas'
2006-05-31 22:56:22 +00:00
Jiri Hnidek
41855c60cf Bugfix:
list of recent opened file is written to .Blog file, when it is necessary,
 list shouldn't hide now, ... I don't want to rewrite code after intrr
 anymore ;-)
2006-05-31 09:54:26 +00:00
Matt Ebb
90453ef98a * Added Mac OS X text editing shortcuts Command LeftArrow and Command RightArrow as equivalents for Home and End in Blender's text editor. 2006-05-31 04:24:03 +00:00
Geoffrey Bantle
94480594ab -> Fix for bug #4247
The mouse handling code for selecting/deselecting face/edge loops and edge
rings was causing single edges to be selected in face mode when face loop
select failed.
2006-05-31 02:21:08 +00:00
Geoffrey Bantle
a9ac112be6 -> Fix for bug #4162
Bug in buttons_editing.c meant that edge subdivide code was getting called
with wrong arguments when accessed via the edit buttons, but was called
correctly from wkey menu.

Also added Alexander's small fix so that beauty subdivide behaves correctly
when used on non-proportionally scaled objects.
2006-05-31 01:49:05 +00:00
Jiri Hnidek
19c6ad7116 Bugfix:
Open recent should work correctly now, it uses ListBase to store list of
 recent opened (saved) blend files
2006-05-30 13:38:22 +00:00
Ton Roosendaal
7130ab3fe6 Bugfixes 4082 4112 4172 4232
Each report was about a different failure with Particles, all related to
weak handling of animation systems and the depsgraph.

Fix has 2 parts; depsgraph now signals "object recalc" to be for time
changes; this then is used to bypass particle-building (since that's baked).

Other part is better object caching while makig particles.
2006-05-30 12:43:06 +00:00
Ton Roosendaal
5e96159677 bugfix #4251
Hotkey CTRL+ALT+G (manipulater translate) was overridden by group menu.
2006-05-30 07:55:33 +00:00
Ken Hughes
6747501cfe Bugfix #4224 fix:
If G.recent[0] was empty last wasn't initialized, resulting in a segfault.
While I was there, changed strcat() to strcpy() for Alexander :-)
2006-05-30 00:09:55 +00:00
Jiri Hnidek
a21f6abc47 Bugfix #4224:
Blender has Open recent submenu in main File menu, Open recent should
 work correctly now, I remove Reopen last item (I hope, that I didn't
 break anything), because it seems obsolete now
2006-05-29 15:30:43 +00:00
Ton Roosendaal
2c7712dd84 Fix #4245
Old annoyance in Blender; zooming in very far makes scaling/rotate
around invisible pivot going bezerk. The easy fix was just enforcing
floats in integer math.
2006-05-29 13:01:51 +00:00
Ton Roosendaal
a416ec8978 Render window: Jkey (swap display buffers) works as 2.41 again. Meaning,
it keeps storing a previous buffer for as long you don't render showing
this previous buffer.
If you render showing the previous buffer, it stores the current render.

To make this more clear, the window title shows "previous" when it shows
the stored copy.
2006-05-29 08:40:01 +00:00
Geoffrey Bantle
6387c85557 -> UV Edge collapse
Added code to make 'Collapse Edges' handle UV's intelligently. This seems to work in just about every case that I can test, so it's turned on by default.

Also completely removed the 'collapse faces' command and code. I'm not sure what I was thinking with this in the first place since edge collapse does the same job while in in face mode. Because of this there is now just one single command that covers both situations called 'Collapse' which uses the edge collapse code.
2006-05-29 05:17:38 +00:00
Alfredo de Greef
649dcd94bb Yafray 'should' now work again. A bit more testing needed.
But seems to work sofar anyway, composit nodes should work as well.
2006-05-29 03:59:12 +00:00
Chris Burt
b3c1a72c34 Fixed height of two buttons.
(Test commit for my ssh keys and what-not)
2006-05-28 17:45:57 +00:00
Peter Schlaile
82ffa15c28 ==Sequencer==
Bugfix: The "Convert to Premul"-Button was drawn twice for Images...
2006-05-28 12:33:41 +00:00
Ton Roosendaal
2e901061d9 More render pipeline finishing up;
- Shaded drawmode is back (shift+z).
  Note it still only uses orco texture; but lighting/shading is using
  the internal render module entirely.

- "Make Sticky" option back.
  (Also fix in sticky texture render, was wrong scaled)
2006-05-28 11:49:22 +00:00
Ken Hughes
755f5ce070 Fix spelling error in tooltop. 2006-05-27 15:54:17 +00:00
Ton Roosendaal
e5b39b69d1 So! Finally time to work on finishing render pipeline project.
This commit brings back:

- Field Render
- MBlur Render (old style)
- Border render with or without cropping

Note: Field Render is not supported in Compositor yet. Blurring or filter
will destroy field information.
Both MotionBlur as Field render are done before Compositing happens.

Fixes:

- The "Save Buffers" option only worked on single frame renders, not for
  Anim render.
- Found an un-initalized variable in Render initialize... this might have
  caused the unknown random crashes with render.

Code restructure:

Cleaned up names and calls throughout the pipeline, more clearly telling
what goes on in functions.
This is visible in the updated first image of the Wiki doc:
http://mediawiki.blender.org/index.php/BlenderDev/RenderPipeline
2006-05-27 13:35:03 +00:00