Commit Graph

47594 Commits

Author SHA1 Message Date
Joshua Leung
ac750cf7a2 * Numeric input now works better for TimeSlide
* Removed a compiler warning
2008-03-09 03:41:13 +00:00
Campbell Barton
6f1b47d6af added snap cursor->active and adjusted snap menu order in toolbox and header menu's 2008-03-08 21:57:15 +00:00
Campbell Barton
027277fce0 * Bakeing fix for apricot, stop pixels being extended for parts of the image that are not being baked (useful for multiple objects)
* Added support for baking alpha, as well as extending alpha margins.
2008-03-08 21:35:38 +00:00
Ton Roosendaal
d7ef04a519 Long on the wishlist, quite simple even, and there it finally is:
Compositor:
  Muting option to temporary disable/enable nodes.
  Hotkey: press M on selection. It toggles.

Note: no menu entry yet, and drawing style could be tweakered...
2008-03-08 19:02:08 +00:00
Joshua Leung
19ec73c908 Bugfix:
Time-Slide transform tool in the Action Editor now works as well as it did before the Action-Keys transform refactor. However, numeric input is now broken as a side-effect of this.
2008-03-08 11:08:24 +00:00
Ricki Myers
b5cdd1f2d6 Changed getClipbaord and putClipboard functions to be more ghost like
Changed getClipboard to GHOST_getClipboard and putClipboard to GHOST_putClipboard

Removed ghost calls from blender and added the calls to winlay.h and ghostwinlay.c
This cleand up casts in drawtext.c
2008-03-08 04:22:52 +00:00
Joshua Leung
b1fcb254c4 * Clicking on constraint-buttons should now result in updates in the 3d-view without needing to move the mouse into the 3d-view first
* Added missing include
2008-03-08 03:02:36 +00:00
Joshua Leung
3e8b4ed8b6 The BUTM button type (used for 'R' button in StretchTo/LimitDist constraints) now acts like a button when clicked on. 2008-03-08 02:38:35 +00:00
Joshua Leung
b13cd8226e Bugfix #8478: Constraints PyApi for setting targetspace non-functional
Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant. 

For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target. 

Constraints C-API note:
get_targets function now needs to return the number of targets the constraint can have
2008-03-08 02:16:37 +00:00
Janne Karhu
21dd86a159 Fix for bug [#8465] particle children for emitter particles doesn't render
-cached step didn't react to rendering and create child particles
-now emitter particle children can use the render amount too
2008-03-07 23:08:15 +00:00
Janne Karhu
64e76e7e02 Fix for bug [#8402] Hair particles don't react on changing of curve guides
-guide calculation was accessing wrong pointers in hair calculation
-now guides also respect the "apply effectors to children" - button, but not the "stiff" value
-disabled guide calculation for initial hair calculation as it's all done dynamically later
-few useless commented lines cleaned out
2008-03-07 22:39:54 +00:00
Campbell Barton
205ad1580c own missing null check 2008-03-07 22:39:45 +00:00
Campbell Barton
ff2cf42621 bugfix for [#8433] Retopo doesn't work with AutoMerge Editing.
Disable retopo while snapping, then run after. This means automerge happens first which is more useful.
2008-03-07 22:01:52 +00:00
Brecht Van Lommel
5b3dc15880 Normal map tangents are now not always averaged at vertices anymore,
but only when the UV's are connected. That fixes some artifacts when
baking and using tangent space normal maps. It does mean increased
memory usage because it now stores 4 tangents per face like UV's,
and increased processing time, but there's no simple way around that.
2008-03-07 15:38:56 +00:00
Campbell Barton
f13dc2aac1 snap menu order change, as suggested by Theeth, fix for own error with Window.TestBreak() 2008-03-07 09:33:18 +00:00
Joshua Leung
b4e13ae575 Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3)
* uninitialised vars (1)
* unused vars (1-2)
* assigning/comparing pointers and ints (numerous)
* etc.
2008-03-07 03:24:23 +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
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
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
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
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
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
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