12 years agoBGE: ray casting works on soft body, the hit polygon is also returned. The modificati...
Benoit Bolsee [Sat, 28 Nov 2009 17:30:34 +0000 (17:30 +0000)]
BGE: ray casting works on soft body, the hit polygon is also returned. The modifications to Bullet have been reported to Bullet forum. Note: welding is completely disabled on soft body as it breaks the relationship between the soft body collision shape and the graphics mesh without bringing any additional stability (the reverse actually).

12 years agoUI:
Nicholas Bishop [Sat, 28 Nov 2009 17:20:42 +0000 (17:20 +0000)]
* Added icons for the 3d manipulator RNA
* Fixed the snap RNA icon (was off by one)

12 years agolasso select for editbones missing flush select call
Campbell Barton [Sat, 28 Nov 2009 15:11:10 +0000 (15:11 +0000)]
lasso select for editbones missing flush select call

12 years agooperator renaming for more consistent word ordering (_add/_remmove shold be last...
Campbell Barton [Sat, 28 Nov 2009 14:37:21 +0000 (14:37 +0000)]
operator renaming for more consistent word ordering (_add/_remmove shold be last, ACT_OT_* --> ACTION_OT_*)

ACT_OT_clean --> ACTION_OT_clean
ACT_OT_clickselect --> ACTION_OT_clickselect
ACT_OT_copy --> ACTION_OT_copy
ACT_OT_delete --> ACTION_OT_delete
ACT_OT_duplicate --> ACTION_OT_duplicate
ACT_OT_extrapolation_type --> ACTION_OT_extrapolation_type
ACT_OT_frame_jump --> ACTION_OT_frame_jump
ACT_OT_handle_type --> ACTION_OT_handle_type
ACT_OT_insert_keyframe --> ACTION_OT_insert_keyframe
ACT_OT_insert_keyframe --> ACT_OT_keyframe_insert
ACT_OT_interpolation_type --> ACTION_OT_interpolation_type
ACT_OT_keyframe_type --> ACTION_OT_keyframe_type
ACT_OT_mirror --> ACTION_OT_mirror
ACT_OT_new --> ACTION_OT_new
ACT_OT_paste --> ACTION_OT_paste
ACT_OT_previewrange_set --> ACTION_OT_previewrange_set
ACT_OT_properties --> ACTION_OT_properties
ACT_OT_sample --> ACTION_OT_sample
ACT_OT_select_all_toggle --> ACTION_OT_select_all_toggle
ACT_OT_select_border --> ACTION_OT_select_border
ACT_OT_select_column --> ACTION_OT_select_column
ACT_OT_snap --> ACTION_OT_snap
ACT_OT_test --> ACTION_OT_test
ACT_OT_unlink --> ACTION_OT_unlink
ACT_OT_view_all --> ACTION_OT_view_all
ANIM_OT_add_driver_button --> ANIM_OT_driver_button_add
ANIM_OT_add_keyingset_button --> ANIM_OT_keyingset_button_add
ANIM_OT_delete_keyframe --> ANIM_OT_keyframe_delete
ANIM_OT_delete_keyframe_button --> ANIM_OT_keyframe_delete_button
ANIM_OT_delete_keyframe_v3d --> ANIM_OT_keyframe_delete_v3d
ANIM_OT_insert_keyframe --> ANIM_OT_keyframe_insert
ANIM_OT_insert_keyframe_button --> ANIM_OT_keyframe_insert_button
ANIM_OT_insert_keyframe_menu --> ANIM_OT_keyframe_insert_menu
ANIM_OT_remove_driver_button --> ANIM_OT_driver_button_remove
ANIM_OT_remove_keyingset_button --> ANIM_OT_keyingset_button_remove
FILE_OT_add_bookmark --> FILE_OT_bookmark_add
GRAPH_OT_insert_keyframe --> GRAPH_OT_keyframe_insert
NLA_OT_add_actionclip --> NLA_OT_actionclip_add
NLA_OT_add_meta --> NLA_OT_meta_add
NLA_OT_add_tracks --> NLA_OT_tracks_add
NLA_OT_add_transition --> NLA_OT_transition_add
NLA_OT_remove_meta --> NLA_OT_meta_remove
PARTICLE_OT_remove_target --> PARTICLE_OT_target_remove
PTCACHE_OT_add_new --> PTCACHE_OT_add

12 years agoslight reorganization of 3D view UI region.
William Reynish [Sat, 28 Nov 2009 13:39:35 +0000 (13:39 +0000)]
slight reorganization of 3D view UI region.

12 years agopy/rna api
Campbell Barton [Sat, 28 Nov 2009 13:33:56 +0000 (13:33 +0000)]
py/rna api
- object.modifiers.add()/remove()
- wasnt named correctly

12 years agoMesh Deform Modifier
Brecht Van Lommel [Sat, 28 Nov 2009 13:33:17 +0000 (13:33 +0000)]
Mesh Deform Modifier

* Now support a Surface mode next to the existing Volume mode. This binds
  the mesh to the cage mesh surface rather than it's volume.
* Implemented reusing the bone heat weighting code.
* Advantage is that it works for cage meshes that are not volumes and that
  binding is much faster.
* Weak point is that disconnected components of a mesh are not guaranteed
  to stick together (same problem exists with bone heat weighting).
* Bind weights could still be compressed better to use less memory.

Example file:

12 years agoMath Lib: merging over some changes from the sculpt branch:
Brecht Van Lommel [Sat, 28 Nov 2009 13:11:41 +0000 (13:11 +0000)]
Math Lib: merging over some changes from the sculpt branch:

* swap v2/v3
* multiply-and-add (madd) v3
* inline v3 short/float conversion
* mul_v3_m3v3

12 years agoRename 'Object Center' to 'Centroid'. This makes the Center/Center Cursor etc popup...
William Reynish [Sat, 28 Nov 2009 11:34:04 +0000 (11:34 +0000)]
Rename 'Object Center' to 'Centroid'. This makes the Center/Center Cursor etc popup menu much easier to understand.

12 years agoFixed some more names after the Python UI API changes
William Reynish [Sat, 28 Nov 2009 11:32:09 +0000 (11:32 +0000)]
Fixed some more names after the Python UI API changes

12 years agoBugfix #20127: Crash in dope sheet when opening regression file
Joshua Leung [Sat, 28 Nov 2009 04:51:15 +0000 (04:51 +0000)]
Bugfix #20127: Crash in dope sheet when opening regression file

Was using wrong pointer to action/keyframe data for shapekey expander channels causing crash

12 years agoA few new mouse navigation config options to help transitioning users
Matt Ebb [Sat, 28 Nov 2009 04:43:15 +0000 (04:43 +0000)]
A few new mouse navigation config options to help transitioning users

* Dolly zoom Vertical/Horizontal switch
  Changes between using vertical or horizontal mouse movement for zooming

* Invert Zoom Direction
   Inverts the vertical or horizontal mouse movement for dolly zoom

12 years ago* New tool - Join as Shapes
Matt Ebb [Sat, 28 Nov 2009 04:04:01 +0000 (04:04 +0000)]
* New tool - Join as Shapes

Available in object mode (Object -> Join as Shapes), only works for meshes at
the present. Will merge all selected objects as shape keys on the active object,
if the vertex count is the same.

This does not keep references to the external objects like in some applications,
rather it's a quick way to update the shapes on the active object (perhaps after
importing new versions from external applications).

