Campbell Barton
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
Bastien Montagne
e0303d0297
Cleanup/refactor: move BKE_deform_flip_side_name & co to BLI_string_utils
...
Functions like that do not have anything to do in BKE really, even less
when actually more used for bones than vgroups!
2017-01-16 20:36:23 +01:00
Bastien Montagne
7ce833af5b
Cleanup/refactor: get rid of fixed name limit in BKE_deform_flip_side_name & co.
...
Those were forcing to use vgroup name define in bones area, or even
mixing with maxbonename... ugly, and totally avoidable.
2017-01-16 20:36:23 +01:00
Campbell Barton
e56aa5d788
Fix select grouped parent, extend option was ignored
...
D2067 by @mangostaniko
2016-07-15 15:56:28 +10:00
Campbell Barton
28ca3ebc5f
Fix T47969: Select Random always uses same seed
...
Increment the seed on each use,
otherwise calling again selects the same order, unless you manually adjust the seed.
2016-03-29 01:24:57 +11:00
Campbell Barton
de79d049e2
Add object mode select more/less
...
Simple operator that selects using parent/child links.
2016-01-14 09:45:47 +11:00
Campbell Barton
676d790d29
Cleanup: use rna_enum_ prefix for RNA enums
...
Definitions could shadow local vars.
2015-11-23 17:40:09 +11:00
Campbell Barton
05acf3d43a
Random Select Seed Option
...
Add 'Seed' option for all random select operators
D1508 by @mba105, w/ edits
2015-10-10 23:52:11 +11:00
Bastien Montagne
d187c6d8d6
Fix T46285: "Select parent" if there is no parent doesn't work correctly.
2015-09-27 10:24:11 +02:00
Campbell Barton
2e2dc9b9e3
Refactor translation code out of blenfont
...
- Add blentranslation `BLT_*` module.
- moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`).
- moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-18 07:01:26 +10:00
Bastien Montagne
d2383ec6c0
Fix T45783: Problem selecting all objects on a layer from a script if any 3d view is in local mode.
...
Do not take into account lay bits used for local view, when doing exact match.
2015-08-13 14:25:26 +02:00
Bastien Montagne
828710d2ac
Fix T45782: bpy.ops.object.select_by_layer match='SHARED' option is not working.
...
Looks like some half-done change from enum to bool (or vice-versa), that op was just broken!
2015-08-13 13:18:45 +02:00
Campbell Barton
5c6e333780
UI Refactor T41640
...
Make the UI API more consistent and reduce confusion with some naming.
mainly:
- API function calls
- enum values
some internal static functions have been left for now
2014-11-10 23:06:54 +01:00
Campbell Barton
e71f2fc3ba
Cleanup
2014-08-27 09:52:24 +10:00
Bastien Montagne
e81b1c54d2
Cleanup: get rid of magic numbers.
2014-07-09 15:12:48 +02:00
Lukas Tönne
330633f063
Fix T40785: "Select Grouped" Pass Index mode is redundant.
...
Revert "Object Select Similar tool now has a Pass Index option."
This reverts commit 7a6919a74e .
2014-07-08 16:18:04 +02:00
Joshua Leung
6cc78927a3
Select Grouped -> KeyingSet for bones also shows error messages now when the Keying Set is inappropriate
2014-07-04 00:09:36 +12:00
Campbell Barton
a4d9c8f579
Code cleanup: casts, dead assignment & arg order.
2014-06-26 15:46:42 +10:00
Joshua Leung
8d6f546f32
Whitespace fix
2014-06-26 14:42:36 +12:00
Joshua Leung
11e0dddf91
Bugfix T40801: Select grouped objects by Keying Set not working with builtin Keying Sets
...
Most of the default builtin Keying Sets (e.g. Loc, Rot, Available, etc.) depend
on the currently selected objects, making them unsuitable for use with this feature.
As a result, this feature would silently fail. This commit adds some error messages
which at least let users know what's going on so that they can make other plans
2014-06-26 14:39:44 +12:00
Lukas Tönne
95d6c01478
Fix T40756 Select Linked by Particle System matches ignores selected
...
psys.
This is inconsistent with other comparable cases like materials, where
the active slot is used to define matching objects.
2014-06-23 08:22:42 +02:00
Campbell Barton
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
Campbell Barton
48446870a8
Code cleanup: remove redundant CTX calls
2014-04-30 08:11:47 +10:00
Campbell Barton
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
Campbell Barton
b3afbcab8f
ListBase API: add utility api funcs for clearing and checking empty
2014-02-08 06:24:05 +11:00
Campbell Barton
348cf17448
Code Cleanup: no need to pass empty strings as default values
2014-01-16 22:00:29 +11:00
Campbell Barton
7ae1949517
Select Random: add option to de-select
...
also made metaball operator behave like the others.
Path originally from Walid Shouman, with own edits.
2014-01-13 20:39:12 +11:00
Campbell Barton
63caaa2b12
Code Cleanup: rename vars for detecting change to be more consistent
...
rename change/is_change/is_changed/modified -> changed
also use bools over int/short/char and once accidental float.
2013-11-26 06:39:14 +11:00
Campbell Barton
e62cdbb474
code cleanup: rename flip_side_name to BKE_deform_flip_side_name
2013-11-17 05:23:05 +11:00
Campbell Barton
d407aeecc7
code cleanup: use more (blender) conventional naming for group functions.
...
also change dump_rna2xml.py to dump bpy.data by default.
2013-04-03 11:28:42 +00:00
Campbell Barton
a79e10157d
code cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
...
also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-22 05:34:10 +00:00
Campbell Barton
e7c15beaf6
code cleanup: use booleans for mesh and selection code.
2013-03-19 23:17:44 +00:00
Bastien Montagne
b1543f07bf
Another bunch of UI translation fixes, thanks to Leon Cheung, Gabriel Gazzán and S. Lockal for spotting them!
2013-02-24 15:40:28 +00:00
Brecht Van Lommel
7a6919a74e
Object Select Similar tool now has a Pass Index option.
...
Patch by Jesse Werner.
2013-02-21 18:08:04 +00:00
Campbell Barton
5e4bc5a4f8
patch [ #33687 ] select similar lamp
...
by Saurabh Wankhade (sauraedron), with some edits.
2012-12-28 11:24:07 +00:00
Bastien Montagne
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00
Bastien Montagne
492518f5e4
Fix [ #32884 ] select by group not working when active object in more than one group.
...
Would have liked to rework this whole area, but it's kind of tricky, so better to first fix that bug!
2012-10-22 06:53:51 +00:00
Campbell Barton
c56a911cd9
style cleanup: comments
2012-10-20 20:20:02 +00:00
Campbell Barton
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +00:00
Campbell Barton
d3737de8c2
fix for a strange linking error where set_property() in source/blender/blenkernel/intern/property.c would get mixed up with an X11 function of the same name. it crashed blender loading on my system.
...
Give functions in property.c more unique names.
2012-09-18 04:35:30 +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
32254596d4
replace ELEM8(gs, ID_ME, ID_CU, ID_MB, ID_LT, ID_LA, ID_CA, ID_TXT, ID_SPK) with macro: OB_DATA_SUPPORT_ID()
2012-08-12 14:57:19 +00:00
Campbell Barton
06791ba281
select linked
...
- dupligroup now only selects objects with dupligroup enabled.
- selected onjects are skipped, this way and undo push wont happen if no new objects are selected.
also minor edits to node view all/selected
2012-08-07 17:20:21 +00:00
Campbell Barton
9ff4fa6671
style cleanup
2012-08-04 12:30:16 +00:00
Sergey Sharybin
4ca9275b44
Implement operator to select linked data from outliner
...
Supports selecting using object data, material and library.
Would be nice to hide this menu item from menus appearing for
datablocks which does not support such a selection, but that
could be done separately.
2012-07-25 19:45:34 +00:00
Sergey Sharybin
b66f541b42
Separate Select Linked operator into smaller function which could be reused.
...
Should be no functional changes.
2012-07-25 19:45:31 +00:00
Campbell Barton
1597ad9377
style cleanup
2012-07-01 09:54:44 +00:00
Sergey Sharybin
909752a3da
Fix #31752 : Select All By Layer seems not to work when object belongs to several layers
...
Added option which changes match policy from exact match and shared layers when
selecting objects by layer.
2012-06-08 15:14:45 +00:00
Campbell Barton
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
Campbell Barton
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +00:00