11 years agochanges to get MingW compiling and cross compiling working, patch by Sergey Sharybin
Tom Musgrove [Sat, 30 Jan 2010 22:46:25 +0000 (22:46 +0000)]
changes to get MingW compiling and cross compiling working, patch by Sergey Sharybin

11 years ago- hash characters in the path would confuse the output file name and not add numbers...
Campbell Barton [Sat, 30 Jan 2010 22:33:47 +0000 (22:33 +0000)]
- hash characters in the path would confuse the output file name and not add numbers to it (when rendering animations).
- added an option to BLI_convertstringframe and BLI_convertstringframe_range to add digits if not found.
- removed BLI_convertstringframe where its obviously not needed - such as loading movies and sounds.

11 years agorename game object obcolor to color
Campbell Barton [Sat, 30 Jan 2010 21:59:20 +0000 (21:59 +0000)]
rename game object obcolor to color

11 years agobugfix [#20878] Filtering for keymaps became useless [26389]
Campbell Barton [Sat, 30 Jan 2010 21:48:07 +0000 (21:48 +0000)]
bugfix [#20878] Filtering for keymaps became useless [26389]

11 years agoBugfix #20870: Local rotation drivers behave weird
Joshua Leung [Sat, 30 Jan 2010 21:21:36 +0000 (21:21 +0000)]
Bugfix #20870: Local rotation drivers behave weird

Use euler rotations for local rotation drivers if the object/bone uses euler rotations. Otherwise, fall back to matrix-based conversions again.

11 years agoBugfixes:
Joshua Leung [Sat, 30 Jan 2010 21:11:46 +0000 (21:11 +0000)]
* Old files imported to 2.5 with curves that got cycles FModifiers added during version patching, would not have their keyframes shown for editing.

* #20893: Can't see/show the Properties area in the NLA
I don't know why this worked on a few of my test files several months ago, and yet now fails for many files today.

11 years agoPreparation to force an audio device via command line. Will be implemented by theeth.
Joerg Mueller [Sat, 30 Jan 2010 21:04:51 +0000 (21:04 +0000)]
Preparation to force an audio device via command line. Will be implemented by theeth.

11 years agobugfix [#20740] Separate All Loose Parts
Campbell Barton [Sat, 30 Jan 2010 19:42:03 +0000 (19:42 +0000)]
bugfix [#20740] Separate All Loose Parts

11 years agocmake vars are not using _BF_ in var names.
Campbell Barton [Sat, 30 Jan 2010 19:29:24 +0000 (19:29 +0000)]
cmake vars are not using _BF_ in var names.

11 years agoOSX : update build scripts for updated openCollada libs + ray tracing optimization...
Damien Plisson [Sat, 30 Jan 2010 19:07:48 +0000 (19:07 +0000)]
OSX : update build scripts for updated openCollada libs + ray tracing optimization option in cmake

OpenCollada new version (721) lib has additional lib files to link with.

Added BF_RAY_OPTIMIZATION option in CMake (as the one in scons) for building SIMD optimized ray tracing code.

11 years ago[#20320] Quad View - Orthogonal grid changes to perspective grid
Campbell Barton [Sat, 30 Jan 2010 18:54:36 +0000 (18:54 +0000)]
[#20320] Quad View - Orthogonal grid changes to perspective grid
- respect view locking (dont change rv3d->view)
- on multiple calls to smoothview, get the original view from the previously called smoothview if it exists.

11 years agoBGE: patch [#20293] Added python sensor attribute: Status.
Benoit Bolsee [Sat, 30 Jan 2010 18:53:33 +0000 (18:53 +0000)]
BGE: patch [#20293] Added python sensor attribute: Status.

11 years agoBGE: patch #20399 Python control over adding/removing scenes.
Benoit Bolsee [Sat, 30 Jan 2010 18:23:13 +0000 (18:23 +0000)]
BGE: patch #20399 Python control over adding/removing scenes.

11 years agoMerge -c 26209,26214,26443 from COLLADA branch into trunk.
Arystanbek Dyussenov [Sat, 30 Jan 2010 18:20:56 +0000 (18:20 +0000)]
Merge -c 26209,26214,26443 from COLLADA branch into trunk.

11 years agoCOLLADA branch: updated vc9 project files and w32 scons config.
Arystanbek Dyussenov [Sat, 30 Jan 2010 18:03:18 +0000 (18:03 +0000)]
COLLADA branch: updated vc9 project files and w32 scons config.

11 years agobugfix [#20894] Blender don't import the "eye" icon value from 2.49 files in the...
Campbell Barton [Sat, 30 Jan 2010 17:49:32 +0000 (17:49 +0000)]
bugfix [#20894] Blender don't import the "eye" icon value from 2.49 files in the DopeSheet Editor

11 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))

11 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.

11 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

11 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.

11 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.

11 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

11 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.

11 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

11 years agoCOLLADA branch: merge from trunk -r 25745:26429.
Arystanbek Dyussenov [Sat, 30 Jan 2010 14:12:51 +0000 (14:12 +0000)]
COLLADA branch: merge from trunk -r 25745:26429.

scons+vc build crashes on Blender start when BF_COLLADA is on, don't know why this happens.

Merging from trunk to get working vc project files, then will try to debug and locate the problem.

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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.

11 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 :)

11 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.

11 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.

11 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.

11 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

11 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.

11 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.

11 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

11 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

11 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)

11 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)

11 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.

11 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.

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

11 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

11 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.

11 years agoBugfix
Ton Roosendaal [Fri, 29 Jan 2010 14:13:40 +0000 (14:13 +0000)]

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!

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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

11 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)

11 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.

11 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.

11 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)

11 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

11 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

11 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.

11 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

11 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.

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

11 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 ?

11 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.

11 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

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

11 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?.

11 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

11 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... :)

11 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.

11 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.

11 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

11 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.

11 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.

11 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

11 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

11 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)

11 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

11 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.

11 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

11 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.

* 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.

11 years ago* Mathutils attributes documented -
Campbell Barton [Wed, 27 Jan 2010 21:33:39 +0000 (21:33 +0000)]
* Mathutils attributes documented -
* Vector.difference() needed normalized vectors
* bpy.DEUBG ->

11 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.

11 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.

11 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

11 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.

11 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.

11 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)

11 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.