Commit Graph

20014 Commits

Author SHA1 Message Date
Campbell Barton
69c6a33ba1 wrap the mouse within the region while grabbing so on release the current view never changes and less likelyhood of loosing the cursor when running blender on 2+ screens. (assuming the 3d view isnt stretched over both) 2009-10-17 19:32:28 +00:00
Campbell Barton
484bf962c6 simple fix for blend from shape when no keys exist 2009-10-17 16:52:09 +00:00
Campbell Barton
bdafc20cff enable wrap cursor for transform. might want this disabled when the manipulator is used? 2009-10-17 15:25:19 +00:00
Campbell Barton
d11888b470 - wrapping failed with the cursor at the screen edge,
- changed numbuts behavior with continuous grab so dragging back after passing the button limit immediately adjusts the value
2009-10-17 14:54:13 +00:00
Martin Poirier
9d98b48925 Temporary remap extrude to Ctrl+Alt+Click, to avoid conflict with transform. 2009-10-17 14:45:49 +00:00
Campbell Barton
91d89c1ff7 Adjustments to continuous grab
- Use an enum for grab modes rather then boolean options.
 -- GHOST_kGrabNormal: continuous grab userpref disabled
 -- GHOST_kGrabWrap: wrap the mouse at the screen bounds *
 -- GHOST_kGrabHide: hide the mouse while grabbing and restore the mouse where it was initially pressed *

GrabWrap is nice for transform and tools where you want some idea where the cursor is, previously I found both restoring the mouse at its original location and restoring at a clamped location was confusing with operators like transform, wrapping is not ideal but IMHO the best of a bad bunch of options.
GrabHide  is for numbuts, where restoring the mouse at the initial location isnt so confusing.
2009-10-17 14:08:01 +00:00
Joshua Leung
53624a53d9 Assorted tweaks for animation editors:
* Changing to the ShapeKey editor now automatically enables the value sliders
* Filtering code for ShapeKey editor can now do AnimData block filtering too (internal details...)
* Silenced console warnings when inserting keyframes on F-Curves with no keyframes already (for Animation Editor sliders)
* Made the update code for keyframe transforms send more general depsgraph updates. Unfortuately, this still doesn't resolve the update problems with shapekeys
2009-10-17 04:22:52 +00:00
Thomas Dinges
474e97e6d2 Fix for World tab:
Unlinking an World Data block caused the whole tab to disappear.
2009-10-16 19:46:53 +00:00
Thomas Dinges
38ce0c64cd Forgot to commit these files in 23837. 2009-10-16 19:25:51 +00:00
Campbell Barton
99ec29193a bisplay shapekeys as sliders in the dope sheet editor 2009-10-16 18:03:38 +00:00
Campbell Barton
4957d50b79 shape key mirror failed with center verts 2009-10-16 16:09:57 +00:00
Brecht Van Lommel
863e661cc3 Bugfix: sculpting with a multires modifier at level 1 would crash. 2009-10-16 15:28:43 +00:00
Campbell Barton
299adde803 shape key mirror tool, access from shapekey list buttons 2009-10-16 13:04:59 +00:00
Joshua Leung
f6494ff3cf ShapeKey Editor (sub-mode of DopeSheet Editor)
Special priority request from Durian team to get this sub-editor of the DopeSheet Editor restored. Originally I was kindof planning to drop it, but obviously it still has a role!

It now supports all the modern features that the DopeSheet supports, complete with selection, muting, locking, DopeSheet summary, and all the other tools that you know and love from the other views. 

