12 years agoSupport for the C Macro system in Python.
Martin Poirier [Sat, 5 Dec 2009 19:27:26 +0000 (19:27 +0000)]
Support for the C Macro system in Python.

Basic definition works like a python operator but you derive from "bpy.types.Macro" instead.
Operators are added to the macro after it has been added with "bpy.ops.add_macro" through the class method "define" which takes an operator id and returns an OperatorMacroType (new RNA type) for which properties can then be defined to be passed to the operator when run.


Using this system, it should be easy to add an operator to the console that converts selected lines into a macro or even a more generic record macro system.

12 years agosplit up metarig hierarchy evaluation and modifying the metarig into 2 steps,
Campbell Barton [Sat, 5 Dec 2009 19:26:28 +0000 (19:26 +0000)]
split up metarig hierarchy evaluation and modifying the metarig into 2 steps,
original bone names cant be changed anymore but this means the bones can be re-parented without confusing scripts that run after the rig is modified.
support for defining a bone to have multiple types and  automatically blending between 2 generated rigs

12 years agoMacros in macro didn't work correctly.
Martin Poirier [Sat, 5 Dec 2009 19:05:21 +0000 (19:05 +0000)]
Macros in macro didn't work correctly.

12 years agosimple fix [#20218] Object.is_visible() don't reflect visibility
Campbell Barton [Sat, 5 Dec 2009 14:12:06 +0000 (14:12 +0000)]
simple fix [#20218] Object.is_visible() don't reflect visibility

12 years agoBGE fix for GameLogic["post_draw"] not working with 2DFilters
Dalai Felinto [Sat, 5 Dec 2009 02:30:20 +0000 (02:30 +0000)]
BGE fix for GameLogic["post_draw"] not working with 2DFilters
(reported by Mike Pan(mpan3), it's not in the tracker)

12 years ago* enabled COLLADA for mingw. (Compiles at least with MingW GCC 3.4.2).
Nathan Letwory [Sat, 5 Dec 2009 01:24:45 +0000 (01:24 +0000)]
* enabled COLLADA for mingw. (Compiles at least with MingW GCC 3.4.2).

12 years ago* proper SSE setting for mingw.
Nathan Letwory [Sat, 5 Dec 2009 01:07:42 +0000 (01:07 +0000)]
* proper SSE setting for mingw.
* some cleanup of render module SConscript

12 years ago* provide SCons support to enabling jaguarandi SIMD raytracer optimizations for real :)
Nathan Letwory [Sat, 5 Dec 2009 00:26:20 +0000 (00:26 +0000)]
* provide SCons support to enabling jaguarandi SIMD raytracer optimizations for real :)
  Until now only SSE switches were defined, but to really enjoy the SIMD structures, the
  __SSE__ define needs to be given. This can now be done with setting in your


  (or WITH_BF_RAYOPTIMIZATION=1 on command-line)

12 years agoChanges to netrender baking operator.
Martin Poirier [Fri, 4 Dec 2009 19:13:22 +0000 (19:13 +0000)]
Changes to netrender baking operator.

Force step of 1 for full baking.

12 years agoNull check for baking progressend function
Martin Poirier [Fri, 4 Dec 2009 19:08:07 +0000 (19:08 +0000)]
Null check for baking progressend function

Simplify end of line for console progress.

12 years agoSave_Mainfile operator only needs window for invoke. Removed poll function and replac...
Martin Poirier [Fri, 4 Dec 2009 19:07:25 +0000 (19:07 +0000)]
Save_Mainfile operator only needs window for invoke. Removed poll function and replace by a check in invoke that cancels if no window is present.

Makes it possible to be called in background mode.

12 years agoFix for [#20144] Game physics panel - softbody allows other collision bounds.
Thomas Dinges [Fri, 4 Dec 2009 19:06:17 +0000 (19:06 +0000)]
Fix for [#20144] Game physics panel - softbody allows other collision bounds.

12 years agoString fix and a bunch of PEP8 issues I had collected in the meanwhile.
Guillermo S. Romero [Fri, 4 Dec 2009 17:54:48 +0000 (17:54 +0000)]
String fix and a bunch of PEP8 issues I had collected in the meanwhile.

12 years agotouches for demo'ing
Campbell Barton [Fri, 4 Dec 2009 16:35:31 +0000 (16:35 +0000)]
touches for demo'ing

12 years agoUI: curve widget tweaks
Brecht Van Lommel [Fri, 4 Dec 2009 15:32:26 +0000 (15:32 +0000)]
UI: curve widget tweaks
* Make snap ctrl instead of shift
* Only enable snapping after moving a few pixels,
  otherwise too easy to do enable this by accident.
* Deselecting points with shift did not work.

12 years agoBGE: Add option to return UV coordinates aofthe hit point to KX_GameObject::rayCast...
Benoit Bolsee [Fri, 4 Dec 2009 11:27:40 +0000 (11:27 +0000)]
BGE: Add option to return UV coordinates aofthe hit point to KX_GameObject::rayCast(). Details in PyDoc.

12 years agoUpdate MSVC9 project files
Benoit Bolsee [Fri, 4 Dec 2009 10:45:23 +0000 (10:45 +0000)]
Update MSVC9 project files

12 years agoUpdate MSVC9 project files
Benoit Bolsee [Fri, 4 Dec 2009 10:37:24 +0000 (10:37 +0000)]
Update MSVC9 project files

12 years agoThis commit deletes temporary "temp" screen layouts when the windows using them get...
Joshua Leung [Fri, 4 Dec 2009 09:58:00 +0000 (09:58 +0000)]
This commit deletes temporary "temp" screen layouts when the windows using them get closed.

12 years agoFix for [#20203] Linked objects - A few bugs
Matt Ebb [Fri, 4 Dec 2009 06:33:01 +0000 (06:33 +0000)]
Fix for [#20203] Linked objects - A few bugs

Did a lot of cleaning Object operator poll functions to check if the object's linked
or not. For this, added the function ED_operator_object_active_editable() as
opposed to ED_operator_object_active()

12 years agoFix for [#20157] 2.5 Can`t remove a linked objects from the 3D view by pressing X
Matt Ebb [Fri, 4 Dec 2009 05:05:50 +0000 (05:05 +0000)]
Fix for [#20157] 2.5 Can`t remove a linked objects from the 3D view by pressing X

12 years agoFix for [#19958] Changes in UV/Image editor doesn't refresh mapping on mesh in 3dview...
Matt Ebb [Fri, 4 Dec 2009 04:56:42 +0000 (04:56 +0000)]
Fix for [#19958] Changes in UV/Image editor doesn't refresh mapping on mesh in 3dview immediately

Enabled 'update automatically' (lock) in image editors by default
Also enabled transform manipulators by default, unfortunately missed for alpha 0 release.

12 years agoFix for [#19921] pressing NumpadDot on isolated mode centers the 3D cursor
Matt Ebb [Fri, 4 Dec 2009 04:41:32 +0000 (04:41 +0000)]
Fix for [#19921] pressing NumpadDot on isolated mode centers the 3D cursor

12 years ago* Fix for incorrect disabling after baking cloth sim
Matt Ebb [Fri, 4 Dec 2009 04:28:50 +0000 (04:28 +0000)]
* Fix for incorrect disabling after baking cloth sim
* Fix for time cursor getting 'stuck' after baking point caches

12 years agoBugfixes: Deleting Keyframes + F-Curves
Joshua Leung [Fri, 4 Dec 2009 03:51:52 +0000 (03:51 +0000)]
Bugfixes: Deleting Keyframes + F-Curves

This commit fixes #19908 and #20239. Deleting keyframes will now delete the F-Curves they came from too, if the F-Curves don't have any more keyframes and/or F-Modifiers providing any further motion info.

12 years agorna function
Campbell Barton [Fri, 4 Dec 2009 02:32:34 +0000 (02:32 +0000)]
rna function
 editbone.align(vector), to align the bones z axis to a localspace direction.

finished leg rig pose mode data

12 years agoFix for [#19884] Curve resolution slider not affecting anything
Matt Ebb [Fri, 4 Dec 2009 01:38:36 +0000 (01:38 +0000)]
Fix for [#19884] Curve resolution slider not affecting anything

12 years agoFix for cache path.
Martin Poirier [Fri, 4 Dec 2009 01:28:00 +0000 (01:28 +0000)]
Fix for cache path.
Operator for background baking (no support in netrender itself yet).

12 years agoPrint baking progress to console when window is not available.
Martin Poirier [Fri, 4 Dec 2009 01:26:42 +0000 (01:26 +0000)]
Print baking progress to console when window is not available.

12 years agoCleaning: update a couple of functions to use scene from context instead of from...
Martin Poirier [Fri, 4 Dec 2009 01:25:43 +0000 (01:25 +0000)]
Cleaning: update a couple of functions to use scene from context instead of from screen.

12 years agoPartial fix for [#19874]
Matt Ebb [Fri, 4 Dec 2009 01:21:55 +0000 (01:21 +0000)]
Partial fix for [#19874]
can use RMB to cancel joining areas, same as splitting

12 years agoFix for [#20229] Booleans crash on edge case.
Matt Ebb [Fri, 4 Dec 2009 00:54:40 +0000 (00:54 +0000)]
Fix for [#20229] Booleans crash on edge case.

12 years agoFix for [#19478] Shortkeys for switch to Quad view mode is not working
Matt Ebb [Fri, 4 Dec 2009 00:49:02 +0000 (00:49 +0000)]
Fix for [#19478] Shortkeys for switch to Quad view mode is not working

changed default quad view shortcut to Ctrl Alt Q

12 years agoOnly set baking progress function to cursor when a window is present.
Martin Poirier [Thu, 3 Dec 2009 22:48:00 +0000 (22:48 +0000)]
Only set baking progress function to cursor when a window is present.

This enables baking in background mode (instead of just crashing).

12 years agoleg rig type & metarig example, still need to add IK's
Campbell Barton [Thu, 3 Dec 2009 22:44:11 +0000 (22:44 +0000)]
leg rig type & metarig example, still need to add IK's
fixed some small bugs too.

12 years agoFinish renaming job in Set Center operator to use Origin instead of Center.
Martin Poirier [Thu, 3 Dec 2009 21:56:04 +0000 (21:56 +0000)]
Finish renaming job in Set Center operator to use Origin instead of Center.

Also replace ObData by Geometry and Object Geometry after talk with Matt.

12 years ago- property decorators for setting attributes didnt work, hack to prevent every instan...
Campbell Barton [Thu, 3 Dec 2009 21:53:01 +0000 (21:53 +0000)]
- property decorators for setting attributes didnt work, hack to prevent every instance of an BPyStructRNA to have its own dictionary, set the tp_dictoffset to 0. attempted to use __slots__ but this doesnt work for some reason.
- made bone.length writable

12 years agoFix for [#20240] Image inputs to the compositor are white when using color management
Matt Ebb [Thu, 3 Dec 2009 21:49:29 +0000 (21:49 +0000)]
Fix for [#20240] Image inputs to the compositor are white when using color management

was missing include

12 years agoMake toggle and hold snap method cohabit nicely.
Martin Poirier [Thu, 3 Dec 2009 19:18:00 +0000 (19:18 +0000)]
Make toggle and hold snap method cohabit nicely.

Shift-Tab toggles the global toolsetting snap settings (both in and out of transform).
Holding down Ctrl inverts the snap setting in transform (turns it on when global snap is off and vice versa).
Ctrl-Shift-Tab to select snap mode (only outside of transform for now).

For old (pre 2.5) behavior, just keep global snap off and use Ctrl.

NOTE: transform modal events for snap have change a bit, saved keymap might not work anymore.

12 years agoAdded Toggle Full Screen and Duplicate Area to the menus of all the main spaces in...
William Reynish [Thu, 3 Dec 2009 16:28:50 +0000 (16:28 +0000)]
Added Toggle Full Screen and Duplicate Area to the menus of all the main spaces in Blender

12 years ago- curve geometry curve panel wasnt displaying with no active spline
Campbell Barton [Thu, 3 Dec 2009 14:20:35 +0000 (14:20 +0000)]
- curve geometry curve panel wasnt displaying with no active spline
- graph export didnt work for constraints with no subtarget
- utility functions for duplicating a set of bones and blending between 2 sets

12 years agoQuicktime Carbon: Fix memory leak when build with cocoa
Damien Plisson [Thu, 3 Dec 2009 12:16:00 +0000 (12:16 +0000)]
Quicktime Carbon: Fix memory leak when build with cocoa

12 years agoBugfix: Toggle animation channel visibility (shift-v) was not flushing the new values...
Joshua Leung [Thu, 3 Dec 2009 10:27:22 +0000 (10:27 +0000)]
Bugfix: Toggle animation channel visibility (shift-v) was not flushing the new values correctly

- Modifying groups did not flush status to channels below
- Objects were always toggled. Still need to figure out why this didn't work right...

12 years agoFix for one of the issues in #20230: Comp Nodes animations not saving to .blend
Joshua Leung [Thu, 3 Dec 2009 10:23:38 +0000 (10:23 +0000)]
Fix for one of the issues in #20230: Comp Nodes animations not saving to .blend

AnimData was not getting written to files for Node Trees.

12 years agoBugfix #20190: Scaling Bone Joints in envelope drawmode
Joshua Leung [Thu, 3 Dec 2009 10:18:47 +0000 (10:18 +0000)]
Bugfix #20190: Scaling Bone Joints in envelope drawmode

Made scaling selected joints using SKEY work in the same way as in 2.4x

However, it'd probably be nice to be able to have separate hotkeys for this at a later stage.

12 years agoQTkit : update build checks to allow only 10.5+/64bit builds
Damien Plisson [Thu, 3 Dec 2009 09:59:52 +0000 (09:59 +0000)]
QTkit : update build checks to allow only 10.5+/64bit builds
Other SDK versions do not handle correctly QTKit movie creation in a background thread.
Carbon quicktime should be used for the 32bit builds (USE_QTKIT = 0)

12 years agoBugfix #20219: Timeline navigation
Joshua Leung [Thu, 3 Dec 2009 09:56:31 +0000 (09:56 +0000)]
Bugfix #20219: Timeline navigation

Added missing "View All" (HomeKey) operator for TimeLine

12 years agoFix for color management not working with AVI output, patch by Damien Plisson, thanks!
Matt Ebb [Thu, 3 Dec 2009 09:51:02 +0000 (09:51 +0000)]
Fix for color management not working with AVI output, patch by Damien Plisson, thanks!

12 years agoFix for [#20226] 3DView header: hiding menu texts and layer button's issue.
Matt Ebb [Thu, 3 Dec 2009 09:49:21 +0000 (09:49 +0000)]
Fix for [#20226] 3DView header: hiding menu texts and layer button's issue.

Also: big purge of old 3d view header menus and old unused code

12 years agoFix for [#20168] Particle velocity display toggle issue
Matt Ebb [Thu, 3 Dec 2009 00:42:02 +0000 (00:42 +0000)]
Fix for [#20168] Particle velocity display toggle issue

Thanks Alan Taylor for the initial patch

12 years agoFix for [#20180] Wrong multiplicator in Random Selection
Matt Ebb [Thu, 3 Dec 2009 00:17:34 +0000 (00:17 +0000)]
Fix for [#20180] Wrong multiplicator in Random Selection
Added extend select option to select random (off by default)
Tweaked 'Select Axis' to use an enum for axes

12 years agoFix for [#20154] Shaded draw mode needs to be removed when loading files
Matt Ebb [Wed, 2 Dec 2009 23:14:58 +0000 (23:14 +0000)]
Fix for [#20154] Shaded draw mode needs to be removed when loading files

12 years agoBug fix: Verlet integration didn't work properly with moving particle emitters.
Janne Karhu [Wed, 2 Dec 2009 20:53:28 +0000 (20:53 +0000)]
Bug fix: Verlet integration didn't work properly with moving particle emitters.
Thanks for mcreamsurfer for reporting and Farsthary for the patch!

12 years ago[#20213] Align to Transform Orientation crashes Blender
Martin Poirier [Wed, 2 Dec 2009 19:59:57 +0000 (19:59 +0000)]
[#20213] Align to Transform Orientation crashes Blender

Align needs to be call with region context.

Also added checks to prevent this from crashing if not called properly.

12 years agoMenu handlers need to return OUT when clicking outside, not OK
Martin Poirier [Wed, 2 Dec 2009 19:32:21 +0000 (19:32 +0000)]
Menu handlers need to return OUT when clicking outside, not OK

Caused crashes with window type selector and a slew of other unwanted behaviors.

12 years agochange bone storage class so __slots__ can be used for looping over attributes withou...
Campbell Barton [Wed, 2 Dec 2009 19:13:54 +0000 (19:13 +0000)]
change bone storage class so __slots__ can be used for looping over attributes without getting functions

12 years agoFixed a part of [#20197] dof node bugs.
Thomas Dinges [Wed, 2 Dec 2009 18:35:44 +0000 (18:35 +0000)]
Fixed a part of [#20197] dof node bugs.
* False greying out.

12 years agoMac: Following 10.4 ppc libs availability, update cmake & scons default settings
Damien Plisson [Wed, 2 Dec 2009 18:06:39 +0000 (18:06 +0000)]
Mac: Following 10.4 ppc libs availability, update cmake & scons default settings

12 years agomultiple script paths broke text template menu
Campbell Barton [Wed, 2 Dec 2009 16:11:10 +0000 (16:11 +0000)]
multiple script paths broke text template menu

12 years ago-
Campbell Barton [Wed, 2 Dec 2009 15:37:07 +0000 (15:37 +0000)]
- rigify testnig function, creates all example metarigs, processes and generates graphs for before and after.

12 years agoCocoa: suppress unwanted beep when pressing Cmd + key on 10.4
Damien Plisson [Wed, 2 Dec 2009 15:02:29 +0000 (15:02 +0000)]
Cocoa: suppress unwanted beep when pressing Cmd + key on 10.4

12 years agoQuicktime(Carbon/win32) : add operator to raise the "compression settings" quicktime...
Damien Plisson [Wed, 2 Dec 2009 14:39:49 +0000 (14:39 +0000)]
Quicktime(Carbon/win32) : add operator to raise the "compression settings" quicktime standard dialog

12 years agoUI: remove unnecessary colon on toggle array buttons.
Brecht Van Lommel [Wed, 2 Dec 2009 13:21:22 +0000 (13:21 +0000)]
UI: remove unnecessary colon on toggle array buttons.

12 years agoCocoa: remove errors for all supported SDK/CPU configs
Damien Plisson [Wed, 2 Dec 2009 13:05:31 +0000 (13:05 +0000)]
Cocoa: remove errors for all supported SDK/CPU configs

12 years ago- include example input rigs for each autorig type, running metarig_template() in...
Campbell Barton [Wed, 2 Dec 2009 11:55:47 +0000 (11:55 +0000)]
- include example input rigs for each autorig type, running metarig_template() in each submodule generates the armature and pose bone ID properties.
- rigify.write_meta_rig() exports rigs as python scripts

12 years agoAAO Indirect Diffuse
Brecht Van Lommel [Wed, 2 Dec 2009 11:54:48 +0000 (11:54 +0000)]
AAO Indirect Diffuse

Don't use passes anymore for indirect lighting, people were using this
probably thinking it would do bounces, but that's not the intention of
this feature, it is to reduce problems with light bleeding. I want to
remove this option for AO as well, but will leave it in for now until
there is a better alternative.

Added bounces option for indirect, could be implemented much better,
but perhaps useful for testing now. Existing files need to set this to
1 to get the same results again.

12 years agoQuicktime : make dna codecType data store the quicktime codecType value instead of...
Damien Plisson [Wed, 2 Dec 2009 11:23:11 +0000 (11:23 +0000)]
Quicktime : make dna codecType data store the quicktime codecType value instead of a proxy value

Quicktime codecType data is a 32 bit value (4 chars coded).

Implemented RNA set/get functions for codecType enum to cope with RNA enum values 24bit precision limitation
Implemented dynamic codecType enum list creation

Carbon quicktime now stores codec settings in "clear" in the QuicktimeCodecSettings dna struct (in addition to the closed atom container in QuicktimeCodecData) to be compatible with the QTKit version

+fixed some warnings

12 years agorename armature RNA props
Campbell Barton [Wed, 2 Dec 2009 10:32:39 +0000 (10:32 +0000)]
rename armature RNA props
armature_matrix --> matrix_local
armature_head --> head_local
armature_tail --> tail_local

12 years agoCMake: remove new GHOST_DropTargetWin32.cpp file from non-win32 platforms builds
Damien Plisson [Wed, 2 Dec 2009 10:21:10 +0000 (10:21 +0000)]
CMake: remove new GHOST_DropTargetWin32.cpp file from non-win32 platforms builds

12 years agoCocoa: fix delaying issue for events that were fired outside the processEvents function
Damien Plisson [Wed, 2 Dec 2009 10:10:20 +0000 (10:10 +0000)]
Cocoa: fix delaying issue for events that were fired outside the processEvents function
An example of a visible issue was a delayed wm resize when switching to/from fullscreen mode

12 years agoChanges to Color Management
Matt Ebb [Wed, 2 Dec 2009 07:56:34 +0000 (07:56 +0000)]
Changes to Color Management

After testing and feedback, I've decided to slightly modify the way color
management works internally. While the previous method worked well for
rendering, was a smaller transition and had some advantages over this
new method, it was a bit more ambiguous, and was making things difficult
for other areas such as compositing.

This implementation now considers all color data (with only a couple of
exceptions such as brush colors) to be stored in linear RGB color space,
rather than sRGB as previously. This brings it in line with Nuke, which also
operates this way, quite successfully. Color swatches, pickers, color ramp
display are now gamma corrected to display gamma so you can see what
you're doing, but the numbers themselves are considered linear. This
makes understanding blending modes more clear (a 0.5 value on overlay
will not change the result now) as well as making color swatches act more
predictably in the compositor, however bringing over color values from
applications like photoshop or gimp, that operate in a gamma space,
will give identical results.

This commit will convert over existing files saved by earlier 2.5 versions to
work generally the same, though there may be some slight differences with
things like textures. Now that we're set on changing other areas of shading,
this won't be too disruptive overall.

I've made a diagram explaining the pipeline here:

and some docs here:

12 years agoReset operator properties for keymap items when operator idname is changed.
Martin Poirier [Wed, 2 Dec 2009 04:12:16 +0000 (04:12 +0000)]
Reset operator properties for keymap items when operator idname is changed.

This means added operators in the keymap editor will now show options correctly (maybe not for old .B25.blend)

12 years agoRestore new snap align icon that was lost in previous changes.
Martin Poirier [Wed, 2 Dec 2009 04:07:40 +0000 (04:07 +0000)]
Restore new snap align icon that was lost in previous changes.

12 years ago- finished spine rig generator, (drivers, constraints)
Campbell Barton [Wed, 2 Dec 2009 02:56:22 +0000 (02:56 +0000)]
- finished spine rig generator, (drivers, constraints)
- bug with args passed for class slots being modified in place.
- sort graphviz bones & drivers (useful for diffing 2 armatures)

12 years agoremove icon_only option for snap target option in header to make the button wider...
Martin Poirier [Wed, 2 Dec 2009 01:38:54 +0000 (01:38 +0000)]
remove icon_only option for snap target option in header to make the button wider. Now it's a bit too wide, but at least it can be read.

12 years agoSVN maintenance.
Guillermo S. Romero [Wed, 2 Dec 2009 01:23:29 +0000 (01:23 +0000)]
SVN maintenance.

12 years ago* make sure we don't choke on what we don't have :°
Nathan Letwory [Wed, 2 Dec 2009 01:12:22 +0000 (01:12 +0000)]
* make sure we don't choke on what we don't have :°

12 years ago* make sure drop target files are filtered too.
Nathan Letwory [Wed, 2 Dec 2009 01:05:37 +0000 (01:05 +0000)]
* make sure drop target files are filtered too.

12 years agoApply patch [#20145] Ghost Win32 roundup patch: Minimum Window Size, Continuous Grab...
Nathan Letwory [Wed, 2 Dec 2009 00:57:12 +0000 (00:57 +0000)]
Apply patch [#20145] Ghost Win32 roundup patch: Minimum Window Size, Continuous Grab and Drag And Drop

This nice patch by Matt D. (matd in #blendercoders) adds three nice features that can be seen already in the other supported OSes:

* minimum window size: to prevent some bugs with the window manager of Blender, system windows cannot be resized smaller than the minimum size.

* Continuous Grab is finally in Windows! Default settings since alpha 0 already have the feature enabled by default, so grab a new build and enjoy :)

* GHOST support for drag and drop added. This prepares Blender for drag and drop from OS -> Blender. Currently not very useful, since wm needs to be readied for that. But it does work (do BF_GHOST_DEBUG=1 build and drag a file onto a Blender window).

Thanks Matt D.!

12 years agoBugfix: crash when no active object
Martin Poirier [Wed, 2 Dec 2009 00:53:33 +0000 (00:53 +0000)]
Bugfix: crash when no active object

Misc fixes.

12 years ago* Fix for earlier fix, only check for basis metaball if the object's actually a metaball
Matt Ebb [Tue, 1 Dec 2009 23:55:33 +0000 (23:55 +0000)]
* Fix for earlier fix, only check for basis metaball if the object's actually a metaball

12 years ago- rig spine type WIP, editmode done, still needs pose constraints and drivers.
Campbell Barton [Tue, 1 Dec 2009 22:45:56 +0000 (22:45 +0000)]
- rig spine type WIP, editmode done, still needs pose constraints and drivers.
- bone.translate(vec) utility function

12 years agofix for [#19990] file browser crash
Andrea Weikert [Tue, 1 Dec 2009 20:37:26 +0000 (20:37 +0000)]
fix for [#19990] file browser crash

needed to fix jpg error handling to not return control to the library from jpg_error used as error exit. Needed to add structured exception handling (setjmp/longjmp) - not very nice but needed in this case. (Also recommended in example.c from libjpg and used in gimp ;) )

12 years agocircle select modal operator wasnt returning FINISHED so it wasnt getting an undo...
Campbell Barton [Tue, 1 Dec 2009 19:43:09 +0000 (19:43 +0000)]
circle select modal operator wasnt returning FINISHED so it wasnt getting an undo push

12 years agoAdditive snap for Transform. Easy snapping between two vertices, in the middle of...
Martin Poirier [Tue, 1 Dec 2009 18:26:18 +0000 (18:26 +0000)]
Additive snap for Transform. Easy snapping between two vertices, in the middle of three faces, ...

A to add the current snapping point to the list
Alt-A to remove the last one

The resulting snapping point is the average of all snap points in the list (and the one under the mouse pointer, if valid).

Snapping between two verts is a matter of moving over the first, pressing A, moving over the other, confirming transform.

12 years agoCocoa: proper implementation of the modifiers key wrong value when application become...
Damien Plisson [Tue, 1 Dec 2009 15:46:37 +0000 (15:46 +0000)]
Cocoa: proper implementation of the modifiers key wrong value when application becomes active again
Note: this works fine when running under 10.6, even if compiled with an older sdk
Under 10.4/10.5, workaround remains to assume no modifier key is pressed when the user restores the focus to the application

12 years agoselect pattern for bones
Campbell Barton [Tue, 1 Dec 2009 14:48:36 +0000 (14:48 +0000)]
select pattern for bones

12 years agomore small fixes
Campbell Barton [Tue, 1 Dec 2009 12:43:06 +0000 (12:43 +0000)]
more small fixes

12 years agosmall fixes, also option for fake parent so hierarchy is always from the parent down
Campbell Barton [Tue, 1 Dec 2009 12:25:59 +0000 (12:25 +0000)]
small fixes, also option for fake parent so hierarchy is always from the parent down

12 years agoexport an armature to graphviz showing hierarchy, constraint and driver relationships...
Campbell Barton [Tue, 1 Dec 2009 12:02:23 +0000 (12:02 +0000)]
export an armature to graphviz showing hierarchy, constraint and driver relationships, useful for understanding other peoples complicated rigs.
can be extended for 2.4x oops like graph too/

Example of Cessens spine rig

12 years agoMac scons config: enable cross-compile, set 10.4 as default for ppc (using darwin...
Damien Plisson [Tue, 1 Dec 2009 11:19:18 +0000 (11:19 +0000)]
Mac scons config: enable cross-compile, set 10.4 as default for ppc (using darwin-8.0.0-powerpc libs), set opencollada not to be built by default

12 years agoEigen: fix 10.5 ppc compile error
Damien Plisson [Tue, 1 Dec 2009 10:25:21 +0000 (10:25 +0000)]
Eigen: fix 10.5 ppc compile error

12 years agoCocoa: implement Cmd+W to close window, workaround for wrong modifiers key status...
Damien Plisson [Tue, 1 Dec 2009 10:23:27 +0000 (10:23 +0000)]
Cocoa: implement Cmd+W to close window, workaround for wrong modifiers key status upon focus retrieval
The carbon GetModifierFlag function (to get the current modifier keys status) is reimplemented in cocoa only from 10.6.
So we need to use a workaround to get the correct modifiers when blender application gets focus back. Current one is to assume no modifiers.
This at least fixes the issue when blender has been hidden using Cmd+H. The Cmd modifier was still seen as ON until the user pressed again on it.

12 years agoadded autorig neck type
Campbell Barton [Tue, 1 Dec 2009 00:44:53 +0000 (00:44 +0000)]
added autorig neck type

new bone properties
- bone.basename (name without the extension), "Some.Bone.001" --> "Some.Bone"
- bone.children_recursive_basename, gives a chain of children that have the same basename

12 years agoUser Script support added back.
Campbell Barton [Mon, 30 Nov 2009 22:32:04 +0000 (22:32 +0000)]
User Script support added back.
- the scripts path set in the user preferences or ~/.blender/scripts/ui (io, op, io etc..) will be used to load scripts.
- the default home dir part probably only works in *nix os's

- Added a missing sync callback to vector.toTuple()

12 years agoTransform Modal Map:
Martin Poirier [Mon, 30 Nov 2009 20:20:00 +0000 (20:20 +0000)]
Transform Modal Map:

Adding events for X/Y/Z axis and planar constraints (always use the user orientation, not global first) and for turning constraints off.

Built-in keys (toggle between global, user and off) are not in the map but can be overridden (any events handled by the modal keymap will not enter the built-in map).

12 years agoBugfix: PET circle not drawn correctly in edit mode.
Martin Poirier [Mon, 30 Nov 2009 19:43:59 +0000 (19:43 +0000)]
Bugfix: PET circle not drawn correctly in edit mode.

12 years agosurfaces were displaying the Geometry panel that only curves need
Campbell Barton [Mon, 30 Nov 2009 19:24:13 +0000 (19:24 +0000)]
surfaces were displaying the Geometry panel that only curves need

12 years agoApproximate AO: Diffuse Bounce Hack
Brecht Van Lommel [Mon, 30 Nov 2009 18:42:13 +0000 (18:42 +0000)]
Approximate AO: Diffuse Bounce Hack

This brings back the single bounce indirect diffuse lighting for AAO,
it's not integrated well but that will be tackled later as part of
shading system refactor and subdivision changes. The caveats are the
same as AAO, with one extra thing, the diffuse lighting is sampled once
per face, so it will not be accurate unless faces are subdivided.

I'm committing this now so we can start testing it for Durian, and
since changes need to make it work properly are planned.

12 years agoCleanup:
Thomas Dinges [Mon, 30 Nov 2009 18:26:53 +0000 (18:26 +0000)]
* Deleted "Add" Prefix for mesh.duplicate_move in Toolbar.
* Renamed "duplicate_ipo" property to "duplicate_fcurve"