5753ede9a5
Usability: Logic editor
...
- View now restricts to the actual region you work on. Makes zoom and pan nicer.
- Added HOME for reset view to 1:1 zoom level.
Also: fixed nasty bug in view2d code that checked validity of 2d views, only
showed (afaik) in the logic eidtor though.
Effect was that zoom in/out would weirdly jump when going across zoomlevel 1.
2012-10-30 15:33:03 +00:00
eb69d1c1ae
style cleanup: also quiet harmless compiler warning.
2012-10-29 15:43:54 +00:00
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
a4eacfa867
Fix for r51634, without this define, translation won’t happen (all i18n macro would be no-op for this editor!).
2012-10-25 20:12:11 +00:00
d90b03572d
fix scons compilation after 51634
2012-10-25 19:16:07 +00:00
Dalai Felinto
930c916e6c
adding logic editor strings to .po
...
for the records I was chasing the strings using:
/\"\u[^\".]*\"/IFACE_(\0)/cg
2012-10-25 18:28:12 +00:00
1767b65846
style cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.c
2012-10-23 03:38:26 +00:00
ddc2dbc2a4
style cleanup
2012-10-22 08:15:51 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
34114b3b75
code cleanup: remove/comment unused defines
2012-09-22 13:40:31 +00:00
Dalai Felinto
91983a3b21
Logic Editor code cleanup > 2500 lines removed - old 2.49 UI code
...
since last two commits the UI has all the features we had in 2.49, time to remove the old code :)
2012-09-21 05:19:06 +00:00
Dalai Felinto
4610f613e1
2.49 Logic Editor functionality - Add Sensor/Controller/Actuator now possible for all selected objects (not only the active one)
2012-09-21 04:12:55 +00:00
Dalai Felinto
184a232ccc
2.49 feature: Game Controller State name shows up when mouse over them (the name of a state is the name of the top controller of this state)
...
review and small tweaks by Campbell Barton
2012-09-21 04:09:09 +00:00
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
232571c61a
code cleanup: replace macro for BLI_rect size/center with inline functions.
2012-09-15 11:48:20 +00:00
b4df6b2819
code cleanup: changing the INT define to an enum conflicts with INT typedef on windows, use more verbose names for button pointer types. also removed some redundant flags from buttons.
2012-09-12 00:32:33 +00:00
Dalai Felinto
f0ea636b67
bugfix [ #32538 ] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch] - based on the patch from HG1
2012-09-11 22:55:14 +00:00
aa2d84da37
style cleanup:
...
also remove some redundant conversions int -> short -> int
2012-09-09 00:00:21 +00:00
306e2b4878
stule cleanup
2012-09-04 18:47:08 +00:00
ee96cde864
style cleanup: whitespace
2012-08-26 11:35:43 +00:00
Dalai Felinto
dfbc793d88
bugfix for [32368] Added controllers don't count over 10
...
Blender original code (NaN likely) was relying on strcmp to sort the list of controllers.
As it happens, in strcmp 10 < 2, thus the list was never in the right order.
The curious thing is that in 2.49 it worked, but I think it did because the make_unique_prop_names function was called twice. Strange ;)
The solution is to use blender BLI_natstrcmp to do natural sorting
2012-08-23 17:37:04 +00:00
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
26f073b327
macros for rectangle center and size
2012-08-20 15:29:02 +00:00
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
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
e32c60284a
style cleanup
2012-07-29 00:20:28 +00:00
358f7d40b6
style cleanup: use TRUE/FALSE for ui align args.
2012-06-19 23:08:16 +00:00
1931aac1f7
style cleanup: (indentation)
2012-06-06 14:48:39 +00:00
2d2d36fe3b
code cleanup:
...
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
af3e348430
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
2012-05-19 13:28:19 +00:00
ff26474a46
was casting to short for int args.
2012-05-14 13:54:00 +00:00
1dccd4c98a
code cleanup: naming - pose/armature/image
...
also use ..._find_name(..., name) rather then ..._find_named(..., name) --- both were used.
2012-05-05 16:03:57 +00:00
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
b56aabf815
style cleanup: multi-line if statements.
2012-04-21 15:11:03 +00:00
bdce58a42c
Code cleanup:
...
* Remove some non used *_button_register functions, panels are done in python.
* Remove do_node_region_buttons, was not used anymore.
Fix:
* Only show Grease Pencil panel in the Node editor, when there is a valid nodetree.
2012-04-13 00:04:56 +00:00
b4a0152e76
code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.)
2012-04-11 08:15:13 +00:00
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
2f348d8b5d
style cleanup: mainly for mesh code, also some WM function use.
2012-03-24 02:51:46 +00:00
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
46045fbb09
style cleanup - braces & else / if's
2012-03-07 04:53:43 +00:00
31d2ee9bf7
style cleanup, brackets in else/if, some indentation.
2012-03-06 18:40:15 +00:00
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00
Dalai Felinto
1f928833f3
option for the Armature Actuator to change the influence of a bone constraint.
...
Also adds DampedTrackTo to the list of supported constraints in the BGE
Test file:
http://www.pasteall.org/blend/11715
Patch developed as part of a project to NF-UBC Nereus Program.
Development time 'sponsored' by the project.
www.nereusprogram.org
2012-03-03 02:47:01 +00:00