Commit Graph

11975 Commits

Author SHA1 Message Date
Geoffrey Bantle
5ea3956e4e -> Light points vert normal bug and DOF fixes
If light points are not given a unit normal they will
not show up correctly in some applications. Further DOF
nodes were not being exported correctly.
2008-03-07 02:40:12 +00:00
Stephen Swaney
7a3c9bb5d1 Remove extraneous class qualifiers for gcc 4.2 / 4.3 on OSX.
Thanks go to jensverwiebe via IRC.
2008-03-07 01:19:36 +00:00
Campbell Barton
26c45844ac Attempt to fix [#6757] linked objects made "local" still not editable
But not sure exactly what the user is doing.
Made game logic work on linked objects and disabled "Add Material" for linked mesh data.
2008-03-06 23:45:17 +00:00
Campbell Barton
955e1b7ba0 PyAPI - Window.TestBreak() - True if the user pressed escape. 2008-03-06 22:45:11 +00:00
Ken Hughes
ff63ac4bcd Python API
----------
Bugfix #8472: texture.image setter did not accept None to remove an image, or
set the image type once an image was assigned.
2008-03-06 21:43:22 +00:00
Campbell Barton
08f306c81c Made python scripts save and load in the blend file so you can have the same scripts running when you open a blend file.
Also scripts will re-run on undo rather then closing.

This is done by saving and loading the name of the script or textblock of the 'Script' datablock, connected to the ScriptSpace. This way when there is a name but the script dosnt run.
Blender runs the script or text block if available.
2008-03-06 21:25:15 +00:00
Nathan Letwory
3796abf092 * on win32 with msvc USE_OPENAL was defined for the entire source. Made it so that it is defined only there where needed when needed.
* dxguid is necessary only when building WITH_BF_OPENAL=1. I already added the mingw version to our SVN in lib/windows/openal/lib and now I made sure it is linked against only when needed.
2008-03-06 21:01:55 +00:00
Ton Roosendaal
e179b3d98e FSA fix:
If you composite using multiple scenes, the "use FSA" button had to be set
or disabled for each scene. Now you can just set/disable FSA for the scene 
that does the compositing. You can only disable FSA in other scenes if it 
was set before though.

(Any understands these lines? :)
2008-03-06 19:26:44 +00:00
Joshua Leung
0374a3efb1 Bugfix #8477: Reset button for StretchTo/Limit-Distance Constraints Broken
Unfortunately, using BUT instead of BUTM won't work for these buttons. Although they now work, there is less tactical feedback (i.e. button depresses when clicked), and their colouring doesn't suggest to the user that they do something (i.e. grey not 'orange').
2008-03-06 10:02:25 +00:00
Ricki Myers
ed9f3c2a25 Change the current line number to the cursor color when line numbers is toggled 2008-03-06 01:54:04 +00:00
Daniel Genrich
3ebcb39090 Cloth bugfix for jumpy cloth (users were complaining), so the mass can be changed on GUI now (reference: in old blendfiles, mass=1.0 was used) 2008-03-06 01:21:40 +00:00
Kent Mein
18fc43950d I didn't get any comments so I'm assuming its a good idea.
This makes it so the following are equal.
blender -w -p 0 0 500 500   
blender -p 0 0 500 500 -w

Just move initalization for full screen to before the loop starts.
so it doesn't matter where a -p shows up to override fullscreen.

Kent
2008-03-05 21:11:24 +00:00
Chris Want
715a721c4b == Makefiles ==
Patch from GSR to correctly disable processing of po's when
international support is disabled.
2008-03-05 20:58:29 +00:00
Brecht Van Lommel
4037ef7714 Fix for undo optimization commit, compiler error on msvc. 2008-03-05 17:51:35 +00:00
Brecht Van Lommel
94f8db96d9 Bugfix: shaded mode or baking could crash, didn't always create
memarena but it's being used now in more places so needs to be
created always.
2008-03-05 17:19:57 +00:00
Brecht Van Lommel
8b5933af4e Bugfix: crash inserting keyframes with missing pose channel. Also
changed some memcpy calls to memmove since memcpy doesn't allow
the buffers to overlap, but it's probably harmless.
2008-03-05 17:12:09 +00:00
Brecht Van Lommel
4f764637e6 Undo optimization: now big chunks of memory are not written as single
memory blocks anymore, but smaller fixed size blocks, so that diffing
can be more effective. For example helps in sculpt mode when making
only local changes to the mesh, previously it would copy the whole
MVert array for each undo step.
2008-03-05 15:13:41 +00:00
Daniel Genrich
3a7b420ec6 Bugfix for wrong OpenMP flags when using icc (proposed by jensverwiebe via IRC) 2008-03-05 14:58:33 +00:00
Brecht Van Lommel
2e030000d1 Bugfix: recent command line changes broke running with ./blender -w,
was using uninitialized variables.
2008-03-05 11:42:40 +00:00
Ton Roosendaal
f975d29704 Restored code from over a year ago, tests to allow anti-aliased
shadowbuffers. At the time the results were not satisfying enough,
but we now suffer a shadow problem that might well be solved with
this feature.

Problem:
Temporal aliasing of shadowbuffers when small details move (like strands).

In this case it doesn't work to simply increase the shadowbuffer size,
because strands are pixel-sized. Huge shadowbuffers make strand shadows
almost disappear. So... the shadowbuffer resolution has to be not too high.

Instead of increasing the buffer size, we then create multiple buffers,
each on different subpixel positions (a bit like "FSA" :).

So! Shadowbuffer sampling then works as follows;

1) You take multiple samples in the shadowbuffer, on different locations
   inside (or around) the rendered pixel. 
   That option was aready available as "Samp" button in Lamps

