blender.git
9 years agoMerged changes in the trunk up to revision 26439.
Tamito Kajiyama [Sat, 30 Jan 2010 17:44:57 +0000 (17:44 +0000)]
Merged changes in the trunk up to revision 26439.

9 years ago[#20892] Locking animation curves with Tab Key don't hide the curves handles
Campbell Barton [Sat, 30 Jan 2010 17:17:23 +0000 (17:17 +0000)]
[#20892] Locking animation curves with Tab Key don't hide the curves handles
drawing handles for fcurves wasnt checking ((fcu->grp) && (fcu->grp->flag & AGRP_PROTECTED))

9 years ago[#19872] Mesh edit missing undo push for mode changing
Campbell Barton [Sat, 30 Jan 2010 16:09:56 +0000 (16:09 +0000)]
[#19872] Mesh edit missing undo push for mode changing
copy the editmesh select mode back to the scene on undo.

9 years agobugfix [#20888] Crash when following instructions on the Blender Wiki and then clicki...
Campbell Barton [Sat, 30 Jan 2010 15:44:11 +0000 (15:44 +0000)]
bugfix [#20888] Crash when following instructions on the Blender Wiki and then clicking on the outliner

9 years agoFix #19648: sculpt does not update linked duplicate multires.
Brecht Van Lommel [Sat, 30 Jan 2010 15:29:22 +0000 (15:29 +0000)]
Fix #19648: sculpt does not update linked duplicate multires.

9 years ago[#20550] Workflow Odity For Objects On Layers Not Being Viewed
Campbell Barton [Sat, 30 Jan 2010 15:23:17 +0000 (15:23 +0000)]
[#20550] Workflow Odity For Objects On Layers Not Being Viewed
always keep the first editmode objects layer enabled in cases where switching hides the editmode object.

9 years agobugfix [#20638] not loading script in user script directory when startup
Campbell Barton [Sat, 30 Jan 2010 14:48:46 +0000 (14:48 +0000)]
bugfix [#20638] not loading script in user script directory when startup

9 years agoFix #20662: normal map rendering with negative factor didn't flip
Brecht Van Lommel [Sat, 30 Jan 2010 14:41:51 +0000 (14:41 +0000)]
Fix #20662: normal map rendering with negative factor didn't flip
the direction correctly.

9 years agobugfix [#20417] <memory> shouldn't be stored in recent item list
Campbell Barton [Sat, 30 Jan 2010 14:34:37 +0000 (14:34 +0000)]
bugfix [#20417] <memory> shouldn't be stored in recent item list

9 years agoutility functions is_negative_m3 & is_negative_m4, added python Mathutils access...
Campbell Barton [Sat, 30 Jan 2010 13:15:39 +0000 (13:15 +0000)]
utility functions is_negative_m3 & is_negative_m4, added python Mathutils access Matrix.is_negative
renamed Mathutils attribute wrapped -> is_wrapped

9 years agoFix #20886: user defined keymap could be loaded before python scripts,
Brecht Van Lommel [Sat, 30 Jan 2010 12:01:44 +0000 (12:01 +0000)]
Fix #20886: user defined keymap could be loaded before python scripts,
printing errors when that keymap included python operators.

9 years agoFix #20790: fluid sim adding domain mesh with no faces crashes.
Brecht Van Lommel [Sat, 30 Jan 2010 11:04:36 +0000 (11:04 +0000)]
Fix #20790: fluid sim adding domain mesh with no faces crashes.

9 years agoPossible fix for #20835: background images were not duplicated correctly
Brecht Van Lommel [Sat, 30 Jan 2010 10:16:11 +0000 (10:16 +0000)]
Possible fix for #20835: background images were not duplicated correctly
when splitting 3d view, causing them to be lost on file reload.

9 years agoFixed a bug that visible strokes are not rendered correctly when
Tamito Kajiyama [Sat, 30 Jan 2010 09:59:01 +0000 (09:59 +0000)]
Fixed a bug that visible strokes are not rendered correctly when
the aspect ratio is not equal to 1:1.

9 years agoFix #19980: crash with opengl render active viewport.
Brecht Van Lommel [Sat, 30 Jan 2010 09:53:55 +0000 (09:53 +0000)]
Fix #19980: crash with opengl render active viewport.

9 years agoFix #20876: adjusting the settings after adding a new curve, surface,
Brecht Van Lommel [Sat, 30 Jan 2010 09:34:54 +0000 (09:34 +0000)]
Fix #20876: adjusting the settings after adding a new curve, surface,
or metaball creates duplicates, these did two undo pushes when only
one is needed.

9 years agoFix #20505: subsurf normals where not being set correct on correct from
Brecht Van Lommel [Sat, 30 Jan 2010 09:32:05 +0000 (09:32 +0000)]
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.

9 years agoFix #20221: switching to weight paint in textured viewport shading
Brecht Van Lommel [Sat, 30 Jan 2010 09:27:49 +0000 (09:27 +0000)]
Fix #20221: switching to weight paint in textured viewport shading
mode leaves objects blue.

9 years agoFix #19875: drawing smoke on graphics cards that do not support
Brecht Van Lommel [Sat, 30 Jan 2010 09:24:50 +0000 (09:24 +0000)]
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.

9 years agoFix #19904: selecting a new image color closes the popup.
Brecht Van Lommel [Sat, 30 Jan 2010 09:18:59 +0000 (09:18 +0000)]
Fix #19904: selecting a new image color closes the popup.

9 years agoAdded a comment in the code about a timer that is not being freed and
Brecht Van Lommel [Sat, 30 Jan 2010 09:17:32 +0000 (09:17 +0000)]
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.

9 years agoFix #20146:
Brecht Van Lommel [Sat, 30 Jan 2010 09:14:12 +0000 (09:14 +0000)]
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.

9 years agoSmall UI Tweak:
Thomas Dinges [Sat, 30 Jan 2010 08:45:31 +0000 (08:45 +0000)]
Small UI Tweak:
Let "Add Constraint" Button use the whole space, like the "Add Modifier" Button.

9 years agoA few minor code cleanup tweaks for recent commits in animation code, to better follo...
Joshua Leung [Sat, 30 Jan 2010 05:08:42 +0000 (05:08 +0000)]
A few minor code cleanup tweaks for recent commits in animation code, to better follow conventions elsewhere here :)

9 years agoView2D/TimeCode Drawing:
Joshua Leung [Sat, 30 Jan 2010 04:43:36 +0000 (04:43 +0000)]
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.

9 years agoFix for fix in own recent commit for modifier vertex groups,
Brecht Van Lommel [Sat, 30 Jan 2010 03:47:13 +0000 (03:47 +0000)]
Fix for fix in own recent commit for modifier vertex groups,
should have only changed one value to 0.0.

9 years agoFix #19473: Toggle Quad View options missing from UI.
Brecht Van Lommel [Sat, 30 Jan 2010 03:22:22 +0000 (03:22 +0000)]
Fix #19473: Toggle Quad View options missing from UI.

9 years agoMerged changes in the trunk up to revision 26409.
Tamito Kajiyama [Sat, 30 Jan 2010 02:58:48 +0000 (02:58 +0000)]
Merged changes in the trunk up to revision 26409.

9 years ago[#20881] Minor UI bug in outliner - groups view
Campbell Barton [Sat, 30 Jan 2010 02:29:22 +0000 (02:29 +0000)]
[#20881] Minor UI bug in outliner - groups view

9 years agoImprovements of mesh importing.
Tamito Kajiyama [Sat, 30 Jan 2010 01:36:12 +0000 (01:36 +0000)]
Improvements of mesh importing.

Previously mesh vertices imported from vlak nodes were transformed
from the camera coordinate system to the object local coordinate
system.  This causes a difficulty in recovering object local vertices
when mesh deforming modifiers (e.g., curve, cloth, and soft body) have
been applied.  Now the view map creation is done based on mesh
vertices in the camera coordinate system.  Advantages of this approach
includes: 1) faster mesh importing because of less matrix-based
transformations; and 2) proper handling of meshes with deforming
modifiers.

9 years ago[#20487] Small bug in 3d window's header in edit mode.
Campbell Barton [Sat, 30 Jan 2010 01:25:02 +0000 (01:25 +0000)]
[#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.

9 years agobugfix [#20721] Reloading scripts crashes Blender (own todo)
Campbell Barton [Sat, 30 Jan 2010 01:10:16 +0000 (01:10 +0000)]
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.

9 years agoRemoving duplicate bad level call entries, patch from Richard Sanger, thanks
Tom Musgrove [Sat, 30 Jan 2010 00:47:41 +0000 (00:47 +0000)]
Removing duplicate bad level call entries, patch from Richard Sanger, thanks

9 years agoReplaced "math.h" by "BLI_math.h" to suppress a warning with regard
Tamito Kajiyama [Fri, 29 Jan 2010 23:55:32 +0000 (23:55 +0000)]
Replaced "math.h" by "BLI_math.h" to suppress a warning with regard
to redefinition of M_PI.

9 years agoFixed a bug that caused a Y-direction offset in rendering results.
Tamito Kajiyama [Fri, 29 Jan 2010 22:13:39 +0000 (22:13 +0000)]
Fixed a bug that caused a Y-direction offset in rendering results.
The renderer now takes the aspect ratio settings into account.

9 years agodeleting objects which were driver targets would crash blender.
Campbell Barton [Fri, 29 Jan 2010 21:16:21 +0000 (21:16 +0000)]
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

9 years agoMake expanding kmi possible even when they are not user defined (makes it possible...
Martin Poirier [Fri, 29 Jan 2010 19:38:56 +0000 (19:38 +0000)]
Make expanding kmi possible even when they are not user defined (makes it possible to see full keymap information even for unmodified configurations)

9 years agoedits to 26400
Campbell Barton [Fri, 29 Jan 2010 17:01:53 +0000 (17:01 +0000)]
edits to 26400
- use the endframe operator property
- dont use the startstill setting, gives odd results (start frame isnt the startframe)

9 years agoFix #20549: selecting a texture node in a material node tree would
Brecht Van Lommel [Fri, 29 Jan 2010 16:32:06 +0000 (16:32 +0000)]
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.

9 years agoTwo fixes, errors caused by drag n drop commit:
Ton Roosendaal [Fri, 29 Jan 2010 16:25:31 +0000 (16:25 +0000)]
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.

9 years agominor corrections to scripts
Campbell Barton [Fri, 29 Jan 2010 15:20:25 +0000 (15:20 +0000)]
minor corrections to scripts

9 years agobugfix [#19681] adjusting the settings of the 'add torus' tool in edit mode
Campbell Barton [Fri, 29 Jan 2010 15:19:19 +0000 (15:19 +0000)]
bugfix [#19681] adjusting the settings of the 'add torus' tool in edit mode

9 years agoFix the underlying problem from the last commit, which was worked
Brecht Van Lommel [Fri, 29 Jan 2010 14:49:21 +0000 (14:49 +0000)]
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.

9 years agoBugfix
Ton Roosendaal [Fri, 29 Jan 2010 14:13:40 +0000 (14:13 +0000)]
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!

9 years agoFix #20327: uv smart project options can't be tweaked.
Brecht Van Lommel [Fri, 29 Jan 2010 13:06:50 +0000 (13:06 +0000)]
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.

9 years agoFix for lack of basic error checking in writing compressed .blend files
Brecht Van Lommel [Fri, 29 Jan 2010 11:26:17 +0000 (11:26 +0000)]
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.

9 years agosame fix from 2.4x r26392.
Campbell Barton [Fri, 29 Jan 2010 09:56:32 +0000 (09:56 +0000)]
same fix from 2.4x r26392.

9 years agoInserting Keyframes Bugfix:
Joshua Leung [Fri, 29 Jan 2010 09:32:13 +0000 (09:32 +0000)]
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.

9 years agoFix [#20874] zoom to mouse only in 3d view
Matt Ebb [Fri, 29 Jan 2010 08:13:31 +0000 (08:13 +0000)]
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.

9 years agoFix [#19579] View not behaving proper;y when pressing camera view toggle while view...
Matt Ebb [Fri, 29 Jan 2010 06:43:13 +0000 (06:43 +0000)]
Fix [#19579] View not behaving proper;y when pressing camera view toggle while view is moving

9 years ago[#20875] Rendering resolution in curve properties panel is not default 0 and cannot...
Matt Ebb [Fri, 29 Jan 2010 05:48:47 +0000 (05:48 +0000)]
[#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.

9 years agoFix [#20297] Preview "Both" hides part of texture
Matt Ebb [Fri, 29 Jan 2010 05:14:10 +0000 (05:14 +0000)]
Fix [#20297] Preview "Both" hides part of texture

9 years agoSpeed up keymap editor a bit (less context changes)
Martin Poirier [Fri, 29 Jan 2010 02:01:02 +0000 (02:01 +0000)]
Speed up keymap editor a bit (less context changes)

9 years agoFix [#20447] Minor infobar bugs
Matt Ebb [Fri, 29 Jan 2010 01:57:15 +0000 (01:57 +0000)]
Fix [#20447] Minor infobar bugs

Limited headers to normal header height until multi-line headers are properly implemented.

9 years agoFix for weirdness in texture map to settings - we now use negative
Matt Ebb [Fri, 29 Jan 2010 01:20:57 +0000 (01:20 +0000)]
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.

9 years agoFix [#20860] File/Open Recent Should Show Blend File, Not path
Matt Ebb [Fri, 29 Jan 2010 00:47:38 +0000 (00:47 +0000)]
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)

9 years ago* More tweaks to previous cleaning
Matt Ebb [Thu, 28 Jan 2010 23:45:12 +0000 (23:45 +0000)]
* More tweaks to previous cleaning

9 years ago* Partially converted constraint template to layout engine
Matt Ebb [Thu, 28 Jan 2010 23:41:34 +0000 (23:41 +0000)]
* Partially converted constraint template to layout engine
* Removed old code

9 years agoAdd cfg folder for keyconfigs (and possibly others later) to be imported after everyt...
Martin Poirier [Thu, 28 Jan 2010 21:52:07 +0000 (21:52 +0000)]
Add cfg folder for keyconfigs (and possibly others later) to be imported after everything else.

Also remove .pyc file when removing keyconfigs.

9 years agocrash with viewing histogram on a blank image
Campbell Barton [Thu, 28 Jan 2010 20:38:12 +0000 (20:38 +0000)]
crash with viewing histogram on a blank image

9 years agoKeyconfig import and remove
Martin Poirier [Thu, 28 Jan 2010 19:54:06 +0000 (19:54 +0000)]
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.

9 years agomissed some files last commit.
Campbell Barton [Thu, 28 Jan 2010 19:21:15 +0000 (19:21 +0000)]
missed some files last commit.

9 years agoCocoa : correctly handle late events sent after window deactivate
Damien Plisson [Thu, 28 Jan 2010 19:18:36 +0000 (19:18 +0000)]
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 ?

9 years ago- change max threads from 8 to 64, need to keep an eye on stack memory use here.
Campbell Barton [Thu, 28 Jan 2010 19:18:35 +0000 (19:18 +0000)]
- change max threads from 8 to 64, need to keep an eye on stack memory use here.
- reload fix didnt work last commit.

9 years agoMultires displacement files are now also part of absolute/relative path
Brecht Van Lommel [Thu, 28 Jan 2010 18:20:28 +0000 (18:20 +0000)]
Multires displacement files are now also part of absolute/relative path
remapping.

9 years agomissed updating reload scripts
Campbell Barton [Thu, 28 Jan 2010 17:50:50 +0000 (17:50 +0000)]
missed updating reload scripts

9 years agomaterial copy/paste
Campbell Barton [Thu, 28 Jan 2010 17:31:11 +0000 (17:31 +0000)]
material copy/paste
not enough room for the buttons so adding a menu, icon is ugly probably needs a new icon?.

9 years agoBug fix: the new code that allows button highlights in other windows, should
Ton Roosendaal [Thu, 28 Jan 2010 16:57:37 +0000 (16:57 +0000)]
Bug fix: the new code that allows button highlights in other windows, should
not do this while modal handlers are running

9 years agoBugfix: Histogram button was added missing 'break' in switch() for
Ton Roosendaal [Thu, 28 Jan 2010 16:18:46 +0000 (16:18 +0000)]
Bugfix: Histogram button was added missing 'break' in switch() for
button handling, causing a lot of buttons to be handled as histogram
button... :)

9 years agoFix RMB menu insert driver not working on some buttons, passing
Brecht Van Lommel [Thu, 28 Jan 2010 16:13:12 +0000 (16:13 +0000)]
Fix RMB menu insert driver not working on some buttons, passing
wrong pointer into RNA.

9 years agoFix #20857: shrinkwrap doesn't use vertex group, broken recently with
Brecht Van Lommel [Thu, 28 Jan 2010 12:16:35 +0000 (12:16 +0000)]
Fix #20857: shrinkwrap doesn't use vertex group, broken recently with
some vertex groups changes, the default weight should 0 instead of 1.

9 years agomove bpy.load_scripts --> bpy.utils.load_scripts
Campbell Barton [Thu, 28 Jan 2010 11:48:06 +0000 (11:48 +0000)]
move bpy.load_scripts --> bpy.utils.load_scripts
added sequencer strip length display in seconds

9 years agoFix #20223: texture stencil does not work on normal.
Brecht Van Lommel [Thu, 28 Jan 2010 11:40:38 +0000 (11:40 +0000)]
Fix #20223: texture stencil does not work on normal.

9 years agoProperties window: try to keep showing shading related tabs as you switch
Brecht Van Lommel [Thu, 28 Jan 2010 10:57:31 +0000 (10:57 +0000)]
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.

9 years agoCocoa : fix 'Draw Overlap' method swap issues
Damien Plisson [Thu, 28 Jan 2010 10:56:35 +0000 (10:56 +0000)]
Cocoa : fix 'Draw Overlap' method swap issues

9 years agominor changes needed for PDF generation
Campbell Barton [Thu, 28 Jan 2010 10:48:17 +0000 (10:48 +0000)]
minor changes needed for PDF generation

9 years agoFix [#20754] Histogram Not Updating, Showing Incorrect Levels, Colour Management...
Matt Ebb [Thu, 28 Jan 2010 07:26:21 +0000 (07:26 +0000)]
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)

9 years agoFix [#20152] Video textures do not refresh at frame change
Matt Ebb [Thu, 28 Jan 2010 02:08:16 +0000 (02:08 +0000)]
Fix [#20152] Video textures do not refresh at frame change

9 years agoFixed some crashes with undo, when going back to the initial state of the file.
Joshua Leung [Wed, 27 Jan 2010 23:20:32 +0000 (23:20 +0000)]
Fixed some crashes with undo, when going back to the initial state of the file.

9 years agonicer start page for sphinx docs
Campbell Barton [Wed, 27 Jan 2010 22:17:27 +0000 (22:17 +0000)]
nicer start page for sphinx docs

9 years agoAmbient Occlusion split up into:
Brecht Van Lommel [Wed, 27 Jan 2010 21:40:08 +0000 (21:40 +0000)]
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.

9 years ago* Mathutils attributes documented - http://www.blender.org/documentation/250PythonDoc...
Campbell Barton [Wed, 27 Jan 2010 21:33:39 +0000 (21:33 +0000)]
* Mathutils attributes documented - blender.org/documentation/250PythonDoc/Mathutils.html
* Vector.difference() needed normalized vectors
* bpy.DEUBG -> bpy.app.debug

9 years agoPROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to be passe...
Martin Poirier [Wed, 27 Jan 2010 21:19:39 +0000 (21:19 +0000)]
PROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to be passed a null context (to return non-contextual items).

This is set on keymap item operator properties and macro definition operator properties to make them non-contextual (since the context at definition time is most likely not the same then at execution time, it's better to have all options visible).

This removes some more errors in keymap export and import.

This commit also sanitize some enum item function, making sure they can cope with null context and have usable defaults in that case.

9 years agoAdd missing properties to keymap export operator.
Martin Poirier [Wed, 27 Jan 2010 21:12:33 +0000 (21:12 +0000)]
Add missing properties to keymap export operator.

9 years agoctx_data_pointer_verify is a verified NULL value if C is NULL.
Martin Poirier [Wed, 27 Jan 2010 20:12:54 +0000 (20:12 +0000)]
ctx_data_pointer_verify is a verified NULL value if C is NULL.

prevents ctx_data_main and ctx_data_scene from crashing on NULL context

9 years agomissing parenthesis broke os x compile.
Martin Poirier [Wed, 27 Jan 2010 19:46:12 +0000 (19:46 +0000)]
missing parenthesis broke os x compile.

9 years agoslice assignment wasnt running the properties update function (setting object layers...
Campbell Barton [Wed, 27 Jan 2010 17:23:28 +0000 (17:23 +0000)]
slice assignment wasnt running the properties update function (setting object layers wasnt working from py)
also commented operator subclassing, loosing py property order.

9 years ago[#20792] MMB emulation, release broken
Martin Poirier [Wed, 27 Jan 2010 17:01:41 +0000 (17:01 +0000)]
[#20792] MMB emulation, release broken

Store last mmb event value to make emulation work when modifier keys are released first.

This is done in a not so nice way for now. Eventually, I'd like for emulation keys to have their own data structures (user creatable and all that)

9 years ago[#20808] r26221 - Cannot remove shortcuts in user preferences @ modified configuration
Martin Poirier [Wed, 27 Jan 2010 16:13:05 +0000 (16:13 +0000)]
[#20808] r26221 - Cannot remove shortcuts in user preferences @ modified configuration

keymap in context was wrong after modal keymap was shown.

9 years agoFix #20651: 3D Cursor resets after add object operator redo. The 3d cursor
Brecht Van Lommel [Wed, 27 Jan 2010 15:30:20 +0000 (15:30 +0000)]
Fix #20651: 3D Cursor resets after add object operator redo. The 3d cursor
is not getting an undo push, so also made it preserved now through undo's,
this is like e.g. the 3d view position which also stays the same.

9 years agopy api - utility function for vectors.
Campbell Barton [Wed, 27 Jan 2010 15:29:21 +0000 (15:29 +0000)]
py api - utility function for vectors.
 quat = vec.difference(other)

also pedantic change with enum names.

9 years agoFix #20824: vertex parent fails with subsurf on.
Brecht Van Lommel [Wed, 27 Jan 2010 15:09:34 +0000 (15:09 +0000)]
Fix #20824: vertex parent fails with subsurf on.

9 years agoTwo small dragdrop fixes:
Ton Roosendaal [Wed, 27 Jan 2010 15:08:30 +0000 (15:08 +0000)]
Two small dragdrop fixes:

- drop material didn't send correct notifiers to refresh view
- drop material gave error print

9 years agoFix part of #20090: boolean modifier would lose link to object
Brecht Van Lommel [Wed, 27 Jan 2010 14:13:01 +0000 (14:13 +0000)]
Fix part of #20090: boolean modifier would lose link to object
if evaluation failed, it should display an error message instead.

9 years agoUpdate MSVC project files
Benoit Bolsee [Wed, 27 Jan 2010 13:39:56 +0000 (13:39 +0000)]
Update MSVC project files

9 years agoSDNA: fix for parsing struct members like:
Brecht Van Lommel [Wed, 27 Jan 2010 13:25:06 +0000 (13:25 +0000)]
SDNA: fix for parsing struct members like:

float (*disps)[3];

It still isn't advised to use this syntax, best to just use regular pointers,
however at least it is working better now. Previously this would lead to the
rest of the header file to be included right in the SDNA. If you look into an
existing .B25.blend file with a text editor, you can see the second half of
DNA_meshdata_types.h...

9 years agocrash fix from own recent updates to Mathutils.RotationMatrix()
Campbell Barton [Wed, 27 Jan 2010 12:53:25 +0000 (12:53 +0000)]
crash fix from own recent updates to Mathutils.RotationMatrix()

9 years agoBumped subversion for readfile patch (Anim Editors View2D stuff)
Joshua Leung [Wed, 27 Jan 2010 11:58:04 +0000 (11:58 +0000)]
Bumped subversion for readfile patch (Anim Editors View2D stuff)

9 years agoBugfix #20845: Grease Pencil settings lack view refresh
Joshua Leung [Wed, 27 Jan 2010 11:56:14 +0000 (11:56 +0000)]
Bugfix #20845: Grease Pencil settings lack view refresh

Added updates to Grease Pencil RNA data, and added appropriate listeners to 3D-View and Nodes Editors that were previously missing too.

9 years agoDopeSheet and NLA Editor Scrollbar/View Bugs:
Joshua Leung [Wed, 27 Jan 2010 11:43:34 +0000 (11:43 +0000)]
DopeSheet and NLA Editor Scrollbar/View Bugs:

Fixed some long-standing bugs with DopeSheet and NLA Editor main views not being properly lined up with their channels, and/or showing an incorrect scrollbar.

This fixes #20759, and probably a few other reports about similar issues that might've cropped up.

NOTE:
- probably a version bump might be needed after this, to avoid problems on durian animation files?
- the default .b.blend needs updating again, since the saved config there doesn't get updated (or doesn't here, when using load factory settings)