12 years agoDurian Rigging Requests: (Armature Layers + Rotation Locking Tweaks)
Joshua Leung [Sat, 28 Nov 2009 03:49:45 +0000 (03:49 +0000)]
Durian Rigging Requests: (Armature Layers + Rotation Locking Tweaks)

* Increased the number of Armature and Bone Layers from 16 to 32. Please note that older versions of Blender may not correctly resolve the layers that bones are on when loading new files.

* Newly added objects are now made by default to allow locking of 4-component rotations using 4 separate locks (i.e. one by component) instead of requiring the obscure 'W' toggle (renamed '4L' now) to be enabled first. The objects in the default scene need modifying manually though.

12 years agoHead/Tail property was never added for Track To and Stretch To constraint types....
Roland Hess [Sat, 28 Nov 2009 03:45:40 +0000 (03:45 +0000)]
Head/Tail property was never added for Track To and Stretch To constraint types. Added to RNA and changed UI check.

12 years agoBugfix #20125: View 2D Zoom to Border was missing modal keymap
Joshua Leung [Sat, 28 Nov 2009 02:53:11 +0000 (02:53 +0000)]
Bugfix #20125: View 2D Zoom to Border was missing modal keymap

TODO: a better keymap for specifying zoom in or out mapped to LMB and RMB respectively for zoom to border is required. The current behaviour only allows zoom in...

