Commit Graph

10057 Commits

Author SHA1 Message Date
Campbell Barton
60af30ec8a lightwave_import - tested with many more new files, fixed a rare error (probably bad file)
export_fbx - export lamps, (point/spot/sun), Mesh edges, Dupli'Objects and static particles as edges. bug fix in material export and better reuse of some standard text chunks.
fly mode, added acceleration on mouse-wheel and +/- so flicking the mousewheel has more effect and dosnt feel so slugish.
BPySys.py - cleanName, dumb mistake.
2007-04-21 11:23:45 +00:00
Joshua Leung
6f9e78641c == Preview Range ==
2 Bugfixes:
* EKEY in Timeline changed start frame of Preview Range too. Reported by slikdigit
 on IRC
* SKEY in Timeline also didn't work correct as it was changing the end frame.

New Feature:
* Now OGL preview-render obeys Preview-Range settings.
2007-04-21 03:54:16 +00:00
Joshua Leung
1bb2c03ee6 == Action Editor ==
Now you can also rename channels by holding the Ctrl-Key and clicking on a channel.
2007-04-21 00:08:33 +00:00
Campbell Barton
d76778f0e4 2 new python functions for the NLA.
action.getChannelNames() and action.renameChannel(from, to)

editaction.c - maximum new name length was too short
2007-04-20 23:33:56 +00:00
Campbell Barton
cbfeab7e45 dumb mistake, wasnt UN-setting the flag to zero LIB_APPEND_TAX
Fixed an error that could cause a possible memory corruption,
library filenames were being used to make a menu, but memory was only being allocated FILE_MAX per lib rather then FILE_MAXDIR+FILE_MAX, since lib->name is the full path. was also doing lib->name+2 which isnt needed for a path.
2007-04-20 20:15:54 +00:00
Campbell Barton
c7b1e5c11d export_fbx.py - support scene start/end frames, fpx, mist settings, better default camera writing.
BPyObject.py - function for getting an objects armature, look at both parent and modifier.
editmesh_add.c and BPyAddMesh.py - check for multires
filesel.c, Append/Link had a bug where files linked in, didnt have the LIB_APPEND_TAG unset, and appending these into a new blend file would link instead.
BKE_library.h, library.c - utility functions for flagging listbases flag_all_listbases_ids and and flag_listbase_ids
2007-04-20 18:48:30 +00:00
Andrea Weikert
94b7743dd3 ==== MSVC 7.1 project files ====
- cleanup of the python included files
- update for some recently added files
2007-04-20 16:53:57 +00:00
Jiri Hnidek
2857861023 Buf fix for #6571
- metaball_tree= NULL; was missing in code
2007-04-20 12:56:51 +00:00
Campbell Barton
3fe793f2b5 [ #6442 ] image.repack (Python)
- Modified pack so it can repack too, rather the n raising an error.

editobject - Dont need to recalc data when hiding and unhiding. rather do what layers do and re-sort the scene.
2007-04-19 23:45:33 +00:00
Joseph Eagar
9c36683373 =ID Properties bugfix=
The array resizing function, meant to be used with strings, 
didn't work.  This  is because the id property size table 
had the wrong value for strings.
2007-04-19 22:49:48 +00:00
Campbell Barton
60b3268c32 adding a python function for cleaning strings (for filenames and export names) BPySys.py - used fotr obj and fbx export.
view.c - missed one smoothview/camera.
Brigg's hide object patch didnt change the object selection flag, other minor changes also.
2007-04-19 20:58:09 +00:00
Geoffrey Bantle
f5a40315ca -> Keybindings for hiding objects
Small feature, added keybindings for setting the visibility restriction flags
that were previously only accesible via the outliner

HKEY 		Hides all selected
SHIFT-HKEY 	Hides all unselected
ALT-HKEY 	Shows all hidden
2007-04-19 19:47:51 +00:00
Campbell Barton
238ab04297 update for exporting material settings, everything was exporting green,
now use spec,diffuse,ambient,alpha,shadeless settings as well as some others that match
2007-04-19 17:27:18 +00:00
Campbell Barton
4116599c1f moving from camera view with home and astrix keys now uses smooth view (This should be the last one).
Fix for own error from a wile ago Numpad-Astrix would set to size view of selected faces, rather then front.
2007-04-19 15:02:54 +00:00
Campbell Barton
0f2e46d2be selecting all new faces broke this, fixed and optimized a bit. 2007-04-19 12:31:12 +00:00
Campbell Barton
11c1dbdfbf recent smoothview update broke pan in camera view, some vars used in the function needed to be used after, reverting this change. 2007-04-19 07:58:42 +00:00
Campbell Barton
f9ff47464d remove warnings from last commit.
smooth view now works for change between cameras, smooth view now blends the lens angle too.
2007-04-18 22:53:20 +00:00
Chris Want
2d87ee1ace Added libIlmThead.a to link line to the osx-intel build. 2007-04-18 17:49:42 +00:00
Ken Hughes
85a65081ec Python API
----------
Fix bpy.libraries so that .append() doesn't affect linked data.
2007-04-18 15:34:03 +00:00
Jiri Hnidek
58e1ceadf4 == Python API ==
Bug fix for Effect.setStype().
2007-04-18 15:30:33 +00:00
Campbell Barton
3e1a5ce7a2 PyAPI.
moved bpy into bpy.data and bpy will be eventually replace the root level 'Blender' module.
currently we have bpy.library bpy.config and bpy.data
2007-04-18 14:40:01 +00:00
Diego Borghetti
a59f7c08ce When press ESC in Blur or Defocus node the output buffer is incomplete.
This cleanup the output buffer to execute the node again until it's complete.
2007-04-18 12:39:04 +00:00
Campbell Barton
7767451b2f maving too many objects for the select buffer would crash blender.
added checks for an error value returned from view3d_opengl_select so as not to act on bad data.
also the error message didnt display because of where it was, delayed the error so it displays right.
2007-04-17 19:04:55 +00:00
Campbell Barton
9c8bc4badc Starting blender with -w does not switch of maximize anymore, so with and without the -w arg, the window should start maximized. 2007-04-17 18:15:31 +00:00
Campbell Barton
b95f4ba2ad added a hook menu for object mode, more commands can be added here but currently there is only Reset Offset and Recenter at Cursor
This functionality was requested by malfico when dealing with many hooks.
2007-04-17 16:14:41 +00:00
Campbell Barton
063605b279 Python API registry SetKey() had a limit of 60 that would keep counting up every time you used SetKey() until it would always be 60 and nothing would save.
removing limits for now, no other areas of blenders API have limits like this (even if those limits make sense in most cases)
we may add warnings later.

also use faster dict syntax too.
2007-04-17 14:23:19 +00:00
Campbell Barton
033abf8268 fixed a python-api bug with adding a new image sequence strip crashing blender. 2007-04-17 06:12:26 +00:00
Nathan Letwory
d40a7ba901 * update link to dependencies page. 2007-04-17 05:21:37 +00:00
Joilnen Leite
e8333e36b1 not search openEXR with WITH_OPENEXR=false in linux 2007-04-17 02:34:40 +00:00
Campbell Barton
9170977a80 removed 'reverse' menu items from face sort, instead hold Ctrl to reverse the sort.
added material sort and fixed an unlikely but possible memory leak.
2007-04-16 16:36:39 +00:00
Ton Roosendaal
3f7bcc44ce Bugfix #6565
Nice discovery by Ralf (cheleb): crasher with colorband, caused by NULL
pointer reading. It actually reveiled a weakness in code too, the
buttonswindow context was not set appropriate when buttons window had not
a header...
2007-04-16 10:55:59 +00:00
Matt Ebb
41142b05d2 * Create autosave dir on windows if it doesn't exist
For a long time, Blender has shipped with a .B.blend with a default .B.blend
that has "/tmp" as a default temp directory. This, of course, doesn't usually 
exist on Windows, so anyone who used Blender on Windows and didn't know 
to manually update it, lost all auto save files.

Now on Windows, Blender checks to see if the directory in U.tmpdir exists, 
and if it doesn't, it will create a new 'autosave' dir underneath the .blender
home directory and save auto save files in there.
2007-04-16 07:01:51 +00:00
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
Campbell Barton
a6113b0059 Made X11 use _NET_WM_STATE_MAXIMIZED_HORZ and _NET_WM_STATE_MAXIMIZED_VERT when opening (if -p isnt given as an arg)
gsr and myself both wrote a patch for this, using gsr's.

import_obj - another error in splitting fixed.
2007-04-15 05:01:34 +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
Andrea Weikert
15b4dfba58 ==== MSVC 7.1 Projectfiles ====
- small maintenance: added two new node files to project
2007-04-13 17:16:23 +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
Stephen Swaney
4e66d4e676 fix mashup of CCFLAGS and CXXFLAGS for scons builds.
CXXFLAGS defaults to CCFLAGS which was causing duplicated or
extra compile flags being set for g++.  Fix is to use
env.Replace() rather than .Append() the first time we
set CXXFLAGS in the build environment.
2007-04-13 06:30:34 +00:00
Robert Holcomb
26735a6670 Added gamma, fixed typos in brightness 2007-04-13 04:22:32 +00:00