Commit Graph

22372 Commits

Author SHA1 Message Date
Campbell Barton
ada9ca9687 [#20487] Small bug in 3d window's header in edit mode.
[#20713] vertex, edge and face toggling acts like shift select (in 2.49) with or without shift pressed

revert own changes from 26035
- python buttons were toggles so clicking on 1 didnt disable the others.
- for some reason the layout engine wasnt working right here and made the buttons skilly in localview.
2010-01-30 01:25:02 +00:00
Campbell Barton
dd0db63a5c bugfix [#20721] Reloading scripts crashes Blender (own todo)
made an incorrect assumption that ot->srna and the srna for the registered operators type are the same. caused reload to crash.
2010-01-30 01:10:16 +00:00
Tom Musgrove
2a9bf8d4a7 Removing duplicate bad level call entries, patch from Richard Sanger, thanks 2010-01-30 00:47:41 +00:00
Campbell Barton
3946ae56ac deleting objects which were driver targets would crash blender.
added a utility function BKE_animdata_main_cb
which loops over all AnimData's of all ID's
2010-01-29 21:16:21 +00:00
Martin Poirier
588d3661c8 Make expanding kmi possible even when they are not user defined (makes it possible to see full keymap information even for unmodified configurations) 2010-01-29 19:38:56 +00:00
Campbell Barton
044d568374 edits to 26400
- use the endframe operator property
- dont use the startstill setting, gives odd results (start frame isnt the startframe)
2010-01-29 17:01:53 +00:00
Brecht Van Lommel
812e5140b0 Fix #20549: selecting a texture node in a material node tree would
keep that texture locked as the current visible texture in the
texture buttons.
2010-01-29 16:32:06 +00:00
Ton Roosendaal
e803c03308 Two fixes, errors caused by drag n drop commit:
- Icons for brushes disabled List Box to work (paint buttons)
- Mouse-release in secondary Blender windows didn't get registered
  in window where mouse-press initiated.

And fixed annoyance: adding image strip makes it 25 frames long, so
you can drag and extend it easily.
2010-01-29 16:25:31 +00:00
Campbell Barton
27f715052a minor corrections to scripts 2010-01-29 15:20:25 +00:00
Campbell Barton
e85a023480 bugfix [#19681] adjusting the settings of the 'add torus' tool in edit mode 2010-01-29 15:19:19 +00:00
Brecht Van Lommel
e28e6ac5c7 Fix the underlying problem from the last commit, which was worked
around incorrectly in r24435 before that. freeptr in BPy_StructRNA
was uninitialized when creating bpy.context.
2010-01-29 14:49:21 +00:00
Ton Roosendaal
5abb38e566 Bugfix
OSX 10.5 PPC kept crashing on exit. After blaming bad compiles, bad python libs
and all other reasons (almost was switching to linux!) brecht found the bad line 
in python free code. There was code freeing stuff whilst it wasnt allowed to.

Mac PPC gets hug!
2010-01-29 14:13:40 +00:00
Brecht Van Lommel
01ea2175db Fix #20327: uv smart project options can't be tweaked.
Python operators calling C operators would get too many undo pushes,
causing redo of the python operator not to work. Now the depth of
operator callbacks is counted to detected nested calls, and in that
case skip the undo/register here, and only do a single undo/register
for the mother operator.
2010-01-29 13:06:50 +00:00
Brecht Van Lommel
0621a8e08a Fix for lack of basic error checking in writing compressed .blend files
(which is enabled by default). If there was a problem reading or writing
in the compression process, the original .blend file could get lost. Now
errors are checked, and writing is done as follows:

write .blend@ -> compress .blend@ to .blend@.gz ->
rename .blend@.gz to .blend -> remove .blend@

We've had blender crash here, lose the original .blend and leave an
empty .blend@. It is not clear to me where this would happen in practice 
if there is enough disk space and permissions are correct, so the actual
crash is likely not fixed by this commit.
2010-01-29 11:26:17 +00:00
Campbell Barton
014a24ff62 same fix from 2.4x r26392. 2010-01-29 09:56:32 +00:00
Joshua Leung
fbe0b45acc Inserting Keyframes Bugfix:
When the API function is passed -1 for the index, non-array properties now get keyframed properly too. This fixes problems with the keyframe_insert() method on structs in the Py-API not working.
2010-01-29 09:32:13 +00:00
Matt Ebb
a368d5269a Fix [#20874] zoom to mouse only in 3d view
Zoom to mouse was working in 2D Views for modal zoom (ctrl MMB) but not for mouse wheel.
2010-01-29 08:13:31 +00:00
Matt Ebb
88ae9b121e Fix [#19579] View not behaving proper;y when pressing camera view toggle while view is moving 2010-01-29 06:43:13 +00:00
Matt Ebb
6d71a19e89 [#20875] Rendering resolution in curve properties panel is not default 0 and cannot be set to 0.
Previously forgot about the magic: 0 res = display res behaviour.
2010-01-29 05:48:47 +00:00
Matt Ebb
54127ccf00 Fix [#20297] Preview "Both" hides part of texture 2010-01-29 05:14:10 +00:00
Martin Poirier
70109d0dc1 Speed up keymap editor a bit (less context changes) 2010-01-29 02:01:02 +00:00
Matt Ebb
30c317de70 Fix [#20447] Minor infobar bugs
Limited headers to normal header height until multi-line headers are properly implemented.
2010-01-29 01:57:15 +00:00
Matt Ebb
b645e56ad5 Fix for weirdness in texture map to settings - we now use negative
numbers for negative influences (as opposed to old 3-state button)
but the ui range was only set to 0,1.

Changed the defaults to -1,1 and added a shortcut - pressing minus 
key while the mouse is over a number field or slider will make it negative.
2010-01-29 01:20:57 +00:00
Matt Ebb
a180314ac5 Fix [#20860] File/Open Recent Should Show Blend File, Not path
Max number of characters for ui elements was too low, raised this to allow 
very long buttons (eg. file paths)
2010-01-29 00:47:38 +00:00
Matt Ebb
6d1895e846 * More tweaks to previous cleaning 2010-01-28 23:45:12 +00:00
Matt Ebb
cb499c9df4 * Partially converted constraint template to layout engine
* Removed old code
2010-01-28 23:41:34 +00:00
Martin Poirier
21b7556bf7 Add cfg folder for keyconfigs (and possibly others later) to be imported after everything else.
Also remove .pyc file when removing keyconfigs.
2010-01-28 21:52:07 +00:00
Campbell Barton
462e7cdb47 crash with viewing histogram on a blank image 2010-01-28 20:38:12 +00:00
Martin Poirier
b81cb0200b Keyconfig import and remove
- Keyconfig are now marked as user_defined when it is the case
- Import keyconfig operator: select an exported keyconfig .py file, copies it to the scripts folder (keep the original copy if wanted, default True), imports and select as active config. The active keyconfig is stored in the user default file, so that still has to be saved after import.
- Remove keyconfig operator and button next to the keyconfig name (poll False if not user_defined). Removes the keyconfig from the list and deletes the file from the folder.

Remaining bug: The file is copied in the user defined script folder (if present) or the /scripts/ui folder. The problem is that it might be imported before operators defined in python are imported themselves. One solution would be to use a separate folder for keyconfigs that is imported after all others.
2010-01-28 19:54:06 +00:00
Campbell Barton
6f3dfe81c0 missed some files last commit. 2010-01-28 19:21:15 +00:00
Damien Plisson
e4882e3da2 Cocoa : correctly handle late events sent after window deactivate
Cocoa can still send events (tagged with the correct NSWindow handle) after having sent the window deactivate event.
This caused these events being discarded as there was no active window for GHOST_WindowManager.

Fix is to use this NSWindow handle to retrieve the target window and correctly push the event.

E.g. of effects of this bug: OSKey modifier stuck after having invoked Spotlight through its shortcut (Cmd + Space). This gave the impression the Blender window has not got focus back for the keyboard.

Ton, can you confirm if this fixes the "Cocoa window loses focus permanently on using Spotlight" issue you found ?
2010-01-28 19:18:36 +00:00
Campbell Barton
cd2c4a5834 - change max threads from 8 to 64, need to keep an eye on stack memory use here.
- reload fix didnt work last commit.
2010-01-28 19:18:35 +00:00
Brecht Van Lommel
abde08b716 Multires displacement files are now also part of absolute/relative path
remapping.
2010-01-28 18:20:28 +00:00
Campbell Barton
ccfd67a8d0 missed updating reload scripts 2010-01-28 17:50:50 +00:00
Campbell Barton
6f4a26c9e0 material copy/paste
not enough room for the buttons so adding a menu, icon is ugly probably needs a new icon?.
2010-01-28 17:31:11 +00:00
Ton Roosendaal
883518d782 Bug fix: the new code that allows button highlights in other windows, should
not do this while modal handlers are running
2010-01-28 16:57:37 +00:00
Ton Roosendaal
07e36f50a3 Bugfix: Histogram button was added missing 'break' in switch() for
button handling, causing a lot of buttons to be handled as histogram
button... :)
2010-01-28 16:18:46 +00:00
Brecht Van Lommel
68abfd076b Fix RMB menu insert driver not working on some buttons, passing
wrong pointer into RNA.
2010-01-28 16:13:12 +00:00
Brecht Van Lommel
59d85ae4d4 Fix #20857: shrinkwrap doesn't use vertex group, broken recently with
some vertex groups changes, the default weight should 0 instead of 1.
2010-01-28 12:16:35 +00:00
Campbell Barton
18ea9b6443 move bpy.load_scripts --> bpy.utils.load_scripts
added sequencer strip length display in seconds
2010-01-28 11:48:06 +00:00
Brecht Van Lommel
72cb4548a7 Fix #20223: texture stencil does not work on normal. 2010-01-28 11:40:38 +00:00
Brecht Van Lommel
a2372d4312 Properties window: try to keep showing shading related tabs as you switch
between active objects, e.g. switch from lamp to material tab when you are
selecting a lamp instead of a mesh.
2010-01-28 10:57:31 +00:00
Damien Plisson
47e8ea5004 Cocoa : fix 'Draw Overlap' method swap issues 2010-01-28 10:56:35 +00:00
Campbell Barton
1b7b5eb434 minor changes needed for PDF generation 2010-01-28 10:48:17 +00:00
Matt Ebb
9d0dbd707e Fix [#20754] Histogram Not Updating, Showing Incorrect Levels, Colour Management on/off leads to Crash
Various internal fixes, also additional feature - can drag on the histogram to change scale 
(0 key to reset).

Also fix [#20844] Color balance node (lift freeze)
2010-01-28 07:26:21 +00:00
Matt Ebb
b0989aac02 Fix [#20152] Video textures do not refresh at frame change 2010-01-28 02:08:16 +00:00
Joshua Leung
bf16ed0c80 Fixed some crashes with undo, when going back to the initial state of the file. 2010-01-27 23:20:32 +00:00
Campbell Barton
cc08cc3e8f nicer start page for sphinx docs 2010-01-27 22:17:27 +00:00
Brecht Van Lommel
5445dda295 Ambient Occlusion split up into:
Ambient occlusion: multiplied with direct lighting by default, add
is also still available and more blending methods might be added if
they are useful. This is fundamentally a non physical effect.

Environment lighting: always added as you would expect (though you can
subtract by specifying negative energy). This can be just white or take
colors or textures from the world.

Indirect lighting: only supported for AAO at the moment (and is still
too approximate), and also is always added. A factor is available to
specify how much is added, though value 1.0 is correct.

Also:
* Material ambient value now defaults to 1.0.
* Added Environment, Indirect and Emit pass.
* "Both" blending method is no longer available.
* Attenuation, sampling parameters are still shared, some could be split
  up, though if they are different this would affect performance.
2010-01-27 21:40:08 +00:00
Campbell Barton
478dc000b3 * Mathutils attributes documented - http://www.blender.org/documentation/250PythonDoc/Mathutils.html
* Vector.difference() needed normalized vectors
* bpy.DEUBG -> bpy.app.debug
2010-01-27 21:33:39 +00:00