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)
Martin Poirier [Fri, 27 Nov 2009 21:15:01 +0000 (21:15 +0000)]
Shaded view toggle key (Shift-Z) not needed anymore.
Thomas Dinges [Fri, 27 Nov 2009 18:55:59 +0000 (18:55 +0000)]
* Small Cleanup.
Campbell Barton [Fri, 27 Nov 2009 17:07:50 +0000 (17:07 +0000)]
shoulder improvements, fixes for linking arm/palm/finger together
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.
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
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?!)
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
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.
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.
Campbell Barton [Fri, 27 Nov 2009 12:42:42 +0000 (12:42 +0000)]
fix for undo crashing when animating proxies that had ID props
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...
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.
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...
Matt Ebb [Fri, 27 Nov 2009 06:22:55 +0000 (06:22 +0000)]
fix for error in simpledeform modifier ui
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.
Matt Ebb [Fri, 27 Nov 2009 00:45:01 +0000 (00:45 +0000)]
Fix for [#20080] Arrows Don't Scale (2.5 Alpha 0)
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
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)
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...
Benoit Bolsee [Thu, 26 Nov 2009 20:44:55 +0000 (20:44 +0000)]
MSVC project files: enable Blender Game renderer.
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.
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).
Martin Poirier [Thu, 26 Nov 2009 19:31:25 +0000 (19:31 +0000)]
Missing from last commit:
New snap icons for Increment (gears)
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.
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
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
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.
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.
Elia Sarti [Thu, 26 Nov 2009 17:20:02 +0000 (17:20 +0000)]
Fixed typo
Campbell Barton [Thu, 26 Nov 2009 17:17:13 +0000 (17:17 +0000)]
fix for crash, Aligorith can you check if this is correct
Elia Sarti [Thu, 26 Nov 2009 17:07:14 +0000 (17:07 +0000)]
Fix warning.
Campbell Barton [Thu, 26 Nov 2009 16:19:20 +0000 (16:19 +0000)]
Mathutils vec += vec wasnt running mathutls callbacks
Campbell Barton [Thu, 26 Nov 2009 16:05:32 +0000 (16:05 +0000)]
minor changes made before commit broke this script
Campbell Barton [Thu, 26 Nov 2009 15:36:23 +0000 (15:36 +0000)]
ctrl 1-5 for changing subsurf levels
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
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
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
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.
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...
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
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).
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.
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
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
Matt Ebb [Thu, 26 Nov 2009 06:07:56 +0000 (06:07 +0000)]
Fix for [#20030] selection frame in edit mode turns white
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
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.
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.
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).
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
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.
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
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
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.
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.
Matt Ebb [Wed, 25 Nov 2009 22:58:54 +0000 (22:58 +0000)]
Fix for opening images in the Background Image panel
Martin Poirier [Wed, 25 Nov 2009 22:38:07 +0000 (22:38 +0000)]
Editmesh undo: restore selection counts after undo
Martin Poirier [Wed, 25 Nov 2009 22:14:51 +0000 (22:14 +0000)]
Decrease snap delay to 10 ms
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.
Janne Karhu [Wed, 25 Nov 2009 17:46:10 +0000 (17:46 +0000)]
Verlet integration method for particles (patch provided by farsthary).
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.
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.
Campbell Barton [Wed, 25 Nov 2009 13:17:09 +0000 (13:17 +0000)]
fix for error in sequencer ui from recent changes
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)
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
Campbell Barton [Wed, 25 Nov 2009 11:05:11 +0000 (11:05 +0000)]
add access to bone add/remove from rna. eg.
bone = arm.edit_bones.new("SomeBone")
arm.edit_bones.remove(bone)
regify (WIP)
Brecht Van Lommel [Wed, 25 Nov 2009 10:39:02 +0000 (10:39 +0000)]
RNA: FModifier generator coefficients wrapped, implemented by Campbell.
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)
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
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.
Guillermo S. Romero [Tue, 24 Nov 2009 23:24:56 +0000 (23:24 +0000)]
Add guardealloc for RAS_MeshObject.cpp (and clean whitespace).
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.
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.
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.
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'
Campbell Barton [Tue, 24 Nov 2009 16:19:15 +0000 (16:19 +0000)]
avoid operator type lookups when its known
William Reynish [Tue, 24 Nov 2009 15:45:45 +0000 (15:45 +0000)]
Forgot this file.
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.
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
Thomas Dinges [Tue, 24 Nov 2009 12:55:04 +0000 (12:55 +0000)]
Render Buttons:
* Made Audio Section in "Encoding Panel" easier.
Brecht Van Lommel [Tue, 24 Nov 2009 12:35:06 +0000 (12:35 +0000)]
Fix for last commit, forgot to update collada.
William Reynish [Tue, 24 Nov 2009 12:15:17 +0000 (12:15 +0000)]
Fix wrong names in 3D view View menu
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
Brecht Van Lommel [Tue, 24 Nov 2009 11:48:16 +0000 (11:48 +0000)]
Depsgraph/Drivers
* Removed ED_anim_dag_flush_update and ED_anim_object_flush_update. These
were wrapping DAG_* calls and were intended be used instead of them when
doing a DAG update from editors. That goes against the design in my opinion,
no matter who calls the DAG, that should update the editors correctly, so
any special checks in such functions for editors should be avoided.
* Driver RNA properties now do updates again, including DAG scene sorting,
text buttons no longer update as you type anymore, so this should be
safe I think.
* Remove scene.update() RNA function, all properties/functions should do this
automatically, if changing some property or calling a function/operator
does not do the correct update, that should be fixed.
William Reynish [Tue, 24 Nov 2009 11:40:35 +0000 (11:40 +0000)]
Removed split region operator. This was only for tests, and was not recoverable.
William Reynish [Tue, 24 Nov 2009 10:55:52 +0000 (10:55 +0000)]
Made render quality settings proper percentages.
Damien Plisson [Tue, 24 Nov 2009 10:19:07 +0000 (10:19 +0000)]
compile fix when compiling with WAIT_FOR_VSYNC = 1 (btw, is this still used ?)
Joshua Leung [Tue, 24 Nov 2009 09:55:41 +0000 (09:55 +0000)]
Spline IK Bugfix:
"Y Stretch" option was broken in UI due to mismatch between RNA and scripts.
Damien Plisson [Tue, 24 Nov 2009 09:46:53 +0000 (09:46 +0000)]
quicktime : small ui update to include the two qt import options in the output panel
+ pep8 fixes
Campbell Barton [Tue, 24 Nov 2009 09:24:32 +0000 (09:24 +0000)]
- added rna api function scene.update(), needed for rig generation to update driver deps
- removed some warnings
Joshua Leung [Tue, 24 Nov 2009 05:57:47 +0000 (05:57 +0000)]
Bugfix for Parenting to Bones:
Reshuffled the code a bit so that the parent-type gets set before the parent inverse matrices are calculated.
Thanks to Claas Eicke Kuhnen (cekuhnen) on Blender Artists for catching this.
Martin Poirier [Tue, 24 Nov 2009 05:03:44 +0000 (05:03 +0000)]
Extend handler return values to distinguish between events that have been handled and passed through and those that haven't been handled at all.
This also solves a bug with Click event (not visible with keymaps that use Click in default)
Martin Poirier [Tue, 24 Nov 2009 04:59:52 +0000 (04:59 +0000)]
Made select operator return FINISHED only when it did something (only PASSTHROUGH otherwise)
Martin Poirier [Tue, 24 Nov 2009 04:30:24 +0000 (04:30 +0000)]
Add CLICK to keymap RNA
Joshua Leung [Tue, 24 Nov 2009 04:21:32 +0000 (04:21 +0000)]
Keyframing Operator Tweaks for Durian:
* Insert Keyframe (IKEY) now only shows the menu requesting to choose a KeyingSet to use if there is no active KeyingSet. To get the old behaviour, the "always_prompt" boolean property for the "ANIM_OT_insert_keyframe_menu" operator should be supplied.
* After inserting/deleting keyframes without the menu, a popup menu confirming that the keyframes have been modified is shown. Please note that you do not need to click on this popup.
TODO:
Make the confirmation popup fade out after a fixed time.
Matt Ebb [Tue, 24 Nov 2009 02:07:57 +0000 (02:07 +0000)]
removed mmb pan/rotate user preference - this is handled by key maps now
Dalai Felinto [Tue, 24 Nov 2009 01:09:19 +0000 (01:09 +0000)]
commenting out "Todo" labels from bge player stereo options
the To Do was more like self-remaining since no one else is currently working with stereo :)
I will get back to that once 2.5alpha0 is out. In the mean time let's have a cleaner interface.
Roland Hess [Tue, 24 Nov 2009 00:56:52 +0000 (00:56 +0000)]
RNA update -- added RNA and functions for dealing with the clone UV layer for projection painting. This is just the guts -- someone smart can hook up the UI.
Campbell Barton [Tue, 24 Nov 2009 00:02:21 +0000 (00:02 +0000)]
rig-generation from metadata, the idea is to input a simple rig with metadata matching preset definitions
these are applied by adding constraints, drivers, control bones etc. making it possible to re-apply changes & improvements to many rigs at once.
testcase makes a finger rig (like in BBB) from 3 bones, the base tagged with an id property "type":"finger".
still missing is a way to update the driver dep's
also fixed an error in the property UI when the active bone is not on the active layer.