Campbell Barton
d36da8a8a1
style cleanup
2012-08-19 10:41:27 +00:00
Campbell Barton
ab662a1e02
fix for own commit r49991, this exposed bad logic in rect copy function.
2012-08-18 20:54:43 +00:00
Campbell Barton
a5b5f5d3fb
code cleanup: use BLI rect functions for interface button and block code.
2012-08-18 18:11:51 +00:00
Campbell Barton
63f143a3cc
use rctf struct for UI buttons and blocks, easier to read and means we can use BLI_rctf functions.
2012-08-18 16:53:46 +00:00
Campbell Barton
27b4b45543
utility functions: BLI_findptr, BLI_rfindptr --- use for finding an item in a linked list by a pointer.
2012-08-18 16:16:13 +00:00
Campbell Barton
dac761057d
fix for crash showing tooltip for NODE_OT_add_search()
2012-08-17 11:31:54 +00:00
Campbell Barton
81dd80f1d3
support fro HDR color picking (values over 1.0) when color picking in the image editor or node space.
2012-08-16 14:47:14 +00:00
Campbell Barton
e2cffbe732
rendering now stops the composite job first, then renders.
2012-08-15 10:31:52 +00:00
Campbell Barton
502dfcce5f
use job types when checking for jobs in areas of the code that made assumptions about job types (that could be wrong)
2012-08-15 10:23:06 +00:00
Campbell Barton
97859e8709
add wm job types they are not used yet, so this just defines them for new jobs add add argument to search by job type.
2012-08-15 09:42:06 +00:00
Campbell Barton
7d3e854aeb
add hook now has option to add to active bone (mango request).
2012-08-13 08:54:33 +00:00
Campbell Barton
3c2b4107de
confusion minf/fmin, broke msvc
2012-08-12 19:41:47 +00:00
Campbell Barton
c140ccb9fd
2d smoothview now scales back the time to move for smaller view zoom/panning.
...
also the compositor bounds (used for scroll bars), were only calculated when pressing the home key in 2.63, how this is updated on draw
2012-08-12 19:35:47 +00:00
Campbell Barton
9cce2d8645
smooth-view for 2d views, graph editor, sequencer, node view, works with border zoom, view selected, view all.
2012-08-12 01:07:31 +00:00
Campbell Barton
b96c622015
style cleanup
2012-08-11 22:12:32 +00:00
Campbell Barton
c567cf3fab
code cleanup: WM naming conventions
2012-08-11 21:35:24 +00:00
Campbell Barton
5e0f254afa
utility functions for getting/setting rectangles for operators.
2012-08-08 20:38:55 +00:00
Campbell Barton
f0951f58ca
code cleanup: rename G.afbreek --> is_break, G.rendering --> is_rendering
2012-08-08 18:37:06 +00:00
Joshua Leung
a35420eee5
Code cleanup - whitespace
2012-08-08 14:02:44 +00:00
Campbell Barton
db6c4ba11e
bring back the play option from 2.4x
2012-08-06 16:07:11 +00:00
Campbell Barton
887d517e3b
use define for 0.375 = GLA_PIXEL_OFS, used all over the interface.
...
also use M_SQRT1_2 in math_rotation.c
2012-08-05 17:27:52 +00:00
Campbell Barton
6972e19fd5
code cleanup:
...
- replace (strcmp(vfont->name, FO_BUILTIN_NAME) == 0) with (BKE_vfont_is_builtin(vfont)).
- reduce some double promotions.
2012-08-03 22:12:57 +00:00
Andrea Weikert
b876ca5611
fix: column flow layout wrongly calculated height of second and subsequent columns when used with more than 2 columns.
...
* discovered while playing with the column flow layout in asset branch.
2012-08-01 17:52:14 +00:00
Campbell Barton
a199ae5368
style cleanup: whitespace, also add '?' to save over popup since it wasnt totally clear it was a question (user pointed this out, they thought it was just notification and lost their work).
2012-07-31 23:06:12 +00:00
Campbell Barton
7217927414
add inline functions for max/min ints, good to use when the arguments are function calls (we had a few of these).
2012-07-29 18:14:20 +00:00
Campbell Barton
c41e1e434a
code cleanup: replace MIN2/MAX2 with minf/maxf
2012-07-29 16:59:51 +00:00
Campbell Barton
0cfd402a7f
scale down histogram button movement by 10, was very sensitive
2012-07-29 01:41:46 +00:00
Campbell Barton
e32c60284a
style cleanup
2012-07-29 00:20:28 +00:00
Campbell Barton
61469d2e3e
code cleanup: remove unneeded 'struct' qualifiers
2012-07-26 22:47:05 +00:00
Campbell Barton
0c1ea14656
fix for crash when displaying the tooltip for a non python menu (was introduced with recent translation/ui edits)
2012-07-26 16:55:34 +00:00
Sergey Sharybin
fb520785b6
Run versioning stuff for animation summary color again
...
Seems it was messed up at some point or changes weren't applied
synchronized, which lead to lots of files with wrong color used.
2012-07-26 15:50:45 +00:00
Sergey Sharybin
2b8fdedaf3
Fix #31897 : Ctrl+Click in 'Hue Correct' Node Adds in Wrong Location
...
Misusage of X/Y coords, ancient one!
2012-07-26 12:04:11 +00:00
Sergey Sharybin
2157031dc0
Fix #31550 : Active Armature bone hardly distinguishable from other selected bones
...
Made active bone color a bit brighter and made it a userpref option.
2012-07-26 10:53:59 +00:00
Campbell Barton
ab0fa803cd
image histogram/sample line couldn't show HDR colors. now allow zooming the view to see colors up to 10.0
2012-07-26 09:06:23 +00:00
Sergey Sharybin
d2a77c07e0
Fix #32004 : Up/down arrow keys can move index out of actual range of template_list
...
Fixed by clamping current index value to 0..list_size-1 range in list event
handling function. This shouldn't give any regressions since this clamping\
happens only after template was already displayed so items counter should be
correct here.
It is still possible to set index to meaningless value by directly changing
the index value via python, but that's not in the scope of interface engine
and not currently considered a bug.
2012-07-25 16:53:56 +00:00
Campbell Barton
e771e07fe8
image space now has a mode for view/paint/mask editing.
2012-07-25 11:25:10 +00:00
Campbell Barton
3af938918a
fix annoying bug where image open from ID template didn't open in the existing images path.
2012-07-25 09:04:59 +00:00
Campbell Barton
2a98e83abd
style cleanup
2012-07-21 16:21:42 +00:00
Campbell Barton
62a73381a7
use fabsf when using floats.
2012-07-21 15:27:40 +00:00
Campbell Barton
6423461247
shift help with continuous grab on a curve point now does scaled motion.
2012-07-18 17:29:15 +00:00
Campbell Barton
2945ba9e5e
holding shift with cont. grab now works on the hsv cube and the value slider.
2012-07-17 15:44:33 +00:00
Campbell Barton
46bec42333
option to clear all keys from a button, so you dont have to hunt about for the keys inserted.
2012-07-17 15:16:44 +00:00
Campbell Barton
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
Campbell Barton
7881d2c1a8
correct own error in logic for skipping mask layers, inverted mask layers with zero alpha still need to be evaluated.
2012-07-16 15:40:47 +00:00
Campbell Barton
13b56dec78
show alpha in the mask buttons item list
2012-07-16 14:27:45 +00:00
Campbell Barton
7cc5af4ef3
minor refactor for rect functions. more consistent naming.
2012-07-15 00:29:56 +00:00
Campbell Barton
593163e6e5
fix for minor error in previous commit (wasnt connecting right faces for cyclic mask), also avoid doing more area calculations then needed when checking if the mouse is moving away from uiBlock.
2012-07-14 23:26:54 +00:00
Sergey Sharybin
54c5edcfbb
Fix crash on creating tooltip for sequencer's gl preview mode
...
Issue was caused by missed value for this enum, fixed by adding check
in tooltip generation.
Default value for this enum should also be fixed, but that would be
in separated commit.
2012-07-12 07:15:32 +00:00
Campbell Barton
a5127dba57
vector versions of BLI_in_rctf / BLI_in_rcti, (BLI_in_rctf_v, BLI_in_rcti_v)
...
use where possible.
2012-07-11 18:17:48 +00:00
Bastien Montagne
0dafa97ea3
UI translation from inside Blender UI: first part.
...
This commit reshapes a bit runtime button info getter, by adding a new uiButGetStrInfo() which accepts a variable number of uiStringInfo parameters, and tries to fill them with the requested strings, for the given button (label, tip, context, RNA identifier, keymap, etc.). Currently used mostly by existing ui_tooltip_create(), and new UI_OT_edittranslation_init operator.
It also adds a few getters (to get RNA i18n context, and current language iso code).
Finally, it adds to C operators needed for the py ui_translation addon:
*UI_OT_edittranslation_init, which gathers requested data and launch the py operator.
*UI_OT_reloadtranslation, which forces a full reload of the whole UI translation (including rechecking the directory containing mo files).
For the first operator to work, it also adds a new user preferences path: i18n_branches_directory, to point to the /branch part of a bf-translation checkout.
2012-07-09 14:25:35 +00:00