blender.git
9 years ago- new objects added from the rna api defaulted to quat rotation, not even using an...
Campbell Barton [Sun, 29 Nov 2009 23:14:41 +0000 (23:14 +0000)]
- new objects added from the rna api defaulted to quat rotation, not even using an identity quat.
- making meshes in python isnt nice at the moment, added a helper function.
    mesh.from_pydata(verts, edges, faces)

9 years ago- added a new math function double_round, useful for rounding a number to a number...
Campbell Barton [Sun, 29 Nov 2009 22:42:33 +0000 (22:42 +0000)]
- added a new math function double_round, useful for rounding a number to a number of decimal places.
- added Mathutils vector method, vec.asTuple(round), since this is tedious in python and fairly common task.

9 years ago1. Extend option for 3d view border select now does something (default True to keep...
Martin Poirier [Sun, 29 Nov 2009 22:16:29 +0000 (22:16 +0000)]
1. Extend option for 3d view border select now does something (default True to keep same behavior)

2. Add action parameter to Select_All_Toggle operators, rename to Select_All.
Options are Toggle (default), Select, Deselect, Invert (same as select swap). This makes it possible to map separate hotkeys for select all and deselect all.

NOTE for Aligorith: I didn't change animation operators for select_all which already had an Invert operator. These should be fixed eventually.

9 years agoMerge from COLLADA branch into trunk of -c 24572 (cmake and scons for OpenCollada...
Arystanbek Dyussenov [Sun, 29 Nov 2009 19:16:52 +0000 (19:16 +0000)]
Merge from COLLADA branch into trunk of -c 24572 (cmake and scons for OpenCollada @ 675, Linux) and 25001 (bone animation import). See corresponding log entries for more detail.

9 years agoGimbal orientation defaults to Normal instead of Global when bone or object is not...
Martin Poirier [Sun, 29 Nov 2009 18:20:26 +0000 (18:20 +0000)]
Gimbal orientation defaults to Normal instead of Global when bone or object is not using euler orientation (Normal is bone axis for pose and Local axis for object, so this is more useful than defaulting to Global).

9 years ago== Sequencer ==
Peter Schlaile [Sun, 29 Nov 2009 18:14:16 +0000 (18:14 +0000)]
== Sequencer ==

Brought back default effect fading: (adding a wipe effect makes it
wipe by default for the length of the strip)

First round in upgrading IPOs from older versions. (works for non-IPO
case now and sets at least the new "default effect fade"-flag)

Still non-working for old IPOs, since Sequence-Strips aren't real IDs!

And: non-frame-lock case should stretch the FCurve to the right length!

9 years agoFix CLICK event for modal operators.
Martin Poirier [Sun, 29 Nov 2009 16:49:26 +0000 (16:49 +0000)]
Fix CLICK event for modal operators.

modal operators should return RUNNING_MODAL|PASSTHROUGH for unhandled events to be able to receive clicks correctly (this needs to be fixed for other modal operators).

Maybe it's time to have "handled" flag in event instead.

9 years ago- access to a nurbs points was broken - sizeof(BPoint) vs sizeof(BPoint *)
Campbell Barton [Sun, 29 Nov 2009 16:42:51 +0000 (16:42 +0000)]
- access to a nurbs points was broken - sizeof(BPoint) vs sizeof(BPoint *)
- renamed CurvePoint --> SplinePoint
- renamed point.point --> point.co (less stupid, matches vertex.co)
- access point.co was a 3D vector rather then a 4D vector with the Nurbs weight included.
- rename point.weight --> point.weight_softbody, move point.point[3] --> point.weight
- sorted RNA structs (for pedaticness only)

9 years agoUI:
Nicholas Bishop [Sun, 29 Nov 2009 06:10:26 +0000 (06:10 +0000)]
UI:
* Removed hardcoded shortcut keys in 3dview header tooltips
* Removed an unused function

9 years agoUI:
Nicholas Bishop [Sun, 29 Nov 2009 06:04:39 +0000 (06:04 +0000)]
UI:
* Finished fixing the layer UI template. It's now used in the 3dview header rather than the custom layer grid.

9 years agoArmature Bugfixes:
Joshua Leung [Sun, 29 Nov 2009 05:56:39 +0000 (05:56 +0000)]
Armature Bugfixes:

* Bugfix #20136: unclear tool tip for inherit rotation toggle
* Bugfix for Apply Pose as Restpose (Ctrl A in Pose Mode): missing call to free edit-data was causing drawing code to only draw editbones until editmode was entered + toggled
* Added missing notifier for deleting F-Modifiers, so deleting F-Modifiers now updates the view correctly afterwards

9 years agoAnimation Editor (mostly Graph Editor) bugfixes:
Joshua Leung [Sun, 29 Nov 2009 04:52:01 +0000 (04:52 +0000)]
Animation Editor (mostly Graph Editor) bugfixes:
* Durian Report / Own Todo: Action Groups with no F-Curves in them visible were still shown in the animation editors. After several failed attempts in the past, finally got this working by making a little shuffling + a simpler solution.

* Bugfix #20134: Graph Editor Keys -> Transform Menu was using the wrong operators. C+P error from copying menus over from Dopesheet

* Muting Action Groups didn't draw all F-Curves contained in group as being muted too.

9 years agoUI:
Nicholas Bishop [Sun, 29 Nov 2009 02:42:47 +0000 (02:42 +0000)]
UI:
* Moved more of 3dview header to python
* Fixed the layout of the ui layers template to show the correct number of buttons
* Added support for layer icons (active layer, used layers)

9 years agoUI Scripts Bugfixes:
Joshua Leung [Sun, 29 Nov 2009 02:14:34 +0000 (02:14 +0000)]
UI Scripts Bugfixes:

* Toolbar shows "Loopcut and Slide" instead of "Loopcut" now
* Follow Path "Offset" option was broken by one of the "use_*" prefix commits

9 years agoDraw function for operators (just like panels), used for the redo popup, file selecto...
Campbell Barton [Sun, 29 Nov 2009 01:49:22 +0000 (01:49 +0000)]
Draw function for operators (just like panels), used for the redo popup, file selector and redo tool panel.

Used for ply export & select pattern.

9 years ago[#20103] Shortcut (Ctrl Space) not working for to show 3d transform manipulator
Campbell Barton [Sun, 29 Nov 2009 00:13:34 +0000 (00:13 +0000)]
[#20103] Shortcut (Ctrl Space) not working for to show 3d transform manipulator

9 years agopep8 cleanup in ui and op dirs, added popup to select pattern
Campbell Barton [Sat, 28 Nov 2009 23:37:56 +0000 (23:37 +0000)]
pep8 cleanup in ui and op dirs, added popup to select pattern

9 years agobugfix [#20091] Crash when starting render on meta-edit mode
Campbell Barton [Sat, 28 Nov 2009 22:45:47 +0000 (22:45 +0000)]
bugfix [#20091] Crash when starting render on meta-edit mode
note: EM_DO_UNDO wasnt used because EM_FREEDATA wasnt set

9 years agoUI:
Nicholas Bishop [Sat, 28 Nov 2009 22:35:56 +0000 (22:35 +0000)]
UI:
* Started moving buttons out of the C 3dview header template and into the python UI script

9 years agoUI:
Nicholas Bishop [Sat, 28 Nov 2009 21:52:37 +0000 (21:52 +0000)]
UI:
* Removed most of the manual positioning from the 3dview header

9 years agobugfix [#20050] Hex color value fields capped to 2 characters on first paste.
Campbell Barton [Sat, 28 Nov 2009 21:45:34 +0000 (21:45 +0000)]
bugfix [#20050] Hex color value fields capped to 2 characters on first paste.
also use memmove rather then a loop for deleting the selected text

9 years agoUI/RNA:
Nicholas Bishop [Sat, 28 Nov 2009 21:27:28 +0000 (21:27 +0000)]
UI/RNA:
* Added icon to paint mask RNA
* Added v3d->scenelock RNA
* Moved more of the 3dview header to use uiItems

9 years agosimple fixes
Campbell Barton [Sat, 28 Nov 2009 20:50:31 +0000 (20:50 +0000)]
simple fixes
[#20123] "Import" menu entry becomes empty
[#20141] In Object menu Make Links appears twice - SVN 24970

also moved OBJs name cleaning func to bpy.utils.clean_name(name, replace="_")

9 years agobugfix [#20143] .obj import fails
Campbell Barton [Sat, 28 Nov 2009 20:26:22 +0000 (20:26 +0000)]
bugfix [#20143] .obj import fails

9 years agoUI/RNA:
Nicholas Bishop [Sat, 28 Nov 2009 20:02:10 +0000 (20:02 +0000)]
UI/RNA:
* Removed retopo paint code from view3d header
* Added icons to 3dview pivot RNA
* Small warning fix

9 years agoUI/RNA:
Nicholas Bishop [Sat, 28 Nov 2009 19:38:05 +0000 (19:38 +0000)]
UI/RNA:
* Added icons to proportional edit RNA
* Converted proportional edit and snap buttons in 3dview header to uiItems

9 years ago- color updating is not working when changing userpefs, added some commented out...
Campbell Barton [Sat, 28 Nov 2009 19:32:23 +0000 (19:32 +0000)]
- color updating is not working when changing userpefs, added some commented out lines that works when the view in the same window as the userprefs, probably needs a new notifier.
- fix for warning

9 years agoRNA:
Nicholas Bishop [Sat, 28 Nov 2009 18:37:56 +0000 (18:37 +0000)]
RNA:
* Added ND_DRAW flag to particle selection mode update

9 years agoUI/RNA:
Nicholas Bishop [Sat, 28 Nov 2009 18:19:34 +0000 (18:19 +0000)]
UI/RNA:

* Set default particleedit selection mode in add scene (TODO: not yet changed in the default blend)
* Corrected names for particleedit selection mode in RNA, added icons
* Added occlude geometry flag to view3d RNA
* Converted particleedit buttons to uiItems in view3d header

9 years agoCMake/OSX: remove gcc arguments conflicts raising warnings when building in release...
Damien Plisson [Sat, 28 Nov 2009 18:19:22 +0000 (18:19 +0000)]
CMake/OSX: remove gcc arguments conflicts raising warnings when building in release mode
Quicktime/Qtkit linkflags fix for i386 platform

9 years agoqtkit : improve thread safety, enforce build on OSX 10.5+
Damien Plisson [Sat, 28 Nov 2009 18:16:27 +0000 (18:16 +0000)]
qtkit : improve thread safety, enforce build on OSX 10.5+
qtkit movie creation functions can be started in a worker thread only from OSX 10.5

9 years ago* Restored the "Solid OpenGL lamps" Buttons in user Preferences.
Thomas Dinges [Sat, 28 Nov 2009 18:08:17 +0000 (18:08 +0000)]
* Restored the "Solid OpenGL lamps" Buttons in user Preferences.

9 years agoexperemental UI introspection added for mindrones,
Campbell Barton [Sat, 28 Nov 2009 17:45:23 +0000 (17:45 +0000)]
experemental UI introspection added for mindrones,
in python this gives a map of the ui...
 ui_dict = eval(layout.introspect())

9 years agoUI:
Nicholas Bishop [Sat, 28 Nov 2009 17:30:56 +0000 (17:30 +0000)]
UI:
* Convert pose buttons in the 3dview header to uiItems. Fixes the spacing between pose buttons and opengl render buttons.

9 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).

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

9 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

9 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

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

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

9 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:
http://download.blender.org/ftp/incoming/cloth_mdef_surface.blend

9 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

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

9 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

9 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

9 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

9 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).

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

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

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

9 years agoBPlayer fix (we were still using old scene.r instead of scene.gm 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 scene.gm here) and more stubs update from Mitchell Stokes (Moguri)
(+ a fix in a logic_window.c comment)

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

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

9 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

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

9 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

9 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?!)

9 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

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

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

9 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

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

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

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

9 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

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

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

9 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

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

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

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

9 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).

http://wiki.blender.org/index.php/User:Theeth/Snapping

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.

9 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).

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

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

9 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

9 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

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

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

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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

9 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

9 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).

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

9 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

9 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

9 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

9 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

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

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

9 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).