2) Set amount of sample buffers. It is default 1, but can be 4 or 9.

The results of setting it to '4' or '9' buffers you can see here:
http://www.blender.org/bf/filters/index3.html

Actually, deep shadowbuffers could solve it probably too! Anyhoo...
2008-03-05 10:03:31 +00:00
Joshua Leung
522dcf5b04 Enabled auto-snap (frame) for all newly created Action Editor instances 2008-03-05 06:11:00 +00:00
Joshua Leung
db85f0f39a * Patch by Leandro Inocencio (cesio) to redraw Action Editor after hiding/unhiding bones
* Fixes for compiler warnings
2008-03-05 03:59:44 +00:00
Ricki Myers
f588900909 Fixed warning in drawtext.c 2008-03-05 03:04:55 +00:00
Geoffrey Bantle
80354af6fa -> Short names fix
Short names (less than 8 characters) were not getting exported
correctly for blender objects with no FLT props attached
2008-03-05 01:31:00 +00:00
Brecht Van Lommel
4ba2162e63 Bugfix: the shadow samplenr increment to reuse shadow results in
the renderer could lead to results being reused for unrelated
points, result was one wrong pixel or strand per part. Now instead
of setting the sample counter to 0 multiple times, it keeps a global
counter per thread for the whole render.
2008-03-04 19:58:22 +00:00
Ricki Myers
8b5a5b71d5 Fix bug where if you selected something then left clicked you would lose the selection buffer.
now when you left click it checks to see if there is text selected
2008-03-04 18:50:02 +00:00
Kent Mein
b7bfa641ca I broke it for the case where -w and -W are not called. This should fix that up as well.
Kent
2008-03-04 18:38:18 +00:00
Kent Mein
a37009f582 Small change in the logic for -w -p The previous changes didn't quite work all the time.
This should simplify things.

Kent
2008-03-04 18:31:57 +00:00
Brecht Van Lommel
fe3e521e44 Bugfix: auto IK + autokeyframe didn't work correct with the don't
inherit scale option yet, scale of the bone would slowly change.
Now it's still not 100% accurate, but that's unavoidable, at least
the effect is much reduced.
2008-03-04 13:33:19 +00:00
Joshua Leung
b2e6520d6e Action Editor - malefico feature request:
Show Selected Action-Channels hidden in groups. Use the hotkey Shift ~  to do so. The name of this feature needs reviewing...
2008-03-04 11:29:32 +00:00
Ricki Myers
6122ee1b21 change error in typing
GlobalLock on line 914
2008-03-04 02:43:51 +00:00
Ricki Myers
ffcbff62dd Added Copy and Paste functions to GHOST.
- Moved WIN32 code to ghost and added code for other systems.
- Added functions getClipboard(flag), and putClipboard(buffer, flag)
    -Flag is used on X11 to request selection buffer or clipboard.
    -If any other system uses flag = 1 the function returns doing nothing.
