Commit Graph

22384 Commits

Author SHA1 Message Date
Brecht Van Lommel
a7f2c3fca8 Fix #20505: subsurf normals where not being set correct on correct from
subsurf derivedmesh to regular (derived)mesh, causing drawing errors on
apply and following modifiers to work incorrect.
2010-01-30 09:32:05 +00:00
Brecht Van Lommel
3e71c3cbac Fix #20221: switching to weight paint in textured viewport shading
mode leaves objects blue.
2010-01-30 09:27:49 +00:00
Brecht Van Lommel
2b352211f4 Fix #19875: drawing smoke on graphics cards that do not support
non-power-of-two textures lead to artifacts due to uninitialized
memory if the domain had a non-power-of-two size.
2010-01-30 09:24:50 +00:00
Brecht Van Lommel
36b5cd008d Fix #19904: selecting a new image color closes the popup. 2010-01-30 09:18:59 +00:00
Brecht Van Lommel
4279e6d1fd Added a comment in the code about a timer that is not being freed and
is causing the smooth view operator to run all the time after closing
the file browser, since I can't think of a good way to fix it at the
moment.
2010-01-30 09:17:32 +00:00
Brecht Van Lommel
7d0885915b Fix #20146:
* .tif not loading on newer linux distributions, wasn't looking for
  libtiff version 4.
* fix dds being too verbose when testing if it can open an image file.
2010-01-30 09:14:12 +00:00
Thomas Dinges
c005d19c42 Small UI Tweak:
Let "Add Constraint" Button use the whole space, like the "Add Modifier" Button.
2010-01-30 08:45:31 +00:00
Joshua Leung
78934da5c4 A few minor code cleanup tweaks for recent commits in animation code, to better follow conventions elsewhere here :) 2010-01-30 05:08:42 +00:00
Joshua Leung
e1fdf7fc58 View2D/TimeCode Drawing:
This commit introduces a few cleanups and tweaks to the way that timecodes (i.e. the timing indications used instead of frame numbers) get displayed.

1. Custom Spacing of TimeCodes/Gridlines
Made the minimum number of pixels between gridlines/timecode indications a user-preference, instead of being a hardcoded constant. This allows to set the spacing tighter/looser than the defaults, and is also used for the other changes.

2. Default timecode display style, (now named 'minimal') uses '+' as the delimeter for the sub-second frames. This hopefully makes it a bit clearer what those values represent, as opposed to the '!', which can sometimes look too much like a colon.

3. Added various timecode display styles as user-preference. - These include always displaying full SMPTE, to showing milliseconds instead of frams for sub-second times, and also an option to just show the times as seconds only.
- When changing the timecode style, the spacing setting is automatically modified so that the timecodes are spaced far apart enough so that they won't clash (under most circumstances). This automatic modification is only done if the spacing is too tight for the style being set.

4. Unified the code for generating timecode strings between the View2D scrollbar drawing and the current frame indicator drawing.
2010-01-30 04:43:36 +00:00
Brecht Van Lommel
d86a9da07c Fix for fix in own recent commit for modifier vertex groups,
should have only changed one value to 0.0.
2010-01-30 03:47:13 +00:00
Brecht Van Lommel
3d9988cde7 Fix #19473: Toggle Quad View options missing from UI. 2010-01-30 03:22:22 +00:00
Campbell Barton
11ea90933c [#20881] Minor UI bug in outliner - groups view 2010-01-30 02:29:22 +00:00
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