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
Campbell Barton
cfb7aee017
style cleanup
2012-07-07 22:51:57 +00:00
Campbell Barton
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
Campbell Barton
3a0593cc3d
code cleanup: dont use function calls like dot_v3v3, pow and sqrt within macros which results in calling the function multiple times needlessly.
...
also added some comments.
2012-07-06 22:48:28 +00:00
Bastien Montagne
558721ab59
More spell checking.
2012-07-04 15:04:38 +00:00
Bastien Montagne
4d2a6a8e21
Spellfixes: colour -> color
2012-07-04 12:19:50 +00:00
Bastien Montagne
468ef74ed7
More spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normalize).
2012-07-03 19:09:07 +00:00
Bastien Montagne
37dc4006c7
First load of spell and typo fixes (mostly UI messages, but also one or two pieces of code using mis-spelled names).
2012-07-03 17:20:21 +00:00
Campbell Barton
c8c743b609
code cleanup: compile with clang and quiet some warnings.
2012-06-28 12:32:06 +00:00
Lukas Toenne
855b6391ea
Basic snapping in node transform operator.
...
Snapping actually was working already, but grid spacing was set to 1.0, which is basically pixel size in the node editor. Increased this to 1x grid step for fine snapping and 5x grid step for rough snapping.
Grid drawing in node editor now draws 2 levels in slightly different shades to indicate the different snapping modes better.
Node editor also supports the general use_snap tool setting to enable automatic snapping during transform. For now only the incremental snapping is supported, in future could be extended to enable alignment between nodes in a number of ways.
2012-06-28 08:47:22 +00:00
Campbell Barton
32478997ec
style cleanup
2012-06-27 18:29:47 +00:00
Campbell Barton
4da7b7089d
make hue correct grid more faded out.
2012-06-25 19:42:10 +00:00
Campbell Barton
74c9c24d27
style cleanyp
2012-06-23 23:22:19 +00:00
Campbell Barton
226c86ae58
use an inline function for rgb -> bw conversion.
2012-06-22 07:49:44 +00:00
Dan Eicher
884d800677
[ #31885 ] uiItemMenuEnumO / layout.operator_menu_enum() fails silently with bad property argument.
...
uiItemsFullEnumO() not displaying an RNA_warning if the prop doesn't exist/isn't an enum
2012-06-21 20:14:27 +00:00
Campbell Barton
9b8a97c039
hue color display still was shifted, turned out the resolution was a bit too low.
2012-06-21 19:45:36 +00:00
Campbell Barton
cb22a49893
color backdrop on hue balance was misleading (shifted to the right)
2012-06-21 15:42:08 +00:00