Commit Graph

16327 Commits

Author SHA1 Message Date
Nicholas Bishop
7fe8ea861a == Sculpt Mode ==
Fix for bug #6556, Sculpt draw/inflate brush strength is dependent on object scale value

Added a scaling factor to brushes that adjusts for objects which have been scaled. Usually this means that the vertex locations are also scaled up or down.
2007-04-16 05:57:06 +00:00
Brecht Van Lommel
29932487c4 Fix for bug #6461:
quadToTriangle() crash, was a missing depsgraph update.
2007-04-15 15:33:17 +00:00
Joshua Leung
85b4034365 A few little tweaks to NLA editor when transforming keyframes, so that it now in line
with what the Action Editor is now doing.
2007-04-15 11:23:21 +00:00
Joshua Leung
185a7799a0 == NLA Editor - Auto-Blending for ActionStrips ==
This is just a little time-saver for NLA-workflow. With the 'Auto-Blending' option
turned on in the Transform Properties (NKEY) for an ActionStrip, that strip's blendin/blendout values are determined based on the number of frames that the previous and/or next actionstrip(s) on overlap over the start and end of it.

It is turned on by default for new actionstrips added using the Shift-N hotkey.

Caveats:
* Only the actionstrips immediately on either side of the strip being evaluated, will
 have any effect
* A strip that is longer-than, and extends over the sides of the strip being evaluated,
 will have no effect

Additional Notes:
* Blendin/Blendout have been renamed In/Out in UI for brevity
* Button layout in NLA Transform Properties has changed slightly again, but hopefully that shouldn't be too much of an issue.
2007-04-15 09:48:53 +00:00
Martin Poirier
c9a54805a5 === Transform ===
Fixed a bug with PET with connectivity, Mesh Face Select mode and Individual Centers.

Those three together could give negative factors, which is a big no no (this is due to some approximation in the connectivity code). Clamping the factor makes everything fine.

Bug reported by someone on BA
2007-04-14 20:56:24 +00:00
Nicholas Bishop
16be2ce5ba == Multires ==
Possible fix for bug #6208, Blender crashes in sculpt tool

* make_orco_mesh_internal was using the render level rather than the pin level to create orcos

Note that since this bug never caused a crash on my system, I can't confirm that this fixes 6208.
2007-04-14 19:54:26 +00:00
Campbell Barton
14e6497d8b import_obj - bugfix, split by groups didnt work.
disabled lamp panel and camera panel from editing lib data
2007-04-14 17:44:50 +00:00
Campbell Barton
c2aec192dc 2 minor changes, when an object is active, dont draw its text highlighted. (previously the active object was always drawn teh same weather selected or not, making it hard to use the outliner to modify the selection)
Show an error if the user types in a library path that dosnt exist. (loading with a missing library path and saving can loose all your objects so a warning is best)
2007-04-14 15:42:51 +00:00
Campbell Barton
0a0cf54a27 update to center view.
- Dont do anything if no verts or faces are selected (used to zoom into 0,0,0)
 - use the centers of dupli objects (should eventually use their bound boxes), much nicer when dealing with many dupli-objects
2007-04-14 13:18:24 +00:00
Campbell Barton
0a411c4704 added missing 'import bpy' from uvcalc_smart_project
removed 2 unused vars from DNA_object_types.h
2007-04-14 10:37:58 +00:00
Ton Roosendaal
61b6f47faf Bugfix #6559
Issue in Blender 10 years ago already:

CTRL+L "Link Materials" reduced total amount of materials in cases, which
it should not.

It now just copies Material links from the active to selected Objects.

Note for developers: see how this now is 3 lines of code, instead of
like 30. I have no idea what I was thinking back then... the current
solution could have been coded back then too.
2007-04-14 10:21:05 +00:00
Ton Roosendaal
12e53df33e Error in commit from Jason for new action sub-channels: selecting keys did
not work anymore (mouse, bkey).

Fix provided by Diego from Plumifiros.

Important note: get_nearest_icu_key() requires to get an array as arg.
Doing it like:

float min, max; get_nearest_icu_key( , , , &min);

is not reliable or correct.
2007-04-13 19:14:20 +00:00
Joshua Leung
99e4e1fcb7 == Action Editor - Individual IPO-Curves Now Shown ==
Continuing on from my previous 'Expandable/Collapsable Action Channel' commit, this commit introduces the ability to show/hide the keyframes in each ipo-curve represented by an Action Channel.

When you expand an Action-Channel by clicking on the triangle beside its name, you will now be presented with options to show/hide the ipo-curves represented by
the Action-Channel, and/or the Constraint Channels belonging to that Action-Channel. Actual ipo-curves will not be drawn in the Action-Editor, but the keyframes
will be shown.

