Bastien Montagne
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
Campbell Barton
4abe548527
cleanup: style
2015-01-02 19:29:00 +11: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
Antony Riakiotakis
585d2f31a9
Fix T32209 quitting not saving latest data if you are in edit or sculpt mode on
...
quit.blend.
This will use a slower file write if an object is in edit or sculpt
mode.
Autosaving will explicitly not be supported to keep it fast.
Added a tooltip warning.
2014-10-10 12:04:44 +02:00
Bastien Montagne
6fa6fa2fa2
Fix T41284: The python ops log doesn't work.
2014-08-03 21:17:41 +02:00
Antony Riakiotakis
dcc6300ddd
Fix T40691, dyntopo changes lost on save if sculpting on multiple
...
objects.
Flush edits for all objects, not just the active one. Here we might want
to disallow leaving an object on sculpt mode when selecting another, but
this works, no need to enforce it.
2014-06-26 23:57:33 +03:00
Campbell Barton
7df2717727
Add ED_paint.h, split out ED_sculpt.h
...
also rename some functions to match our convention
2014-06-23 22:00:44 +10:00
Campbell Barton
3c63eee7b4
Code cleanup: replace 0 with OB_MODE_OBJECT
2014-06-18 16:01:51 +10:00
Campbell Barton
b16bf6c3d4
Resolve memory leask with reports on initialization
2014-06-18 15:49:40 +10:00
Antony Riakiotakis
2e07109feb
Code cleanup: naming.
...
Prepend BKE_ to the functions moved in blenkernel for recent bug fix.
2014-05-07 02:59:23 +03:00
Campbell Barton
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
Campbell Barton
a861e5572a
UI: Add theme color for viewport overlay
...
Was using wire or black in many places, this color is used for cursor,
camera guides, transform helper lines. So its possible to have a dark
background with light overlay color.
Patch D331 by Brita, with some edits.
2014-03-18 05:40:18 +11:00
Campbell Barton
35ed7486c7
Mesh API: rename 'octree' to 'spatial' since internally its using kdtree
2014-03-13 01:49:47 +11:00
Campbell Barton
c8d0d9b383
Code Cleanup: tabs/spaces, no need to call CTX_data_edit_object twice
2014-01-21 00:33:00 +11:00
Brecht Van Lommel
fbf821c50b
Fix T37967: autosave does not save dynamic topology edits while in sculpt mode.
2014-01-20 14:26:48 +01:00
Brecht Van Lommel
018fe81779
Fix T38269: scene full copy in mesh edit or sculpt mode did not copy mesh edits.
2014-01-20 14:16:22 +01:00
Campbell Barton
f5076d54cb
'Transform' Python Function for armature, curve and lattice.
...
patch by Paolo Acampora with some edits.
2013-12-17 23:04:36 +11:00
Campbell Barton
1cee3e53fc
Code Cleanup: use BLI_strncpy when copying into fixed sized buffers
2013-12-03 09:12:44 +11:00
Campbell Barton
7998b2f6a7
transform - use 2d float's for the viewport center (allows for vector math functions to be used more easily).
2013-10-12 03:42:06 +00:00
Campbell Barton
03b07a719f
code cleanup: unused functions
2013-04-03 15:04:24 +00:00
Campbell Barton
37bf7dd98a
draw helper lines for inset and bevel operators, the mouse distance from the selection center was used, but often it was hard to tell where this was and you'd have to guess.
...
adds ED_region_draw_mouse_line_cb() generic draw callback for mouse helper lines.
2013-04-02 10:48:11 +00:00
Campbell Barton
384948908a
patch [ #34103 ] path_util_split_dirstring.patch, path_util_split_dirstring_2.patch, path_util_split_dirstring_3.patch
...
from Lawrence D'Oliveiro (ldo)
Get rid of BLI_splitdirstring, replace with calls to BLI_split_dirfile, BLI_split_dir_part and BLI_split_file_part as appropriate.
2013-03-05 06:26:10 +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
Campbell Barton
7a71f58af3
fixes for NULL checks, remove some redundant checks and add some in that have been removed by accident as code has been updated.
2012-09-14 06:17:14 +00:00
Campbell Barton
aaafa0c2fe
code cleanup: move file string defines into BLI_path_utils.h, BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-09-03 22:04:14 +00:00
Brecht Van Lommel
6b2aa6f863
Fix #32408 : image editor does not show paint brush circle on loading a .blend
...
file that has paint mode enabled.
2012-08-31 13:04:03 +00:00
Campbell Barton
ceffa6e1fa
code cleanup: comment unused functions (removed one which isnt useful anymore).
2012-04-23 07:32:13 +00:00
Campbell Barton
a32cc95fa8
style cleanup
2012-03-30 10:00:20 +00:00
Campbell Barton
09f29c0b70
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions
2012-03-27 04:46:52 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
Campbell Barton
4966982a5a
svn merge ^/trunk/blender -r43564:43609
2012-01-22 18:04:35 +00:00
Campbell Barton
b1667911ef
reduce operator lookups in the UI (could do 4 hash lookups per button).
2012-01-22 03:30:07 +00:00
Campbell Barton
a7b0a11811
svn merge ^/trunk/blender -r43278:43294
2012-01-11 15:04:54 +00:00
Campbell Barton
e10fd04db0
use BLI_strncpy and BLI_snprintf when the size of the string is known.
...
fix for sequencer unique naming which was missed with string length update.
2012-01-11 12:33:51 +00:00
Campbell Barton
3b5bcab09c
svn merge ^/trunk/blender -r42139:42172
2011-11-26 16:29:14 +00:00
Campbell Barton
6736576f6d
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
2011-11-26 04:07:38 +00:00
Campbell Barton
e9429f45e5
re-enable mirroring - it was commented in a few functions.
2011-10-28 14:31:15 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
aa6d7ebd14
svn merge ^/trunk/blender -r40720:40872
2011-10-09 07:31:15 +00:00
Campbell Barton
8714fb7019
replace sprintf with strcpy where no formatting is done and return value isn't used.
2011-10-09 06:03:38 +00:00
Campbell Barton
f0b0679fd2
found some changes were missed from previous manual merge
2011-07-25 11:34:09 +00:00
Campbell Barton
aed306f219
recent merges lost changes in this file, manually merge changes from -r37078:37500
2011-07-25 10:14:02 +00:00
Brecht Van Lommel
97b966f2d6
Fix #27594 : non-active object in weight paint mode doesn't free memory.
...
Also removed some commented out 2.4x code that is already replaced.
2011-06-13 12:03:13 +00:00
Campbell Barton
a73c3fe5c9
subsurf, derived mesh and other misc files: floats were being implicitly promoted to doubles, adjust to use floats.
2011-03-27 17:22:04 +00:00
Nathan Letwory
95100afc12
doxygen: blender/editors tagged.
2011-02-27 20:29:51 +00:00
Andrea Weikert
4ed5cd6cef
== UI icons ==
...
* Change ICON_NULL --> ICON_NONE to avoid two #defines with the same meaning.
2011-02-27 18:03:19 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00