12 years agoBPlayer fix (we were still using old scene.r instead of here) and more stubs...
Dalai Felinto [Sat, 28 Nov 2009 01:26:14 +0000 (01:26 +0000)]
BPlayer fix (we were still using old scene.r instead of here) and more stubs update from Mitchell Stokes (Moguri)
(+ a fix in a logic_window.c comment)

12 years agoShaded view toggle key (Shift-Z) not needed anymore.
Martin Poirier [Fri, 27 Nov 2009 21:15:01 +0000 (21:15 +0000)]
Shaded view toggle key (Shift-Z) not needed anymore.

12 years ago* Small Cleanup.
Thomas Dinges [Fri, 27 Nov 2009 18:55:59 +0000 (18:55 +0000)]
* Small Cleanup.

12 years agoshoulder improvements, fixes for linking arm/palm/finger together
Campbell Barton [Fri, 27 Nov 2009 17:07:50 +0000 (17:07 +0000)]
shoulder improvements, fixes for linking arm/palm/finger together

12 years agoAdd missing snap properties to transform operator.
Martin Poirier [Fri, 27 Nov 2009 16:15:34 +0000 (16:15 +0000)]
Add missing snap properties to transform operator.

This is used to force snap on and off when needed.

Also, when transform is not run modal, it will use default values for PET and snap properties (False) instead of scene settings. No need to force them off when calling transform with Exec.

12 years agoedge loop delete was using snap, making it not actually delete the edge loop
Campbell Barton [Fri, 27 Nov 2009 15:15:03 +0000 (15:15 +0000)]
edge loop delete was using snap, making it not actually delete the edge loop

12 years agoCLICK missing from *other* event rna enum (how many of these do we need?!)
Martin Poirier [Fri, 27 Nov 2009 14:58:13 +0000 (14:58 +0000)]
CLICK missing from *other* event rna enum (how many of these do we need?!)

12 years agonew palm rig type + some refactoring to make names less confusing for the arm rig
Campbell Barton [Fri, 27 Nov 2009 13:24:04 +0000 (13:24 +0000)]
new palm rig type + some refactoring to make names less confusing for the arm rig
linked text would not run

12 years agoRe-commit of new icons. It seems like the icon update got overridden somehow.
William Reynish [Fri, 27 Nov 2009 12:50:08 +0000 (12:50 +0000)]
Re-commit of new icons. It seems like the icon update got overridden somehow.

12 years agoFix for bug #20039: panning and rotating view makes animation playback slow.
Brecht Van Lommel [Fri, 27 Nov 2009 12:43:48 +0000 (12:43 +0000)]
Fix for bug #20039: panning and rotating view makes animation playback slow.
Recent click event changes moved variable up one level too far.

Also fixes use of timer event for fly operator, it should always check for
which timer it is, not really related to this bug.

12 years agofix for undo crashing when animating proxies that had ID props
Campbell Barton [Fri, 27 Nov 2009 12:42:42 +0000 (12:42 +0000)]
fix for undo crashing when animating proxies that had ID props

12 years agoFix for problems with region-flip operator not working from the RMB context menu.
Joshua Leung [Fri, 27 Nov 2009 11:51:34 +0000 (11:51 +0000)]
Fix for problems with region-flip operator not working from the RMB context menu.

I've had to add a special operator for this, since the generic region-flip operator doesn't seem to be getting the right region from RNA. This operator explicitly searches for an appropriate header region before beginning. I suspect by default, operators get the main region set as being context target...

12 years agoDurian Request:
Joshua Leung [Fri, 27 Nov 2009 11:19:13 +0000 (11:19 +0000)]
Durian Request:

Renaming "Sync Audio" to "Realtime Playback" to make it clearer about its purpose. Internally, it's still called "sync_audio" since that's strictly what it represents, but that could be changed later if there is a need.

12 years agoAdded RMB-menu to Headers:
Joshua Leung [Fri, 27 Nov 2009 06:24:09 +0000 (06:24 +0000)]
Added RMB-menu to Headers:

This contains two entries - one which calls the region flip operator, and one which calls the maxmize area operator.

Unfortunately, there seem to be some context issues which are causing the wrong region to get activated for use by the region flipping, meaning that nothing happens.

Also, fixed own typo in 3d-view header/menu code...

12 years agofix for error in simpledeform modifier ui
Matt Ebb [Fri, 27 Nov 2009 06:22:55 +0000 (06:22 +0000)]
fix for error in simpledeform modifier ui