Also, this no longer uses the old hacky sliders that 2.4x used (instead it uses RNA-based ones), so should function just the same as other DopeSheet views).
2009-10-16 12:08:47 +00:00
Thomas Dinges
6846abb2ca Added Notifier for Adding and Removing Keying sets. 2009-10-16 10:49:54 +00:00
Joshua Leung
fbfbb2afe9 Toggle visibility of channels operator (VKEY) in Graph Editor channels view now works for channels with the toggles other than F-Curves and Groups 2009-10-16 10:44:10 +00:00
Thomas Dinges
299d7531ed Fix for last commit, used wrong operators. 2009-10-16 10:40:03 +00:00
Brecht Van Lommel
2e74a6ba30 Added a button to clear the weights of all shape keys, useful
when editing shapes and doing blending tests.
2009-10-16 10:29:41 +00:00
Thomas Dinges
04f17fed4d 2.5 Outliner:
Finally, the Outliner Header is drawn via Python too. 
* Also added some Operators to the View Menu.
2009-10-16 10:25:39 +00:00
Campbell Barton
5938b4c93e new utility function for BLI_storage.h - BLI_is_dir
currently unsupported on windows.

should fix this too [#19656] N-Panel in filebrowser not working
though typing in invalid names then becomes possible
2009-10-16 10:22:11 +00:00
Brecht Van Lommel
59f330cce0 Add back Blend From Shape in mesh edit mode. 2009-10-16 10:05:58 +00:00
Brecht Van Lommel
61a88bb597 Bugfix: z-offset for materials was not added back yet. 2009-10-16 10:03:39 +00:00
Joshua Leung
680888419d A few Graph Editor tweaks:
* Tiny tweak of GL commands used when drawing F-Curves (single GL_LINES instead of multiple GL_LINE_STRIPS) to hopefully improve the performance with heaps of handles drawn a bit

* Spelling fix for initTransDataCurveHandes -> initTransDataCurveHandles
2009-10-16 10:01:15 +00:00
Campbell Barton
3d80fa9728 new operator - OBJECT_OT_make_single_user
Added keybindings and menu items
- Make Single User, Ukey
- Make Local, Lkey
- Make Duplis real, Ctrl+Shift+A
2009-10-16 10:00:45 +00:00
Joshua Leung
004199efd4 Graph Editor - Transform Crash Fix
The code for transforming a mixture of keyframes with bezier and non-bezier interpolation was crashing. 

The old code only took all the handles when a keyframe was bezier, and one when it was not; but sometimes this underestimated the situation (the first handle is only really used if the previous keyframe was bezier, as per the standard evaluation rules for these, but it didn't really check for this). Now, it just adds them whenever, since there is the possibility that keyframes may be moved before other unselected ones, in which case the handles may become invalid.

Thanks to Lee (from Durian, who found the crash), and Jess Balint (who had submitted a patch with some steps towards fixing this)
2009-10-16 06:24:39 +00:00
Martin Poirier
7016400278 Zoom to mouse pointer with mouse wheel works again.
The point where it zooms to can now be specified as operator properties and will be used if zoom to pointer is on. (when not specified, it will use the x and y of the event)
2009-10-16 00:23:40 +00:00
Martin Poirier
6ffb79107c X Mirror editmesh with PET
Lock vertice near the middle (|x| < 0.0001) on the mirror's plane.
Don't propagate transformation across mirror plane (this could probably be smarter)
2009-10-15 21:54:22 +00:00
Martin Poirier
dcecd8e043 Force cursor grab OFF when running with -d.
It helps running a debugger when you can click on stuff when on a breakpoint...
2009-10-15 20:38:35 +00:00
Campbell Barton
17c7b46334 object apply menu and keybinding (Ctrl+A) 2009-10-15 20:15:21 +00:00
Damien Plisson
ee6dd8ec38 Cocoa :
- implemented custom cursor handling
2009-10-15 20:09:50 +00:00
Campbell Barton
5fff9cf660 stamp font size and added rendertime stamp option 2009-10-15 19:18:40 +00:00
Campbell Barton
66725a189e disallow editing particle settings when first entering particle editmode, would crash instantly when changing the amount for eg. 2009-10-15 18:27:41 +00:00
Campbell Barton
d464e2454e move view3d keymaps so edit&paint mode keymaps override removed workaround that prevented switching directly from editmode to paint modes
+ other minor changes
2009-10-15 17:59:42 +00:00
Thomas Dinges
bd0fee9a4c Network Render:
* Some code cleanups to match layout file code guidelines.
* Ported Operator Labels to op file itself.
* Added some Tooltips, theeth: Feel free to change/improve them as you like. :)
2009-10-15 17:18:47 +00:00
Martin Poirier
c102cedbf5 [#19644] Rotate around selection doesn't work
offset structures weren't initialized properly.
2009-10-15 15:58:12 +00:00
Guillermo S. Romero
81beef19a3 Add side clicking in sliders.
Hold Alt and click where arrows are in num buttons.
2009-10-15 14:41:21 +00:00
William Reynish
33cd5fb85a Tiny tweak to make Anim Player button wide enough for icon+text. 2009-10-15 13:52:27 +00:00
William Reynish
d80074f18c Updated icons. Changed some icon names that weren't blank. 2009-10-15 13:47:18 +00:00
Brecht Van Lommel
158534d404 Bugfix: editing shape keys in edit mode would not work correct
when blending shape keys.
2009-10-15 13:33:56 +00:00
Joshua Leung
fe649ec580 Num Sliders Tweak:
The dark bar for sliders will now be drawn in a way that takes into account the state of the slider (this includes info about keyframing and/or drivers). This means no more ambiguarity about whether these sliders are animated or not!

I've had to make a little hack here to make sure that the sliders bar will still be visible after the state has been blended, but this should probably be solved nicer by adding a separate setting for blending-factor in this case.
2009-10-15 11:52:23 +00:00
Campbell Barton
734d50e8df typing in non-existant dirs now goes back to the previous dir. (also for bookmarks and when changing dir's in other places) 2009-10-15 11:11:52 +00:00
Joshua Leung
384a1b5a5c UI Templates: RNA-Path Builder (Skeleton Code)
Added a base-template for editing/creating RNA-Paths. This is now used for KeyingSets and Driver UI's, so that when the actual magic gets put in, it will work.
2009-10-15 10:13:59 +00:00
Brecht Van Lommel
29e738f60c Bugfix: deep shadow buffer commit made mixed solid/ztransp rendering
not work correct without OSA.
2009-10-15 09:56:10 +00:00
Campbell Barton
a28b9512fe made texflag a short everywhere (only stores one flag)
fix for crash with separate (missing NULL check)
2009-10-15 09:00:40 +00:00
Campbell Barton
a6645bfafb pack all was giving an error on the render result 2009-10-15 08:39:47 +00:00
Damien Plisson
3b2d752933 Cocoa :
- Small changes to make ghost_cocoa compatible with 10.4 + gcc4.0 (the initial goal was to be 10.5+ compatible, but 10.4 is finally also possible)

- Main window title is now in Apple document window title style (proxy icon + filename)

- fix for top menu "Blender" sub-menu not anchored correctly in 10.5
2009-10-15 08:27:31 +00:00
William Reynish
e6e8ba98df Fixed some icons in user preferences. These seem to be caused to an issue in the icon file itself though, where it assumes the wrong icon when pressed. (See checkboxes in menus that become locks when enabled) 2009-10-15 07:07:01 +00:00
Martin Poirier
316d604daf TransformOrientation enum is in the transform operators too, so we can't always cast to screen. 2009-10-15 01:34:29 +00:00
Martin Poirier
1da4a06fc7 Don't depend on context for transform_orientation enum
New current_orientation property that returns the current transform orientation data (if any)
New UI elements to rename and remove custom orientation (visible only when needed)
2009-10-14 21:05:35 +00:00
Campbell Barton
7bed5e35b4 added operators for setting rna for each type, this avoids having double "'quoted'" strings from C which is ugly. 2009-10-14 20:09:21 +00:00