Commit Graph

10678 Commits

Author SHA1 Message Date
Joshua Leung
088c3083a3 Bugfix:
When transforming on one axis in a 2d-editor, it no longer mentions 'global' in the header print.

Un-related note: the mmb constraint selection in 2d-editors is currently quite wonky, as the current code for this only suits the 3d-view.
2007-10-09 07:49:54 +00:00
Joshua Leung
f9535b4eb5 Bugfix #7482:
Trackball transform did not work correctly for "individual centers" pivot mode in face-select mode. It was missing a case that would allow this happen.
2007-10-09 06:21:26 +00:00
Joshua Leung
3a6494c4b8 Bugfix #7489:
Warp Tool (Shift-W) suffered from 'division-by-zero' (TM) problems when there was only one element (selected object or selected vertex) to transform.
2007-10-09 05:54:31 +00:00
Campbell Barton
a89db366a0 made sure sequencer header is always visible 2007-10-09 00:54:37 +00:00
Campbell Barton
80af4ce69d Sequencer
changed teh way single images operate,
* they dont act like a sequence of 1 image - so you can drag and resize without the trouble of having teh center image.
* they draw without the single frame in them. and no 'gutter?' strip drawing.
* the start frame is always set to be where the handles start.

This is done in the transform and draw areas of the sequencer. added 2 functions,
fix_single_image_seq - moves the seq start without any visible change - so it will load in older blend's
check_single_image_seq - quick way to check for single image.
2007-10-09 00:22:59 +00:00
Campbell Barton
7d82b77209 Sequence editor,
rewrote the part that deals with moving the strips on the X axis - only user visible functionality is that you can move the seq bounds in one step now.
internally added macro's to make dealing with sequence's less touble.
2007-10-08 23:38:50 +00:00
Matt Ebb
74f744010b * Patch #6877: Zoom to Mouse Position
by Fahrezal Effendi (exavolt)

This adds an additional preference to the view and controls section, which uses the mouse's position as the centre of the zoom when zooming in the 3D View with Ctrl-MMB or the mouse wheel. It's very nice for big scenes, thanks Fahrezal!

A nice todo would be to add this for 2D views as well.
2007-10-08 22:17:51 +00:00
Matt Ebb
ca1ea2ce65 * Replaced some hard-coded 10000.0 with MAXFRAMEF in the Image sequence node 2007-10-08 22:14:22 +00:00
Kent Mein
d2ecbefa16 This is a fix for the following bug:
7096  	bitfields not c++ standard compliant, can't compile using sun CC

