blender-staging.git
10 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

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

10 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

10 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

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

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

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

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

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

10 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

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

10 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!

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

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

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

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

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

10 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

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

10 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

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

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

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

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

10 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

10 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

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

10 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

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

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

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

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

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

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

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

10 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

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

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

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

10 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

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

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

10 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

10 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

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

10 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

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

10 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

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

10 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

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

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

10 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

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

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

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

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

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

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

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

10 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

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

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

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

10 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()

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

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

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

10 years agoworkaround for running python scripts before the contexts values are set.
Campbell Barton [Wed, 27 Jan 2010 11:18:55 +0000 (11:18 +0000)]
workaround for running python scripts before the contexts values are set.
not happy with this but running python scripts with the -P command line could crash in simple cases (like selecting an object).

10 years agofix for crash when using a NULL context from python
Campbell Barton [Wed, 27 Jan 2010 10:54:11 +0000 (10:54 +0000)]
fix for crash when using a NULL context from python

10 years agoBugfix #20752: Background Image Panel Properties Keyframing?
Joshua Leung [Wed, 27 Jan 2010 10:43:14 +0000 (10:43 +0000)]
Bugfix #20752: Background Image Panel Properties Keyframing?

Added a check in RNA_property_animateable() which checks if the base ID-block can have animation data or not. Screen data currently cannot have animation data, so this solves that problem (where there were non-functional entries there in the menu).

10 years agoAttempt to fix strand + new bump crash (they can't work together).
Brecht Van Lommel [Wed, 27 Jan 2010 10:30:10 +0000 (10:30 +0000)]
Attempt to fix strand + new bump crash (they can't work together).

10 years agoTweaks for Animation Editor Translations:
Joshua Leung [Wed, 27 Jan 2010 09:42:17 +0000 (09:42 +0000)]
Tweaks for Animation Editor Translations:
* Auto-snapping can now be toggled on/off using Ctrl-Key again. Defaults to turning Nearest-Frame on if no auto-snapping is enabled, since this offers the best snapping behaviour in general.

* Graph Editor's 'Draw Time' option can now be taken into account for increment snapping/stepping

10 years agomissing check for NULL poll for wmPaintCursorDraw which is allowed.
Campbell Barton [Wed, 27 Jan 2010 09:36:28 +0000 (09:36 +0000)]
missing check for NULL poll for wmPaintCursorDraw which is allowed.
would crash when in transform and moving the mouse over another window.

10 years ago- duplicate window crasheing when it was full screen
Campbell Barton [Wed, 27 Jan 2010 09:16:28 +0000 (09:16 +0000)]
- duplicate window crasheing when it was full screen
- keymap item was missing NULL check crash
- editmode object in inactive layer crash

10 years agoFix [#20773] NODE ANIMATION: Animating node values broken
Matt Ebb [Wed, 27 Jan 2010 05:42:17 +0000 (05:42 +0000)]
Fix [#20773] NODE ANIMATION: Animating node values broken

Now the compositing node tree will update on frame change if any of the
nodes are animated.

This doesn't work for playback (i.e. alt a), that's better off waiting until we
have some kind of frame caching system.

10 years agoMissed these files in the last commit ..
Matt Ebb [Wed, 27 Jan 2010 02:21:52 +0000 (02:21 +0000)]
Missed these files in the last commit ..

Also meant to mention, on the todo: show the confirmation before closing the file selector,
rather than afterwards where it's inconvenient and easy to miss...

10 years ago[#20728] "Export UV Layout" overwrites existing files (without feedback)
Matt Ebb [Wed, 27 Jan 2010 02:20:24 +0000 (02:20 +0000)]
[#20728] "Export UV Layout" overwrites existing files (without feedback)

The 'save over' popup was only appearing based on a string comparison of the operator name ("Save"). Changed this to use a hidden operator property: "check_existing". Python operators must
have this property for the file selector confirmation too.

This property can also be set to false, to prevent checking for existing files, useful in the File->Save menu item to prevent the dangerously missable confirmation popup.

10 years agoFixes to Color Balance node:
Matt Ebb [Wed, 27 Jan 2010 00:22:29 +0000 (00:22 +0000)]
Fixes to Color Balance node:

* The Lift/Gamma/Gain formula previously was incorrect, fixed this and
removed conversions - now the RNA values are the same as what goes into
the formula.
* Because of this, added the ability for the Value slider to map to a wider range
than 0.0-1.0. The black/white gradient remains the same, in this case just
indicating darker/brighter rather than absolute colour values. Also added ability
for color wheels to be locked at full brightness (useful for this case, where the
color value itself is dark).
* Added an alternate formula - offset/power/slope (asc-cdl). This fits the standard
Color Decision List formula, here for compatibility with other systems, though
default Lift/Gamma/Gain is easier to use and gives nicer results.

10 years agobugfix [#20823] Attempting to undo renaming a UV set on this scene causes a crash
Campbell Barton [Wed, 27 Jan 2010 00:01:59 +0000 (00:01 +0000)]
bugfix [#20823] Attempting to undo renaming a UV set on this scene causes a crash

10 years agoFix for 3d view's properties region notifier: 3D cursor position was not updated
Elia Sarti [Tue, 26 Jan 2010 23:32:03 +0000 (23:32 +0000)]
Fix for 3d view's properties region notifier: 3D cursor position was not updated

10 years agoCMake: fix MSVC debug build crash at startup when ffmpeg enabled.
Benoit Bolsee [Tue, 26 Jan 2010 22:49:59 +0000 (22:49 +0000)]
CMake: fix MSVC debug build crash at startup when ffmpeg enabled.

A wrong libraries link order was causing this problem for
some reason. Since a sorting algorithm for linked libraries
was already implemented in Unix, I just enabled it for Windows.

Note about CMake 2.6.0: The Link Library Dependencies option
(Linker General settings panel) is automatically enabled, which
causes the Blender libraries to be linked twice because CMake
will also add them in the Additional Dependencies field.
CMake 2.8.0 does not have this problem, please upgrade if you
are still using CMake 2.6.0.