- Changed ctrl +c/v and shift+ctrl + c/v to do the same thing (use the clipboard).
- Changed the menu items (copy, paste) to use the clipboard.
2008-03-04 00:41:30 +00:00
Campbell Barton
c7d0a2a92a PyAPI: create scene sequence data if its not there when getting scene.sequence 2008-03-03 21:43:31 +00:00
Martin Poirier
1e5f4144b9 [#8434] Normal manipultor does not align with normals (like in 2.45)
Bring back multivert normal average for the normal manipulator/orientation.

When selecting more than three vertice, the averaged normal of all selected is used to get orientation Z-axis.

NOTE: This is only applicable when NO faces are selected, otherwise it uses the averaged normal of the faces (excluding vertice that aren't part of a face). This is not new behavior

CHANGES FROM 2.45: Selecting 2 or 3 vertice doesn't use normal averaging but uses virtual edge and face orientations instead.
2008-03-03 19:57:48 +00:00
Daniel Genrich
156d246462 Cloth bugfix for linked deflector groups (reported by alchibal on #blendercoders incl. source) - please verify 2008-03-03 19:02:01 +00:00
Brecht Van Lommel
b26a767923 Bugfix: displacement with object texture mapping could crash. 2008-03-03 18:53:06 +00:00
Brecht Van Lommel
27c9fb7c6b Fix for bug #8410: dupliframes didn't render. 2008-03-03 17:16:29 +00:00
Brecht Van Lommel
13f70b8077 Fix for bug #8366, render color sampling bugs and inconsistencies:
- renderwindow didn't show values of previous buffer correct.
- renderwindow only showed floats and no char values like image editor.
- renderwindow didn't show x,y values.
- image editor didn't show z values.

Patch to fix these problems provided by Rob Hausauer, thanks!
2008-03-03 16:38:27 +00:00
Brecht Van Lommel
3aeaccb0d8 Bugfix: crash loading texture plugin, instance_init callback added some
time ago wasn't initialized to NULL correctly, in case the plugin was
not available.
2008-03-03 15:56:05 +00:00
Kent Mein
1adc93623c Were path issues with getversion script on some platforms.
Kent
2008-03-03 15:51:55 +00:00
Brecht Van Lommel
3f0cb42682 Fix for bug #8412: clicking to active tabbed panels could still
go wrong with tabbed panels being hidden.
2008-03-03 14:19:58 +00:00
Stephen Swaney
d6151609f9 Minor corrections to help message. 2008-03-03 13:34:31 +00:00
Joshua Leung
6b677bcfab Action Editor - Group Selection (Harkyman Suggestion):
Now, when selecting Action Channel Groups while holding the Ctrl-Shift keys, all of the group's channels are selected. Any other channels/groups are deselected. Likewise, the related bones will also get selected.
2008-03-03 11:03:18 +00:00
Joshua Leung
e96c1aa507 Bugfix:
Constraint Channel keyframes are now transformed when they appear in Action Channel Group summaries.
2008-03-03 10:43:46 +00:00
Brecht Van Lommel
81b9036fbf Bugfix: uv pack islands didn't work on islands without a boundary. 2008-03-03 10:01:36 +00:00
Campbell Barton
54daccda76 updated the notes for blenders help message 2008-03-03 08:55:45 +00:00
Joshua Leung
7af9e824bf * Bugfix #8426: certain hooks options segfaulted
This was caused by my previous commit for add_hook.

* Also, removed a compiler warning in the Python code
2008-03-03 03:21:25 +00:00
Campbell Barton
5b54b519c0 Added a feature to the UV editor- Average UV islands, this averages selected UV islands, in proportion to the faces area in 3d space.
Renamed 'Pack Charts' to 'Pack Islands' (according to google, uv islands is a more common term)
2008-03-03 01:44:35 +00:00
Daniel Genrich
2d02b0d363 Cloth makefiles bugfix which lead in disabled collisions 2008-03-03 00:43:37 +00:00
Daniel Genrich
8dbd6e2b03 Cloth bugfix - stupid typo resulted in missing diagonal springs (reported by nudelZ on #blendercoders) 2008-03-02 23:20:20 +00:00