Kent
2007-10-08 19:07:50 +00:00
Campbell Barton
c535939726 gridsubdiv was not initialized properly 2007-10-08 17:37:04 +00:00
Campbell Barton
0b9f1be464 UV Editmode
made UV face selecting into a generic function that respects UV sticky modes.
moved this out of lasso so border select uses too.
2007-10-08 15:13:07 +00:00
Matt Ebb
2062aa6838 * Fix for NLA with Map Old/Map New
NLA wasn't getting the correct strip start/end times when Map 
Old/Map New was being used. This fixes it and makes the animation
get scaled properly.
2007-10-08 09:24:29 +00:00
Peter Schlaile
9087ff2dec == Sequencer ==
Raised the number of prefetch frames for people with a _lot_ of memory :)
2007-10-07 14:42:14 +00:00
Joshua Leung
d6c4abb56f Removed a variable that wasn't really needed
(Note: gcc doesn't give any more compile warnings about the new code here, but other compilers may)
2007-10-07 09:21:28 +00:00
Campbell Barton
36ebd78cfd minor change to UV lasso select - dont need to index verts twice 2007-10-07 09:16:08 +00:00
Joshua Leung
c60cc6ac85 == Anim Editor Transform ==
Restoring the 'force redraw' functionality, which is only active when the 'lock' icon on the header of the respective editor is turned on.
2007-10-07 08:44:14 +00:00
Campbell Barton
8703dd9f52 This did not work how brecht intended - shared location sticky mode first uses the vert then checks the locations match, not just the locations.
updated lasso tool to support this.
2007-10-07 02:49:03 +00:00
Joshua Leung
e96b27dd72 Action Editor - Sliders Bugfix:
Pasting values into/onto sliders in the Action Editor didn't insert new keyframes for the related channels. 

I've added a one-liner to the interface/buttons code which calls the button callback upon pasting values, thus fixing this bug and perhaps some others in the future. This shouldn't cause any problems in general (I haven't seen any yet!).

Thanks to venomgfx (Pablo Vazquez) for reporting this.
2007-10-05 09:03:37 +00:00
Joshua Leung
a41da4fe11 Some code cleanups:
* editaction.c - merged the functions for channel properties (renaming, slider limits, protect/mute, etc.) 

* blenlib
- added a new function BLI_findindex which finds the index position of a given item in a list. It will return -1 if it can't find the item 
- tidied up code formatting so that (the bits I have checked) have a single formatting style instead of a few different ones
- added a few paranoia checks for NULL in one of the listbase-related functions
- removed some half-dutch variable names still lurking around
- culled a few compiler warnings... there are still two in util.c related to (const char *) and (char *) type things
2007-10-04 10:50:15 +00:00
Joshua Leung
ee15957f04 Fixing incorrect tooltips for bone layers in Buttons Window 2007-10-04 09:30:52 +00:00
Joshua Leung
476ebfc5d0 Bugfix for Move Bone to Layer:
The case for EditMode needed to occur before the one for PoseMode as PoseMode can still be 'on' for an armature even while it is in EditMode.
2007-10-04 09:20:01 +00:00
Joshua Leung
4e7128f5fd Added menu entries for armature/bone layer changing 2007-10-04 01:36:12 +00:00
Jens Ole Wund
7c4955ee04 bug fix #7399 crash with certain Physics button settings
-- on the fly allocating of ob->pd data was missing in SB_II panel .. still is ugly that .. shudder
2007-10-03 21:01:14 +00:00
Matt Ebb
3a46c74a6e * Fix for bug #7445, black dots when using Constant QMC AO sampling
Was a bit of a typo that only showed up when ao samples UI value was less than oversample level
2007-10-03 14:55:00 +00:00
Campbell Barton
d3382b8d1f UV EditMode
-lasso tool now respects sticky selection setting when used 
with face 
mode
-use constants for sticky value.
2007-10-03 10:36:04 +00:00
Joshua Leung
ba1f2248d0 Weekly purge of compiler warnings 2007-10-03 03:50:46 +00:00
Joshua Leung
5d660bba71 == TimeLine ==
Added an option to only display keyframes of the selected action-channels and/or the active material. This is should offer some speedups on really heavy datasets. Use the (View)->(Only Selected Data Keys) option to turn this on. 

In future, more filtering options could be added here too...
2007-10-03 03:48:04 +00:00
Joshua Leung
f18c673943 == Armature Layer/Move Bone to Layer Popups ==
This commit adds a few quick tools for riggers. In Editmode for Armatures, I've added the popups that show up in PoseMode when Shift-MKEY and MKEY are used. This should speed up the workflow a bit, by requiring less trips between the 3d-view and the buttons panel, as well as providing a 'batch' move-bones-to-layer functionality.

Usage Notes:
* MKEY - move selected bones to layer(s)
* SHIFT-MKEY - change the currently visible armature layers
* CTRL-MKEY - mirror selected bones
2007-10-03 00:05:34 +00:00
Peter Schlaile
df46549325 == Sequencer ==
Added include compiler switches for windows to make pthread.h accessible
and reverted Joshua's patch.
(Joshua: the prefetch buffering has _nothing_ to do with FFMPEG!)

If this still does not fix the problem, please send an email to me!

I also fixed 
source\blender\src\sequence.c(1405) : error C2275: 'PrefetchThread'

GCC is way to gracefully in latest versions... :)
2007-10-02 12:36:53 +00:00
Joshua Leung
5359507859 Patch #7436 by Changlin Zhou (shzhc):
The patch submitter found a case where freed memory was being accessed again later. Fortunately (or unfortunately), this bug has not shown itself so far, and has therefore been easy to miss. In fact, somehow, everything still manages to work correctly without it.
2007-10-02 11:19:01 +00:00
Joshua Leung
440be7b8c2 Bugfix #7437:
Bumped the version-patch for constraints recode from 2.44.3 to 2.45.
2007-10-02 11:14:12 +00:00
Joshua Leung
301c767a9f IPO Transform Bugfix:
When IPO-Keys were being shown, the y-values of the keyframes should not change during transform.
2007-10-02 10:59:02 +00:00
Joshua Leung
d5fe701370 == Bone Size Transform Tool ==
Fixed a few bugs with the Alt-S transform tool when the armature drawtype is set to B-Bone:

* Transform constraints seem to have been turned off for this sometime in the past few weeks. Re-enabled this.
* Numeric input for this tool was not working correctly. You could only set the value of the x-axis width only. Also, giblish was being displayed for the other channels
* The char array used in the BoneSize function was smaller than the one used in the headerBoneSize (new function added for this transform mode instead of reusing some old one).

Also, I've added some menu entries for both Alt-S tools in editmode, which did not exist in the past. How were the users supposed to figure this out???
2007-10-02 10:45:22 +00:00
Andrea Weikert
565570058f == imagebrowser ==
- activated image browser for texture databrowse (texture buttons)
- activated image browser for brush texture databrowse (+small fix of callback function)
- activated image browser for image databrowse in UV/image editor
- fixed: filter didn't work with databrowse and append/link. 
- filter buttons in header now don't appear when doing databrowse or append/link
- loading previews for textures added when linking/appending.
2007-10-02 09:11:50 +00:00
Joshua Leung
27b239f89c Bone/Envelope Size Bugfix:
When in envelope draw-mode for an armature, it would not be possible to change the envelope distance of a bone using Alt-S if the distance was 0.
2007-10-02 06:30:33 +00:00
Joshua Leung
9bfcbe9505 Action Editor - Sliders Bugfix:
The Action Editor slider callbacks were missing depsgraph update calls, so the 3d-view wasn't correctly updated after using to sliders to add keyframes
2007-10-02 00:43:35 +00:00
Joshua Leung
e1ebf22921 sequence.c - compiling bugfix/hack
When compiling Blender without FMMPEG here, compiling broke on this file after the prefetch buffering commit. I've added some #ifdefs to fix this in the meantime, but Peter should check.
2007-10-02 00:00:06 +00:00
Daniel Genrich
261597835a Bugfix #7371 2007-10-01 23:13:48 +00:00
Campbell Barton
dff6276711 made changing mesh vert/edge/face modes redraw the image view since,
draw verts and faces in UV mode when face select is enabled but syncing 
with the mesh selection is not.
2007-10-01 09:51:45 +00:00
Joshua Leung
387d05aaef IPO Editor Transform - More bugfixes:
* Rotation/Scaling now use the correct center-point. The helpline is now drawn correctly too for this 

* For Rotation in UV/IPO editors, constraints are now disabled as they didn't make sense
2007-10-01 08:10:08 +00:00
Peter Schlaile
5b1d669006 == Sequencer ==
This patch adds prefetch buffering to the sequencer
(see the tracker for additional details:

https://projects.blender.org/tracker/?func=detail&aid=7307&group_id=9&atid=127
)

We create seperate render threads (currently one, because of the fact,
that sequence rendering modifies global structures...), that
render up to the defined userpref value "Prefetch frames" in advance.
(Pressing Alt-A will _first_ fill the buffer and then start playing.)

Bassam and I did some extensive testing, so it should work.

If you don't configure your number of prefetch frames, prefetching is disabled!
(Sane defaults... :)

Also: if the machine is definitely too slow and runs out of the prefetch
area, prefetching is disabled automatically and we are back to good old
frame skipping mode.

My Dual Athlon is able to handle 4 parallel DV streams at once (sometimes
a little bit choppy, but prefetching is never disabled!)

I fixed also a long standing bug in the audio code, that made playback run
backwards at the beginning...
2007-10-01 08:03:11 +00:00
Joshua Leung
2182f53a9a == IPO Editor Transform ==
* It is now possible to rotate the Bezier controls for the IPO Editor (RKEY)
* IPO Record has now been remapped to Ctrl R.
2007-10-01 07:10:50 +00:00
Joshua Leung
4205924168 == IPO Editor Transform - Bugfix ==
This commit fixes one of the bugs mentioned yesterday. Now cancelling a transform will result in the right behaviour.
2007-10-01 03:11:11 +00:00
Joshua Leung
6833fa4148 == IPO Editor Transform Refactor ==
As with the Action and NLA editors, I've refactored the transform code for the IPO editor to get rid of the special (and clunky) transform loop that had been created. The approach this time is closer to the one taken for the UV/Image editor.

What's New/Will-be-possible-in-the-future:
* Numeric input now works for the IPO editor
* Proportional Edit support for the IPO editor will eventually be added. 
* Rotation (hopefully), once some hotkeys have been remapped

Known Problems:
* If a keyframe moves past neighbouring keyframes and the transform gets cancelled, it doesn't get restored correctly. This problem is quite icky to resolve (I've got a large hack for this, but that currently segfaults randomly).
* When scaling, the dashed-line (helpline) is drawn from the wrong starting co-ordinates. This does not affect the actual scaling though
* Trying to scale BezTriples with autohandles still doesn't work if either of the handles haven't been transformed yet. This behaviour was already present prior to this commit.
2007-09-30 11:43:16 +00:00
Campbell Barton
b47c75953b - rewrote UV Stitch, (seperate from limit stitch now), does much less
work for same results.
- UV Stitch with the V key was not working (as stated in the menu)
- Rotate UV's and Colors now have an option for CCW (was in the menu 
but not implimented)
- Draw face dot in UV when in face mode
2007-09-30 08:28:15 +00:00
Mal Duffin
51b56a4d3f GE Patch by Hamed Zaghaghi - Adding Motion Blur to the Game Engine.
I reviewed the code, suggested an update ( initialising accumulation buffer ), and tested the resulting update successfully.

It's great to see more GE developers!GE Patch by Hamed Zaghaghi to add motion blur to the GE ( using the accumulation buffer ).

I reviewed code and tested, gave some feedback ( initialising accumulation buffer ) which was implemented straight away, and re-reviewed.

It's great to have another GE coder on the team!
2007-09-29 18:51:01 +00:00
Geoffrey Bantle
ae40a1d86e -> Active face wasn't getting set properly on editmode exit
Active face was being set for the editmesh instead of the mesh on editmode
exit. Fixed.
2007-09-29 05:49:51 +00:00
Joshua Leung
1ea472a903 Bugfix:
For transform in UV/Image editor (and soon, the IPO editor), transformations on 'local' axes (i.e. GXX, or GYY) won't work. Therefore, I've disabled this for those cases.

Note: A small part of the IPO editor transform-code port is in this commit too.
2007-09-29 03:52:25 +00:00
Ken Hughes
6fd43fd68a Python API
----------
* changed a few hardcoded low frame limits in wave modifier to use MAXFRAMEF
2007-09-27 23:42:21 +00:00
Joshua Leung
b8deeb934a Bugfix #7419:
Adding missing NULL checks for the Geometry Targets feature for Constraints.
2007-09-27 23:36:17 +00:00