11 years agoAdd FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux.
Guillermo S. Romero [Mon, 9 Nov 2009 20:08:19 +0000 (20:08 +0000)]
Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux.
And handful of whitespace clean ups.

11 years agofix for running datatoc on files in a subdir (was adding slashes into the C variable...
Campbell Barton [Mon, 9 Nov 2009 20:03:59 +0000 (20:03 +0000)]
fix for running datatoc on files in a subdir (was adding slashes into the C variable name)

11 years agoUpdate of older commit (23102) from Bob Holcomb -- fix for Darken mode blending was...
Roland Hess [Mon, 9 Nov 2009 19:20:48 +0000 (19:20 +0000)]
Update of older commit (23102) from Bob Holcomb -- fix for Darken mode blending was only in place for nodes, not for general texture blending. This updates texture blending to reflect the fix. Now results don't trend toward black on Darken anymore as factor approaches 0.

11 years ago- scons fix for linux build
Damien Plisson [Mon, 9 Nov 2009 18:32:59 +0000 (18:32 +0000)]
- scons fix for linux build

11 years agoMac :
Damien Plisson [Mon, 9 Nov 2009 17:52:13 +0000 (17:52 +0000)]
Mac :
- scons update to build with openCollada

- scons & cmake update for render optimization cflags

11 years ago- fix Cocoa window setOrder function to maintain focus on a blender window (e.g....
Damien Plisson [Mon, 9 Nov 2009 17:06:48 +0000 (17:06 +0000)]
- fix Cocoa window setOrder function to maintain focus on a blender window (e.g. ensure the blender window gets the focus when the user presses ESC to move back the render window)

- QuickTime export fixes.
Note that QuickTime export still crashes because it tries to open a "codec settings" dialog from the rendering background thread (and not the main/UI thread).
One quick fix may be to move the movie export initialization out of the render thread back into the operator function.
But a cleaner way would be to get rid of such a carbon/win32 dialog and place the codec settings inside blender interface
(additional fields in the output panel as it is currently the case for other file formats ?).

11 years agomaterial shader curve factor (same as compo node)
Campbell Barton [Mon, 9 Nov 2009 16:00:12 +0000 (16:00 +0000)]
material shader curve factor (same as compo node)

11 years ago* Fixing tooltips: "ratraced" > "raytraced". Patch by Oxben on mailing list. Thanks.
Thomas Dinges [Mon, 9 Nov 2009 13:55:04 +0000 (13:55 +0000)]
* Fixing tooltips: "ratraced" > "raytraced". Patch by Oxben on mailing list. Thanks.

11 years agoworkaround for crash when dragging nodes
Campbell Barton [Mon, 9 Nov 2009 11:15:49 +0000 (11:15 +0000)]
workaround for crash when dragging nodes

11 years agosimple fix, still worked on my PC somehow
Campbell Barton [Mon, 9 Nov 2009 09:16:16 +0000 (09:16 +0000)]
simple fix, still worked on my PC somehow

11 years ago- added particle select_inverse
Campbell Barton [Mon, 9 Nov 2009 08:51:34 +0000 (08:51 +0000)]
- added particle select_inverse
- added select root/tip to the select menu
- selection drawing updates for select more/less were not working

11 years agoOpenGL grease pencil render
Campbell Barton [Mon, 9 Nov 2009 08:03:43 +0000 (08:03 +0000)]
OpenGL grease pencil render

Algorith: needed to add some functions since offscreen render doesn't have a context pointer
 - draw_gpencil_3dview_ext
 - gpencil_data_get_active_v3d

11 years agoFixed this startup crash on windows:
Robin Allen [Sun, 8 Nov 2009 21:33:43 +0000 (21:33 +0000)]
Fixed this startup crash on windows:

- cd to blender dir
- type 'blender'
- crash

11 years ago*Small tooltip fix for strand start/end.
Thomas Dinges [Sun, 8 Nov 2009 17:58:06 +0000 (17:58 +0000)]
*Small tooltip fix for strand start/end.

11 years agoSequencer: (small Durian wish)
Andrea Weikert [Sun, 8 Nov 2009 15:03:10 +0000 (15:03 +0000)]
Sequencer: (small Durian wish)
* new operator: set rendersize (SEQUENCE_OT_rendersize) sets the render output size in the current scene to the size of the active sequence strip
* works for movies and images right now
* TODO: currently only works if image or movie strip has been loaded (as in showing the preview for example) - reason is that otherwise the size is not initialized in the strip

11 years agouse the cwd for the shell prompt, use subprocess.getstatusoutput rather then popen()
Campbell Barton [Sun, 8 Nov 2009 12:35:37 +0000 (12:35 +0000)]
use the cwd for the shell prompt, use subprocess.getstatusoutput rather then popen()

11 years agosupport much longer prompts for the console
Campbell Barton [Sun, 8 Nov 2009 11:33:01 +0000 (11:33 +0000)]
support much longer prompts for the console

11 years ago* Removed "Lock" Prefix from items inside Transform Lock Panel for consistency.
Thomas Dinges [Sun, 8 Nov 2009 11:07:00 +0000 (11:07 +0000)]
* Removed "Lock" Prefix from items inside Transform Lock Panel for consistency.
* Code cleanup to match guidelines, we don't use subrow1 or so anymore, remember? :)

11 years agoNodes:
Thomas Dinges [Sun, 8 Nov 2009 10:20:03 +0000 (10:20 +0000)]
* Slight offset tweak for Node header icons, not so cluttered now.

11 years agoMSVC 9 projectfiles
Andrea Weikert [Sun, 8 Nov 2009 10:07:37 +0000 (10:07 +0000)]
MSVC 9 projectfiles
* small maintenance: rna_fcurve_api.c added

11 years agoGraph Editor Drawing Tweaks:
Joshua Leung [Sun, 8 Nov 2009 06:43:08 +0000 (06:43 +0000)]
Graph Editor Drawing Tweaks:
* When there is only a single keyframe for a F-Curve, the handles aren't shown anymore. This looks nicer than the fat orange blobs that appeared
* Tweaked the management of GL_BLEND when drawing animation channels in the Graph Editor in an attempt to fix some of the missing text drawn issues.
* Converted the properties panel to use layout engine + added color selectors

11 years agobpy/rna api class feature
Campbell Barton [Sun, 8 Nov 2009 01:13:19 +0000 (01:13 +0000)]
bpy/rna api class feature
- python defined classes will be used when available (otherwise automaically generated metaclasses are made as before)
- use properties rather then functions for python defined rna class's
- call the classes getattr AFTER doing an RNA lookup, avoids setting and clearing exceptions for most attribute lookups, tested UI scripts are ~25% faster.
- extending rna py classes this way is a nicer alternative to modifying the generated metaclasses in place.

Example class

--- snip
class Object(bpy.types.ID):

    def _get_children(self):
        return [child for child in if child.parent == self]

    children = property(_get_children)
--- snip

The C initialization function looks in for classes matching RNA structure names, using them when available.
This means all objects in python will be instances of these classes.
Python properties/funcs defined in ID py class will also be available for subclasses for eg. (Group Mesh etc)

11 years agopedantic enum string consistancy
Campbell Barton [Sat, 7 Nov 2009 22:12:03 +0000 (22:12 +0000)]
pedantic enum string consistancy

11 years agopep8 whitespace commit
Campbell Barton [Sat, 7 Nov 2009 22:07:46 +0000 (22:07 +0000)]
pep8 whitespace commit
bpy/rna api (no functionality change, just move getting the srna py base into a function)

11 years agofluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff)
Martin Poirier [Sat, 7 Nov 2009 17:47:54 +0000 (17:47 +0000)]
fluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff)