12 years agoAnimation Playback - Return to original frame
Joshua Leung [Fri, 27 Nov 2009 04:14:56 +0000 (04:14 +0000)]
Animation Playback - Return to original frame

Playback of animation will now be restored to the frame that playback started on when stopping if the SCREEN_OT_animation_cancel operator is used (i.e. ESCKEY).

All other ways of stopping playback (pause button, alt-a) should act more like toggles, and do not reset the playhead.

12 years agoFix for [#20080] Arrows Don't Scale (2.5 Alpha 0)
Matt Ebb [Fri, 27 Nov 2009 00:45:01 +0000 (00:45 +0000)]
Fix for [#20080] Arrows Don't Scale (2.5 Alpha 0)

12 years agoFix for [#20086] Mirror X, Z and Y crashes Blender 2.5 Alpha
Matt Ebb [Fri, 27 Nov 2009 00:34:46 +0000 (00:34 +0000)]
Fix for [#20086] Mirror X, Z and Y crashes Blender 2.5 Alpha

Was wrong operator context

* Also added back 3d view locking options to view properties

12 years agoUV Editor: Added missing Snapping Operator keymaps (Shift-S) + menus (under UV's...
Joshua Leung [Thu, 26 Nov 2009 23:20:31 +0000 (23:20 +0000)]
UV Editor: Added missing Snapping Operator keymaps (Shift-S) + menus (under UV's -> Snap)

12 years agoFix for rev. 24908 - committed the fix, but it was commented out. Forgot to uncomment...
Matt Ebb [Thu, 26 Nov 2009 21:56:31 +0000 (21:56 +0000)]
Fix for rev. 24908 - committed the fix, but it was commented out. Forgot to uncomment it after doublecheck testing, hmm...

12 years agoMSVC project files: enable Blender Game renderer.
Benoit Bolsee [Thu, 26 Nov 2009 20:44:55 +0000 (20:44 +0000)]
MSVC project files: enable Blender Game renderer.

12 years agoFirst changes to implement the 2.5 snapping proposal (discussed back in May and recen...
Martin Poirier [Thu, 26 Nov 2009 19:47:55 +0000 (19:47 +0000)]
First changes to implement the 2.5 snapping proposal (discussed back in May and recently on IRC).

The new widget isn't there yet, but the rest works, including:

Increment (gears) is now a snap mode

Ctrl click to toggle snap on or off (in transform and 3d view)
Shift+Ctrl click to select snap mode (3d view only)

Snap status (on/off) is persisted in tool settings, no need to always turn it back on when entering transform.

It's still possible to have something resembling the old system by editing the transform modal keymap to snap on on ctrl press and snap off on key release.

12 years agoSimplify mesh selection type operator and add missing header refresh notifier.
Martin Poirier [Thu, 26 Nov 2009 19:32:33 +0000 (19:32 +0000)]
Simplify mesh selection type operator and add missing header refresh notifier.

Also remove REGISTER flag from operator (no need to see this in operator history).

12 years agoMissing from last commit:
Martin Poirier [Thu, 26 Nov 2009 19:31:25 +0000 (19:31 +0000)]
Missing from last commit:

New snap icons for Increment (gears)

12 years agoPreliminary RNA and DNA changes for further transform snap fixes.
Martin Poirier [Thu, 26 Nov 2009 19:29:57 +0000 (19:29 +0000)]
Preliminary RNA and DNA changes for further transform snap fixes.

Also make the mesh selection type enum available at runtime.

12 years agofixed a crash when duplicating bones with ID-Props
Campbell Barton [Thu, 26 Nov 2009 19:08:56 +0000 (19:08 +0000)]
fixed a crash when duplicating bones with ID-Props
remove duplicate code from armature_duplicate_selected_exec

12 years agomore rna property renaming, axis_x --> use_x, rotationx --> use_rotation_x
Campbell Barton [Thu, 26 Nov 2009 18:45:08 +0000 (18:45 +0000)]
more rna property renaming, axis_x --> use_x, rotationx --> use_rotation_x

12 years agoClick event detection ignores mouse move.
Martin Poirier [Thu, 26 Nov 2009 18:36:24 +0000 (18:36 +0000)]
Click event detection ignores mouse move.

This makes it less tricky (don't have to hold the mouse extra still) but tweak events (like lasso) still  don't result in a click.

12 years agorename rotate_like_x --> use_x, for copy loc/size/rot constraints.
Campbell Barton [Thu, 26 Nov 2009 17:54:16 +0000 (17:54 +0000)]
rename rotate_like_x --> use_x, for copy loc/size/rot constraints.
including rotate in the property name isnt needed since its a copy rotation constraint.

12 years agoFixed typo
Elia Sarti [Thu, 26 Nov 2009 17:20:02 +0000 (17:20 +0000)]
Fixed typo

12 years agofix for crash, Aligorith can you check if this is correct
Campbell Barton [Thu, 26 Nov 2009 17:17:13 +0000 (17:17 +0000)]
fix for crash, Aligorith can you check if this is correct

12 years agoFix warning.
Elia Sarti [Thu, 26 Nov 2009 17:07:14 +0000 (17:07 +0000)]
Fix warning.

12 years agoMathutils vec += vec wasnt running mathutls callbacks
Campbell Barton [Thu, 26 Nov 2009 16:19:20 +0000 (16:19 +0000)]
Mathutils vec += vec wasnt running mathutls callbacks

12 years agominor changes made before commit broke this script
Campbell Barton [Thu, 26 Nov 2009 16:05:32 +0000 (16:05 +0000)]
minor changes made before commit broke this script

12 years agoctrl 1-5 for changing subsurf levels
Campbell Barton [Thu, 26 Nov 2009 15:36:23 +0000 (15:36 +0000)]
ctrl 1-5 for changing subsurf levels

12 years agoallow accessing an array index from an rna button.
Campbell Barton [Thu, 26 Nov 2009 15:03:55 +0000 (15:03 +0000)]
allow accessing an array index from an rna button.

 col.prop(ob, "location", index=1) # would edit the Y axis

12 years agobasic support for Sintels arm rig with property driven ik/fk switching and stretch...
Campbell Barton [Thu, 26 Nov 2009 13:36:15 +0000 (13:36 +0000)]
basic support for Sintels arm rig with property driven ik/fk switching and stretch bones to display connections, still need to do shoulder hinge and hand delta offset bones

12 years agoSequencer Drawing Code - Refactoring Part 1:
Joshua Leung [Thu, 26 Nov 2009 12:22:43 +0000 (12:22 +0000)]
Sequencer Drawing Code - Refactoring Part 1:

- Started cleaning up the sequencer drawing code by firstly decoupling the different draw modes from each other (i.e. timeline view doesn't call image view).

- Also separated out a few distinct few phases in sequencer-timeline drawing into different functions instead of being lumped in the single one. Recoded part of this to make it less ugly too...

- Made markers get drawn again in the sequencer timeline view

12 years agoBugfix: pose bone was doing double translation in some cases,
Brecht Van Lommel [Thu, 26 Nov 2009 11:38:28 +0000 (11:38 +0000)]
Bugfix: pose bone was doing double translation in some cases,
due to my commit yesterday.

12 years agoPatch #20037: Use named components for Drivers instead of array_index
Joshua Leung [Thu, 26 Nov 2009 11:13:10 +0000 (11:13 +0000)]
Patch #20037: Use named components for Drivers instead of array_index

This patch, by Elia Sarti (vekoon), simply adds the possibility to specify the final array component of the RNA path in the path itself,
e.g. using location[0] or location["x"] or even location.x,
instead of specifying this using an "array_index"

This should be easier for users to understand the driver system. The array-indices have been kept (but hidden from the UI under standard situations) since they are theoretically a tad faster than the in-path lookups still, and are easier for internal-tools to set for now...

12 years agoBugfix #20069: Centre to cursor or centre to mouse, centre object.
Joshua Leung [Thu, 26 Nov 2009 10:19:09 +0000 (10:19 +0000)]
Bugfix #20069: Centre to cursor or centre to mouse, centre object.

- Was missing notifier after editing
- Menu entries go bad naming after the UI api renaming

12 years agofix for adding drivers to constraints via python.
Campbell Barton [Thu, 26 Nov 2009 09:48:53 +0000 (09:48 +0000)]
fix for adding drivers to constraints via python.
the RNA constraint api was checking the current context when getting the constraint driver path and renaming constraints.
this made scripts not work properly so changed this to search for the constraint pose channel user within the object (if the object its self is not the user).

12 years agoBGE: allow using dynamic loaded mesh in replaceMesh for soft body. This is a quick...
Benoit Bolsee [Thu, 26 Nov 2009 09:40:37 +0000 (09:40 +0000)]
BGE: allow using dynamic loaded mesh in replaceMesh for soft body. This is a quick fix, it doesn't work yet on skinned mesh.

12 years ago[#20051] x for removing a mesh from a group doesnt scale with ui
Matt Ebb [Thu, 26 Nov 2009 06:32:43 +0000 (06:32 +0000)]
[#20051] x for removing a mesh from a group doesnt scale with ui

12 years agoFix for [#20042] There are remains of "Shaded" draw type in a panel
Matt Ebb [Thu, 26 Nov 2009 06:25:25 +0000 (06:25 +0000)]
Fix for [#20042] There are remains of "Shaded" draw type in a panel

Removed references to shaded view now it's disabled

12 years agoFix for [#20030] selection frame in edit mode turns white
Matt Ebb [Thu, 26 Nov 2009 06:07:56 +0000 (06:07 +0000)]
Fix for [#20030] selection frame in edit mode turns white

12 years agoFix for [#20028] adding objects such as cameras in local view(/) doesn't work
Matt Ebb [Thu, 26 Nov 2009 05:57:34 +0000 (05:57 +0000)]
Fix for [#20028] adding objects such as cameras in local view(/) doesn't work

Was getting the wrong operator context, so there was no view3d available

12 years agoFix for [#20023] Renderer aborts in some cases when rendering only meta-objects with...
Matt Ebb [Thu, 26 Nov 2009 05:01:28 +0000 (05:01 +0000)]
Fix for [#20023] Renderer aborts in some cases when rendering only meta-objects with volume materials.

When metaballs were added to the render, if they weren't the basis ball, they'd be skipped, leaving a render object with no geometry. Now it doesn't add an object in the first place.

12 years agoBugfix #20041: Drivers don't work on bone visiblity
Joshua Leung [Thu, 26 Nov 2009 03:43:39 +0000 (03:43 +0000)]
Bugfix #20041: Drivers don't work on bone visiblity

- Drivers on added to the 'armature' datablock (i.e. keyframing some settings for a "Bone" as opposed to "PoseBone") now evaluate correctly. Added proper recalcs for this case too.

- Also fixed some memory leaks and loading problems I encountered with the test file provided. After having problems loading the test file, I ended up reproducing and finding the error.

12 years agoCursor Grab bugfix: passing NULL for bounds didn't initialize properly.
Martin Poirier [Thu, 26 Nov 2009 02:58:53 +0000 (02:58 +0000)]
Cursor Grab bugfix: passing NULL for bounds didn't initialize properly.

Symptom: first button drag gets stuck on values.

Cause: Buttons didn't set grab bounds, to use the whole window. But Ghost didn't do anything in that case, it left the bounds value as is. It only affected the first cursor grab, because cursor ungrab sets it to -1, which forces it to use the whole window size (checking every mouse move) for subsequent grabs.

Solution: When NULL, init bounds to window size (and don't query every mouse move).

12 years ago* Spline IK 'Joint Bindings' array now available from RNA. This can be used to manual...
Joshua Leung [Thu, 26 Nov 2009 02:13:56 +0000 (02:13 +0000)]
* Spline IK 'Joint Bindings' array now available from RNA. This can be used to manually slide bone joints along the curves for extra tweaking. It's only recommended to be used by advanced users for extra control over the points.

* Added some missing file-reading code to try and get things working better

12 years agoFix for [#20034] Background Image Distortion while zooming and moving around 3D window.
Matt Ebb [Thu, 26 Nov 2009 02:11:07 +0000 (02:11 +0000)]
Fix for [#20034] Background Image Distortion while zooming and moving around 3D window.

This is working around an Apple OpenGL driver bug, chatted to Martin about this in IRC, seems ok. Hopefully can revert this if/when Apple comes up with a driver fix.

12 years agov Cloud to matrix
Jens Ole Wund [Thu, 26 Nov 2009 00:15:26 +0000 (00:15 +0000)]
v Cloud to matrix
nice drawing for soft bodies
BTW could be used by any object by design

12 years agoadding function
Jens Ole Wund [Wed, 25 Nov 2009 23:54:21 +0000 (23:54 +0000)]
adding function
vcloud_estimate_transform(..) to math library
comments there (@math_geom.c) should explain what it does
-- removing attached clutter from softbody.c

12 years agosmall change to BGE callbacks, only allocate empty args once in the callback loop.
Campbell Barton [Wed, 25 Nov 2009 23:35:58 +0000 (23:35 +0000)]
small change to BGE callbacks, only allocate empty args once in the callback loop.

12 years agoAfter talking with Matt about this, added notifier NC_ID to handle ID changes, specif...
Elia Sarti [Wed, 25 Nov 2009 23:13:47 +0000 (23:13 +0000)]
After talking with Matt about this, added notifier NC_ID to handle ID changes, specifically ND_ID_RENAME for ID renaming. Done for outliner, 3d view and properties editor.

12 years agoFix for opening images in the Background Image panel
Matt Ebb [Wed, 25 Nov 2009 22:58:54 +0000 (22:58 +0000)]
Fix for opening images in the Background Image panel

12 years agoEditmesh undo: restore selection counts after undo
Martin Poirier [Wed, 25 Nov 2009 22:38:07 +0000 (22:38 +0000)]
Editmesh undo: restore selection counts after undo

12 years agoDecrease snap delay to 10 ms
Martin Poirier [Wed, 25 Nov 2009 22:14:51 +0000 (22:14 +0000)]
Decrease snap delay to 10 ms

12 years agoPose Bone Local Location: now also works for non-connected bones with parents.
Brecht Van Lommel [Wed, 25 Nov 2009 18:48:29 +0000 (18:48 +0000)]
Pose Bone Local Location: now also works for non-connected bones with parents.

12 years agoVerlet integration method for particles (patch provided by farsthary).
Janne Karhu [Wed, 25 Nov 2009 17:46:10 +0000 (17:46 +0000)]
Verlet integration method for particles (patch provided by farsthary).

12 years agoselected_pchans --> selected_pose_bones, same for visible_pchans
Campbell Barton [Wed, 25 Nov 2009 15:00:29 +0000 (15:00 +0000)]
selected_pchans --> selected_pose_bones, same for visible_pchans
added use_ prefix to bools offset --> use_offset, tail --> use_tail for eg.

12 years agoPose Bone "Local Location" option. This is enabled by default, disabling it
Brecht Van Lommel [Wed, 25 Nov 2009 14:59:02 +0000 (14:59 +0000)]
Pose Bone "Local Location" option. This is enabled by default, disabling it
puts the bone location in pose space rather than local bone space.

12 years agofix for error in sequencer ui from recent changes
Campbell Barton [Wed, 25 Nov 2009 13:17:09 +0000 (13:17 +0000)]
fix for error in sequencer ui from recent changes

12 years agoAnimSys - Transform Locks + RNA:
Joshua Leung [Wed, 25 Nov 2009 12:00:31 +0000 (12:00 +0000)]
AnimSys - Transform Locks + RNA:

The Animation System now respects the Transform Locks too (i.e. lock x-location, etc.) when writing settings. This means that it is no longer necessary to set up "constant drivers" to make sure some values don't get accidentally animated.

Internally, added a new callback for properties in RNA, which is responsible for checking if the item at some array-index is editable. This needs to be manually called for each place which uses rna to set settings for arrays (see the code changes in anim_sys.c for changes how to do this; the same thing needs to be done in the UI code too, and probably in py-api too)

12 years agoED_armature_edit_bone_remove wasnt clearing references from other bones, only affects...
Campbell Barton [Wed, 25 Nov 2009 11:47:53 +0000 (11:47 +0000)]
ED_armature_edit_bone_remove wasnt clearing references from other bones, only affects rna api access

12 years agoadd access to bone add/remove from rna. eg.
Campbell Barton [Wed, 25 Nov 2009 11:05:11 +0000 (11:05 +0000)]
add access to bone add/remove from rna. eg.
 bone ="SomeBone")

regify (WIP)

12 years agoRNA: FModifier generator coefficients wrapped, implemented by Campbell.
Brecht Van Lommel [Wed, 25 Nov 2009 10:39:02 +0000 (10:39 +0000)]
RNA: FModifier generator coefficients wrapped, implemented by Campbell.

12 years agorna py api,
Campbell Barton [Wed, 25 Nov 2009 10:13:24 +0000 (10:13 +0000)]
rna py api,
generic rna function driver_add(), now returns the driver added (or a list of drivers if all channels are set)

12 years agoAssorted fixes - compile + drivers:
Joshua Leung [Wed, 25 Nov 2009 09:25:58 +0000 (09:25 +0000)]
Assorted fixes - compile + drivers:
* Fixed a few compile warnings for scons+mingw
* Driver variables are now added with the ID-type set to ID_OB (objects) by default since this is more convenient

12 years agoFix for [#20008] In the Graph Editor, clicking on the eye doesn't update the GUI
Matt Ebb [Wed, 25 Nov 2009 08:28:57 +0000 (08:28 +0000)]
Fix for [#20008] In the Graph Editor, clicking on the eye doesn't update the GUI

As part of this, fixed a typo in rna flags which was causing some strange behaviour with icons earlier. Reverted the workaround for this, too.

12 years agoAdd guardealloc for RAS_MeshObject.cpp (and clean whitespace).
Guillermo S. Romero [Tue, 24 Nov 2009 23:24:56 +0000 (23:24 +0000)]
Add guardealloc for RAS_MeshObject.cpp (and clean whitespace).

12 years agoBGE: replace mesh works for Soft Body (including reinstantiation of physics soft...
Benoit Bolsee [Tue, 24 Nov 2009 22:44:29 +0000 (22:44 +0000)]
BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh).

Even a static mesh can be used as replacement: the mesh
will be instantiated with the soft body settings of the
object. The position and orientation of the soft body
is preserved after the replacement.

Known limitation: the velocity of the soft body is reset
aftet the replacement. This is because soft body don't
have a well defined velocity.

12 years agodisallow dynamic sized rna arrays to be returned as mathutils types since it gives...
Campbell Barton [Tue, 24 Nov 2009 20:15:24 +0000 (20:15 +0000)]
disallow dynamic sized rna arrays to be returned as mathutils types since it gives unpradictable results if in one case it returns a vector and another a rna float array.

12 years agoFix for continuous grab on X11.
Martin Poirier [Tue, 24 Nov 2009 19:47:57 +0000 (19:47 +0000)]
Fix for continuous grab on X11.

Need to stop accumulating warp coordinates after the first cursor warp (store time of new generated event and skip warp for events time smaller).

There's some interesting X11 code in there, if people are curious.

12 years agoRNA api
Campbell Barton [Tue, 24 Nov 2009 17:12:32 +0000 (17:12 +0000)]
RNA api
- EditBone was missing 'selected'
- renamed 'selectable' to --> 'restrict_select', matching object mode.
- renamed 'active_pchan' --> 'active_pose_bone'

12 years agoavoid operator type lookups when its known
Campbell Barton [Tue, 24 Nov 2009 16:19:15 +0000 (16:19 +0000)]
avoid operator type lookups when its known

12 years agoForgot this file.
William Reynish [Tue, 24 Nov 2009 15:45:45 +0000 (15:45 +0000)]
Forgot this file.

12 years agoUpdated icons. Thanks to jendrzych.
William Reynish [Tue, 24 Nov 2009 15:40:56 +0000 (15:40 +0000)]
Updated icons. Thanks to jendrzych.
Adds icon entries to the force fields.

Also reverted last menu naming commit - this is apparently due to a bug in the Python API that will be fixed.

12 years agobugfix [#19983] clicking onto normal input of a material node crash
Campbell Barton [Tue, 24 Nov 2009 14:03:29 +0000 (14:03 +0000)]
bugfix [#19983] clicking onto normal input of a material node crash
actually happened when clicking on any input

12 years agoRender Buttons:
Thomas Dinges [Tue, 24 Nov 2009 12:55:04 +0000 (12:55 +0000)]
Render Buttons:
* Made Audio Section in "Encoding Panel" easier.

12 years agoFix for last commit, forgot to update collada.
Brecht Van Lommel [Tue, 24 Nov 2009 12:35:06 +0000 (12:35 +0000)]
Fix for last commit, forgot to update collada.

12 years agoFix wrong names in 3D view View menu
William Reynish [Tue, 24 Nov 2009 12:15:17 +0000 (12:15 +0000)]
Fix wrong names in 3D view View menu

12 years ago- use a generic bone class so all 3 bone types (Edit/Pose/Armature) - can have the...
Campbell Barton [Tue, 24 Nov 2009 11:58:49 +0000 (11:58 +0000)]
- use a generic bone class so all 3 bone types (Edit/Pose/Armature) - can have the same utility functions, length, parent_recursive, parent_index(), etc
- change the wiki url to avoid redirects (from Luka)
- removed pose prefix from pose_head/pose_tail/pose_matrix