Screenshot:
* http://wiki.blender.org/index.php/Image:244_ActionEditor_SubTracks_01.png

Possibly Coming Soon/Further Work:
* 'Protection' options for ipo-curves (currently disabled in code, as all IPO-related
 tools will need to be made aware of this)
* Sliders for IPO-Curve Channels of the active Action-Channel
2007-04-13 11:15:08 +00:00
Campbell Barton
54efb4c916 external library, block locking spree. Many areas of blender allow changing of library data.
Added checks to the following areas
* half the material buttons
* multires, shapekeys, vert groups
* renaming a linked Object in the links could loose the object on next reload.

Made center functions check for library data as well as changing
the way it works.

Rather then centering all objects in the selection and stopping if it finds libdata, or a multiuser mesh.
It centers all that it can, and reports any objects that didnt center and why.
2007-04-13 09:39:25 +00:00
Robert Holcomb
26735a6670 Added gamma, fixed typos in brightness 2007-04-13 04:22:32 +00:00
Robert Holcomb
f7738575c9 Added brightness/contrast node 2007-04-13 03:23:39 +00:00
Ton Roosendaal
6ec705e54b Bugfix
Node system: new typedefinition system caused button callbacks for group
node not to work.
Since this is not configurable, added it hardcoded. with a "XXX Ugly Hack"
note.
2007-04-12 21:10:19 +00:00
Campbell Barton
4b9bb64897 1 liner, dont go closer then the clipping when centering the view (PADPERIOD) - make centering on a vert a lot more useful 2007-04-12 17:45:37 +00:00
Ton Roosendaal
1b04ee899b Plumiferos report:
Compositor. New ESC feature did not work Ok for groups
2007-04-12 17:22:08 +00:00
Ken Hughes
58c8a821e0 Fix gcc warning about swab() on linux. 2007-04-12 14:51:04 +00:00
Ton Roosendaal
cff81852cd Bugfix #6531
Dupli-verts for mball: when setting "dupli verts" for first time, the deps
graph had to be remade.
2007-04-12 09:35:56 +00:00
Ton Roosendaal
ac8116c4b2 Bugfix #6549
Proxy for Armature: the proxy synchronize was missing local loc/rot/size
vectors, so local constraints did not work.
2007-04-12 08:19:28 +00:00
Campbell Barton
a5990bca11 split draw_dupli_objects into 2 functions (draw_dupli_objects and draw_dupli_objects_color)
so when a dupli is drawn from a set, its selection state wont make it draw selected.

draw_dupli_objects works the same as before
2007-04-12 07:59:14 +00:00
Joshua Leung
8435da4774 Added comments to the pose_copy_menu function (i.e. Ctrl C in PoseMode) for clarity. 2007-04-12 07:22:23 +00:00
Joshua Leung
355fecabe9 Some missing values for theme colours (Action Editor - Long Keyframes) 2007-04-12 07:14:42 +00:00
Joshua Leung
ff38a988ae Removed some un-needed code for Limit constraints from file-reading code. 2007-04-12 06:51:48 +00:00
D.J. Capelis
7470e7efa0 Applying consistent default window behavior across platforms.
Now all windows open in a border as opposed to fullscreen.  blender -W restores
old functionality, blender -w is now default.  This lets each platform's window
manager deal with it's own issues.

As per issue 6391 in the patch tracker.
2007-04-12 06:21:31 +00:00
Campbell Barton
1e5bdbcb2f added another copy option 'protected transform' makes changing the protection values all at once possible 2007-04-12 06:12:17 +00:00
Matt Ebb
ef845af128 * Old old typo fix in Wave modifier 2007-04-12 02:58:41 +00:00
Ton Roosendaal
7f2abaa80c Plumiferos report (2.43 release bug):
Compsitor:
Making groups from Image nodes accidentally reveiled the hidden output
sockets (for when image has passes)
2007-04-11 17:49:08 +00:00
Campbell Barton
43ce435026 the input fields for data name had an inconsistant limit for input fields, making it hard to fix problems with library linking when a name changed.
some were 18, most 19, and others 21. made all 21 since this is the real limit.

Also new image name limit length of input field to 21 (was 255 but shortened to 21)

The one place this could be useful is if somebody names a metaball with a 21 char name, the copy will not use the motherball.
but this is not as bad as having to use the python console for fixing library linking problems.
2007-04-11 17:10:57 +00:00
Campbell Barton
384f7a7875 mesh_wire, fixed error with zero area edges
Holding Ctrl flips the align view in editmode. (patch from BeBraw)
2007-04-11 14:00:11 +00:00
Ton Roosendaal
2d0b69f3c3 Create a new scene did not call a 'countall' correctly. 2007-04-11 13:13:48 +00:00
Ton Roosendaal
1b789314b6 Bugfix #6547
Constraint "limit location" was using type "No parent" without checking
a pointer for NULL, causing crashes on append.
2007-04-11 12:44:03 +00:00
Campbell Barton
5a3ab0e32e Found a bug where "make dupes real" would crash, when the group was an extternal link. - 1 liner fix from Ton.
Also added "sort faces by selection" to the sort menu.