11 years agoMerge -c 24393 (patch by Jan) from COLLADA branch.
Arystanbek Dyussenov [Sat, 7 Nov 2009 14:34:04 +0000 (14:34 +0000)]
Merge -c 24393 (patch by Jan) from COLLADA branch.

11 years agomissed committing this file (from Stani's patch)
Campbell Barton [Sat, 7 Nov 2009 14:17:49 +0000 (14:17 +0000)]
missed committing this file (from Stani's patch)

11 years ago- added console language type
Campbell Barton [Fri, 6 Nov 2009 23:53:40 +0000 (23:53 +0000)]
- added console language type
- separated python console from the interactive console
- added shell console type (simple example)
- console types are autodetected and can be selected in the menu

11 years ago- modal keymap for border select
Campbell Barton [Fri, 6 Nov 2009 22:51:08 +0000 (22:51 +0000)]
- modal keymap for border select
- revert circle select keys adjustments & view navigation while selecting (durian guys liked but allowed activating multiple circle select's at once)

11 years agoapi changes suggested by Stani
Campbell Barton [Fri, 6 Nov 2009 22:42:15 +0000 (22:42 +0000)]
api changes suggested by Stani

11 years agoFix for transform orientation fix, probably forgot to commit this?
Brecht Van Lommel [Fri, 6 Nov 2009 22:10:08 +0000 (22:10 +0000)]
Fix for transform orientation fix, probably forgot to commit this?

11 years agoBugfix: crash in posemode transform buttons with no active pose bone.
Brecht Van Lommel [Fri, 6 Nov 2009 21:41:07 +0000 (21:41 +0000)]
Bugfix: crash in posemode transform buttons with no active pose bone.

11 years agoMake orientation matrix access function public.
Martin Poirier [Fri, 6 Nov 2009 21:31:14 +0000 (21:31 +0000)]
Make orientation matrix access function public.

Fix bug in previous code: passing 3x3 matrix to a function expecting a 4x4 (warnings are for something)

11 years ago* Added "Align View to Selected" to the View > Align View menu.
Thomas Dinges [Fri, 6 Nov 2009 21:10:45 +0000 (21:10 +0000)]
* Added "Align View to Selected" to the View > Align View menu.
Patch by Jeff Doyle (nfz). Thanks!

11 years agoB.blend.c update. Only change is that brushes and panels are not saved, so
Brecht Van Lommel [Fri, 6 Nov 2009 14:46:07 +0000 (14:46 +0000)]
B.blend.c update. Only change is that brushes and panels are not saved, so
that they will be recreated with defaults settings/order.

11 years agoexperemental durian request, allow view manipulation while using circle select
Campbell Barton [Fri, 6 Nov 2009 12:43:20 +0000 (12:43 +0000)]
experemental durian request, allow view manipulation while using circle select

11 years ago- removing the last particle system now exits particle edit mode.
Campbell Barton [Fri, 6 Nov 2009 12:27:28 +0000 (12:27 +0000)]
- removing the last particle system now exits particle edit mode.
- py UI script used an undeclared variable

11 years agoDriver Scripting:
Joshua Leung [Fri, 6 Nov 2009 11:09:04 +0000 (11:09 +0000)]
Driver Scripting:

Added RNA functions for adding and removing Driver Targets. Unfortunately, I couldn't do this by simply adding callbacks for the add/remove of the collection, as I've had to add to extra RNA functions to do that.

Example usage - driving Lamp Distance with Cube LocZ:

# drivers is list of F-Curves that have driver data
drivers= myOb.animation_data.drivers
distDriver= drivers[0].driver

dtar= distDriver.add_target("ctrl1")
dtar.id_type= 'OBJECT'["Cube"]
dtar.rna_path= "location"
dtar.array_index= 2

11 years agobring back align to view to object
Campbell Barton [Fri, 6 Nov 2009 10:38:00 +0000 (10:38 +0000)]
bring back align to view to object
- In 2.4x this was numpad *, however that would only align on the Z axis.
- New behavior for VIEW3D_OT_viewnumpad, holding Shift with Numpad 1/3/7 sets the left/top/front etc on the normal axis.
- Uses active bone, face, edge, vert, curve handel & object (just like the view manipulator with 'Normal' selected).

11 years agopatch from Stani, support for function arguments in autocomplete
Campbell Barton [Fri, 6 Nov 2009 08:53:07 +0000 (08:53 +0000)]
patch from Stani, support for function arguments in autocomplete

11 years agoFix for scons + mingw compiling
Joshua Leung [Fri, 6 Nov 2009 08:32:50 +0000 (08:32 +0000)]
Fix for scons + mingw compiling

Removed the special exception for booleans lib priority, which was needed in the past to get it compiling ok with the src directory.

11 years agoUpdate MSVC project files for openCollada.
Benoit Bolsee [Thu, 5 Nov 2009 21:34:47 +0000 (21:34 +0000)]
Update MSVC project files for openCollada.

11 years agoFix #19763: crash with tooltip open & maximizing area to fullscreen.
Brecht Van Lommel [Thu, 5 Nov 2009 20:51:36 +0000 (20:51 +0000)]
Fix #19763: crash with tooltip open & maximizing area to fullscreen.

11 years agoSimple one liner....
Kent Mein [Thu, 5 Nov 2009 20:35:36 +0000 (20:35 +0000)]
Simple one liner....
Added options to add Flip normals to toolbar.  (iCer on irc is responsible)


11 years agoFix bug #19754: alt + scrollwheel to change button values was not
Brecht Van Lommel [Thu, 5 Nov 2009 20:32:46 +0000 (20:32 +0000)]
Fix bug #19754: alt + scrollwheel to change button values was not
working in popup menus, silly workaround now until this uses modal

11 years agoFix for bug #19692: setting text on curve, bevel or taper object did
Brecht Van Lommel [Thu, 5 Nov 2009 19:32:10 +0000 (19:32 +0000)]
Fix for bug #19692: setting text on curve, bevel or taper object did
not update dependency graph causing missing updates.

11 years agoview docs was broken for operators - was getting the nested class string.
Campbell Barton [Thu, 5 Nov 2009 19:31:38 +0000 (19:31 +0000)]
view docs was broken for operators - was getting the nested class string.

11 years agoFix for bug #19817: cloth simulation with collision slow on Mac.
Brecht Van Lommel [Thu, 5 Nov 2009 19:06:29 +0000 (19:06 +0000)]
Fix for bug #19817: cloth simulation with collision slow on Mac.

The cause of this is in the bullet library, seems like some kind
of poor handling of many repeated allocations by Mac OS X, but the
allocation is unnecessary, so removed it.

Patch submitted to bullet:

11 years agooperator to select pos/neg verts on any axis relative to the active vertex
Campbell Barton [Thu, 5 Nov 2009 18:29:48 +0000 (18:29 +0000)]
operator to select pos/neg verts on any axis relative to the active vertex
- useful to select the center verts of a model without having to attempt to border select
- useful for selecting one half or a model

11 years agoFix makefiles for modifiers commit.
Brecht Van Lommel [Thu, 5 Nov 2009 18:17:18 +0000 (18:17 +0000)]
Fix makefiles for modifiers commit.

11 years ago2.5 Modifiers: mesh deform, boolean and decimation work again.
Brecht Van Lommel [Thu, 5 Nov 2009 18:05:55 +0000 (18:05 +0000)]
2.5 Modifiers: mesh deform, boolean and decimation work again.

11 years agoadding group instances didnt do an undo push
Campbell Barton [Thu, 5 Nov 2009 17:43:23 +0000 (17:43 +0000)]
adding group instances didnt do an undo push

11 years ago- converted circle select use a modal map
Campbell Barton [Thu, 5 Nov 2009 17:32:06 +0000 (17:32 +0000)]
- converted circle select use a modal map
- now works exactly like 2.4x, except that its accessed from the CKey
- hack to remember circle size, need some better way to do this

11 years agoFix warnings in RNA, one being an actual bug in setting an object's layer.
Brecht Van Lommel [Thu, 5 Nov 2009 17:28:10 +0000 (17:28 +0000)]
Fix warnings in RNA, one being an actual bug in setting an object's layer.

11 years agoMoved the object and bone name fields out of the Transform panel in 3Dview properties...
William Reynish [Thu, 5 Nov 2009 17:22:11 +0000 (17:22 +0000)]
Moved the object and bone name fields out of the Transform panel in 3Dview properties. They're in a new panel now called 'Item'. Needs an update in the B.blend to put it on the top.

11 years agoFix for bug #19807: renaming texture layers in editmode crashes.
Brecht Van Lommel [Thu, 5 Nov 2009 16:40:12 +0000 (16:40 +0000)]
Fix for bug #19807: renaming texture layers in editmode crashes.

11 years agoonly run the banner function for console (not reports)
Campbell Barton [Thu, 5 Nov 2009 16:30:18 +0000 (16:30 +0000)]
only run the banner function for console (not reports)

11 years ago- circle select mouse wheel resize now works (somehow mouse wheel generates a mouse...
Campbell Barton [Thu, 5 Nov 2009 15:59:14 +0000 (15:59 +0000)]
- circle select mouse wheel resize now works (somehow mouse wheel generates a mouse up event)
- context.active_bone wasnt set to an editbone type

11 years agowas setting the active material on exit editmode rather then enter
Campbell Barton [Thu, 5 Nov 2009 14:54:02 +0000 (14:54 +0000)]
was setting the active material on exit editmode rather then enter

11 years agolast commit broke entering editmode
Campbell Barton [Thu, 5 Nov 2009 14:42:39 +0000 (14:42 +0000)]
last commit broke entering editmode

11 years agoMoved the buttons around slightly in shape keys, to make it clearer what is action...
William Reynish [Thu, 5 Nov 2009 14:31:17 +0000 (14:31 +0000)]
Moved the buttons around slightly in shape keys, to make it clearer what is action buttons, and what is toggles.

11 years agoenter editmode when adding objects even if the object is not in an active layer,
Campbell Barton [Thu, 5 Nov 2009 14:25:08 +0000 (14:25 +0000)]
enter editmode when adding objects even if the object is not in an active layer,
useful for python but in rare cases this also happens for users.

Active layer getting out of sync is an old bug but hard find when it happens.
This at least fixes segfaulting on adding objects.

11 years agoSelect interior faces, access from the mesh select menu
Campbell Barton [Thu, 5 Nov 2009 12:37:49 +0000 (12:37 +0000)]
Select interior faces, access from the mesh select menu

new mesh functions, remove duplicates in uvproject and mesh_skin
- face.edge_keys()
- edge.key()
- mesh.edge_face_count()
- mesh.edge_face_count_dict()

11 years ago- added bpy.context to the python module
Campbell Barton [Thu, 5 Nov 2009 11:17:09 +0000 (11:17 +0000)]
- added bpy.context to the python module
- made the console banner printing function into a python operator (includes sys.version)
- added 'C' into the consoles default namespace for convenience

11 years agopython console autocomplete would crash (missing NULL check for pose channels)
Campbell Barton [Thu, 5 Nov 2009 10:50:58 +0000 (10:50 +0000)]
python console autocomplete would crash (missing NULL check for pose channels)
add rna functions id.animation_data_create() and id.animation_data_clear() - works for all ID types that support animdata.

11 years agoBugfixes + Spline IK Tweaks:
Joshua Leung [Thu, 5 Nov 2009 10:09:45 +0000 (10:09 +0000)]
Bugfixes + Spline IK Tweaks:
* #19819: 'Select' operator for Hooks was crashing when Hooks didn't have any vertices assigned yet

* Default twist resolution mode for curves is now 'Minimise'. This seems to work better for Curve Deforms and other purposes. Can be changed if other ways are better after some more testing.

* Spline IK now has more options for controlling how the x and z axis scaling is determined. There is now a choice between using the radius of the curve, the x+z scaling from the bones, or no scaling (default). This does break old files a bit, but this is to have a more stable base for later.

11 years agoFix for error in previous fix - oops ( [#19818] )
Matt Ebb [Thu, 5 Nov 2009 10:02:29 +0000 (10:02 +0000)]
Fix for error in previous fix  - oops ( [#19818] )

11 years agofix for editing docs
Campbell Barton [Thu, 5 Nov 2009 10:02:14 +0000 (10:02 +0000)]
fix for editing docs

11 years ago* Fix for [#19700] undo doesn't display visual feedback on lattices
Matt Ebb [Thu, 5 Nov 2009 09:57:43 +0000 (09:57 +0000)]
* Fix for [#19700] undo doesn't display visual feedback on lattices

Depgraph update was commented out in undo system because of globals, restored this with new context/id-based depgraph

* Fix in UV editor UV menu
* Slightly nicer default names for adding forcefields with Add menu

11 years agoArmature Editing Bugfixes:
Joshua Leung [Thu, 5 Nov 2009 08:54:33 +0000 (08:54 +0000)]
Armature Editing Bugfixes:

* #19790: Circle Select doesn't work for Armature edit mode or pose mode
* Duplicate bones (Shift-D) was calling the wrong operator. This now uses the macro version, instead of the copy only.

11 years agoFix for [#19780] pivot for rotation/scaling doesn't use "active vert/edge/face"
Matt Ebb [Thu, 5 Nov 2009 04:37:42 +0000 (04:37 +0000)]
Fix for [#19780] pivot for rotation/scaling doesn't use "active vert/edge/face"

Martin please doublecheck, but it should be all good.

11 years agoFix for [#19793] Resolution Sliding Crashes Blender 2.5 SVN 24256
Matt Ebb [Thu, 5 Nov 2009 04:07:58 +0000 (04:07 +0000)]
Fix for [#19793] Resolution Sliding Crashes Blender 2.5 SVN 24256

11 years agoFix for [#19299] Color render bug
Matt Ebb [Thu, 5 Nov 2009 03:39:42 +0000 (03:39 +0000)]
Fix for [#19299] Color render bug
Caused by very evil AO subtractive mode going negative once again...

11 years agoAdded mass and spring vertex groups to softbody rna/ui
Matt Ebb [Thu, 5 Nov 2009 02:50:26 +0000 (02:50 +0000)]
Added mass and spring vertex groups to softbody rna/ui

11 years agoRNA transform properties for edit bones and metaballs
Matt Ebb [Thu, 5 Nov 2009 02:21:04 +0000 (02:21 +0000)]
RNA transform properties for edit bones and metaballs

11 years agoAdded RNA based transform properties for pose bones too.
Matt Ebb [Thu, 5 Nov 2009 01:00:17 +0000 (01:00 +0000)]
Added RNA based transform properties for pose bones too.

I've left the old code commented out for now hough - do we still want to
be able to edit all rotation types as eulers in the transform properties buttons?
Seems a bit odd to me, what do animators think? If so, maybe we need some
ui-level conversion options in the RNA buttons code...

11 years ago* Partial fix for bug [#19734] N panel's transform doesn't display the units
Matt Ebb [Wed, 4 Nov 2009 23:14:20 +0000 (23:14 +0000)]
* Partial fix for bug [#19734] N panel's transform doesn't display the units

Converted the Object transform properties to use rna/rna buttons. This has the advantage of not only displaying/editing units, but also RMB menu, keyframing, drivers, etc too. Part of this was to convert 'Dimensions' to an rna property, converting to and from scale. This also allows you to set the object's dimensions via fcurves or python, but note that it's driving the object scale setting internally so if you animate both dimension and scale at the same time one will override the other (i don't expect many people to attempt this).

11 years ago- missing return values
Campbell Barton [Wed, 4 Nov 2009 22:36:46 +0000 (22:36 +0000)]
- missing return values
- more detailed exceptions (always give file:line incase the python exception doesnt)
- fix some errors in the edit docs

editing docs still fails, need to figure out why.

11 years ago- Stopping jobs on undo wasnt fixing undo/redo while with render previews as it was...
Campbell Barton [Wed, 4 Nov 2009 20:50:09 +0000 (20:50 +0000)]
- Stopping jobs on undo wasnt fixing undo/redo while with render previews as it was supposed to: needed WM_jobs_stop_all rather then WM_jobs_stop because it ends the thread rather then just setting 'stop'.
- gpl header + warning fix

11 years agomake render, world and material buttons show when netrender is selected
Martin Poirier [Wed, 4 Nov 2009 20:42:05 +0000 (20:42 +0000)]
make render, world and material buttons show when netrender is selected

11 years ago- move WM operators out of into their own file
Campbell Barton [Wed, 4 Nov 2009 20:21:08 +0000 (20:21 +0000)]
- move WM operators out of into their own file
- fix operator template

11 years agoBugfix: sculpt layer brush "persistent" option was not showing up in UI.
Brecht Van Lommel [Wed, 4 Nov 2009 20:12:27 +0000 (20:12 +0000)]
Bugfix: sculpt layer brush "persistent" option was not showing up in UI.

11 years agobugfix [#19804] .MDD is not working?? // Also filetype issue?
Campbell Barton [Wed, 4 Nov 2009 18:35:32 +0000 (18:35 +0000)]
bugfix [#19804] .MDD is not working?? // Also filetype issue?

- made all exporters default to the blend filename with the extension replaced
- MDD's poll function now checks for an active mesh
- multiline docstrings are written as multiline docs when generating epydocs

11 years agoMac / Cocoa:
Damien Plisson [Wed, 4 Nov 2009 17:50:31 +0000 (17:50 +0000)]
Mac / Cocoa:

- Fix update event fired at each loop iteration. Thx Brecht for the patch
- Fix missing deactivate event when in fullscreen mode

11 years agobpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.
Campbell Barton [Wed, 4 Nov 2009 17:16:58 +0000 (17:16 +0000)]
bpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.
rename import to import_scene, import_anim, future import_sequence_edl, import_model etc..

11 years agofix for some python errors
Campbell Barton [Wed, 4 Nov 2009 16:26:08 +0000 (16:26 +0000)]
fix for some python errors

11 years agoMerging change 24311 from COLLADA branch into trunk which should fix object-based...
Arystanbek Dyussenov [Wed, 4 Nov 2009 15:25:57 +0000 (15:25 +0000)]
Merging change 24311 from COLLADA branch into trunk which should fix object-based rotation import/export. Bone rotation animation not fixed yet.

11 years agopython function for adding a driver. eg
Campbell Barton [Wed, 4 Nov 2009 15:16:41 +0000 (15:16 +0000)]
python function for adding a driver. eg

 ob.driver_add("location", 0) # x location only

Also changed ANIM_add_driver so an index of -1 adds drivers to every item in the array

11 years agonew operator directory, move some scripts from io
Campbell Barton [Wed, 4 Nov 2009 14:40:35 +0000 (14:40 +0000)]
new operator directory, move some scripts from io

11 years agoquick update of bvh importer for blender 2.5, mostly this is to test the python api.
Campbell Barton [Wed, 4 Nov 2009 14:33:37 +0000 (14:33 +0000)]
quick update of bvh importer for blender 2.5, mostly this is to test the python api.
- bvh joint rotations are not working quite right yet

11 years agobvh import from 2.4x (unchanged)
Campbell Barton [Wed, 4 Nov 2009 14:31:14 +0000 (14:31 +0000)]
bvh import from 2.4x (unchanged)

11 years agoBridge edge loops would loose all edge flags.
Campbell Barton [Wed, 4 Nov 2009 14:28:43 +0000 (14:28 +0000)]
Bridge edge loops would loose all edge flags.
Would happen in any case where python added new mesh data into an existing mesh.

fix by copying the old edges into the new array

11 years agochange to insert_keyframe() so an array index of -1 keys all arrays indices
Campbell Barton [Wed, 4 Nov 2009 14:06:10 +0000 (14:06 +0000)]
change to insert_keyframe() so an array index of -1 keys all arrays indices
made this default for python so you can do...

rather then
 pose_bone.keyframe_insert("location", 0)
 pose_bone.keyframe_insert("location", 1)
 pose_bone.keyframe_insert("location", 2)

11 years agoparticle vertex group UI
Campbell Barton [Wed, 4 Nov 2009 12:09:02 +0000 (12:09 +0000)]
particle vertex group UI
Changed RNA vgroup access to use strings (string functions adjust the ints used internally)

11 years agoSpline IK: Rolling Control
Joshua Leung [Wed, 4 Nov 2009 11:30:48 +0000 (11:30 +0000)]
Spline IK: Rolling Control

Recoded the way that Spline-IK computes the x+z axes of the bones so that flipping artifacts are minimised, and the rotation of individual bones can be used to affect the results of the solution, as per requests from Cessen.

The bone matrices are now computed normally, and then made to conform to the orientation + scaling imposed by the splines, using the Damped-Track method. Previously, the axes of the bones were calculated without regarding the prior orientation of other bones in the chain, which lead to "z-twists".

Notes for further investigation:
- There appears to be some shearing that gets introduced now. Unforunately, I can't seem to isolate the cause of this, but I hope it's not going to become too much of a problem in general.
- Maybe inverse corrections for rotation will now be necessary when using transform tools?

11 years agoMake Links (Ctrl+L) back
Campbell Barton [Wed, 4 Nov 2009 10:25:57 +0000 (10:25 +0000)]
Make Links (Ctrl+L) back
- split into 2 operators: object.make_links_data() & object.make_links_scene since they are quite different.
- added reusable functions RNA_group_itemf & RNA_scene_itemf which can be used for any operator that takes ID data (easy to add more types Mesh, Text etc)
- DummyRNA_NULL_items for dynamic items so each operator need not define its own empty enum.

11 years agoSecond try at fixing this... the props were still not getting initialised in many...
Joshua Leung [Wed, 4 Nov 2009 09:55:24 +0000 (09:55 +0000)]
Second try at fixing this... the props were still not getting initialised in many cases, but this time because those were using the exec() callbacks which didn't set this. This fix ain't that nice, but at least the old functionality works again like 2.4x.

11 years agoBugfixes for Adding Objects:
Joshua Leung [Wed, 4 Nov 2009 09:45:37 +0000 (09:45 +0000)]
Bugfixes for Adding Objects:

* Auto enter EditMode for adding Armatures was broken
* Adding a camera no longer tries to enter editmode, even though that's invalid...

11 years agoFix #19533: Autoupdate check box not working for UV/Image Editor.
Brecht Van Lommel [Wed, 4 Nov 2009 09:22:16 +0000 (09:22 +0000)]
Fix #19533: Autoupdate check box not working for UV/Image Editor.

11 years agoFix #19742: shape key crashes for curve & lattice.
Brecht Van Lommel [Wed, 4 Nov 2009 09:20:31 +0000 (09:20 +0000)]
Fix #19742: shape key crashes for curve & lattice.