DNA_meshdata_types use C comments for GCC verbose warnings to be quiet
2007-04-10 11:45:07 +00:00
Campbell Barton
a64339d319 Use smoothview For * (align to object) and editmode align to selected. 2007-04-09 12:22:22 +00:00
Ton Roosendaal
c40b36bf53 Patch #6140
Transform Properties panel in 3d window.
New button "Parbone" showing when parent relation is to a specific bone.
This information was nowhere reveiled in the UI until now.

Code remark:
The code isn't getting more beautiful now with all if() options added.
The idea to move the rotation buttons down when a parent bone was set isn't
very good, buttons should stay as much as possible on the same location.
However, I dont have time for a solution either...
2007-04-09 11:43:46 +00:00
Jacques Beuarain
079debe76f CMake: Fix build after nodes changes (including GE linking) 2007-04-09 11:30:06 +00:00
Campbell Barton
525e7ac8d0 smooth view transformations, set the smoothview value to about 250 and the view animates when you switch between side, top etc. 2007-04-09 11:15:23 +00:00
Ton Roosendaal
ad88bfae38 Patch #6325
Cleanup of Logic buttons, for dynamic actors. Plenty of options have become
obsolete with bullet, so not drawn.
2007-04-09 10:52:22 +00:00
Ton Roosendaal
482d0346fe Bugfix #6078
Transform Properties panel in 3d window:
Using TAB on size buttons didn't work well; the code was assuming events
with only 1 change per event.
2007-04-09 10:01:46 +00:00
Ton Roosendaal
c48a676d47 Bugfix #6503
Displacement option for render only works without Nodes (it is calculated
as a Texture effect in advance, not a render option). To illustrate that,
the button to enable diplacement mapping is hidden for Node materials.
2007-04-09 08:49:42 +00:00
Campbell Barton
bd142ac2f4 Anti - NMesh commit.
unweld - warn that this tool destroys MultiUV/Col's (because of NMesh)
API_intro and NMesh - note that NMesh is maintained but deprecated.
2007-04-09 07:03:26 +00:00
Nicholas Bishop
79e3b3b8b0 == Sculpt Mode ==
Added the layers shortcuts (0-9, minus, equals, accent) for Sculpt Mode.
2007-04-08 19:14:22 +00:00
Chris Want
36e3a7bb7e It seems that some darwin bundle creation routines were being performed
when building for cygwin. Please test.
2007-04-08 17:16:52 +00:00
Campbell Barton
76420c2fec appending libdata no longer breaks all external references.
Existing data is flagged with LIB_APPEND_TAG and all_local only has an option to only operate on un-flagged data.

If you append an object thats linked to a material alredy linked in your scene, the material will not be made local.
So at worst youll need to make local some of the datablocks.

This is fairly simple and though my tests show it to work, do some tests on your own libraries before assuming its problem free.


scripttemplate_mesh_edit wasnt updated with PyAPI changes and moved some functions into generic places.
2007-04-07 17:35:47 +00:00
Joshua Leung
4fae78f8d9 Missing ; at the end of a line in initial commit for ClampTo constraint. 2007-04-07 04:25:31 +00:00
Joshua Leung
b1c8a1eefb == Clamp To Constraint ==
* PyApi access to this constraint
* Also, a minor tweak to one of the comments about one of this constraint's variables.
2007-04-07 04:21:12 +00:00
Joshua Leung
655f9a61de == Clamp-To Constraint (was Patch #4818) ==
This (new) constraint limits the location of an object/bone to the range of locations
on a given curve. It works by comparing the location of the owner on one axis, to
the extents of the curve's bounding-box on the same axis, to find the location on
the curve.

Usage Notes:
* 'Ob:' field must point to a valid curve object
* This curve should have 'Path' turned on in order for this constraint to work. You
don't really need to do this as it will be taken care of by the code.
* 'Auto' toggle automically determines which axis should be used for the distance estimations/calculations. It is the default option, but may not work that well for
some cases.
* X/Y/Z toggles can be used to select the axis to use for these calculations. Try
to choose the axis along which the curve stretches out for most.

Python Notes:
Python API access for this constraint is not included in this commit. Will be coming
soon.
2007-04-07 03:32:57 +00:00
Johnny Matthews
999e405543 Save PET state before ripping and disable it, so that post rip transform works better. Restore PET state after finished. 2007-04-06 20:42:17 +00:00