74c9c24d27
style cleanyp
2012-06-23 23:22:19 +00:00
2c3165fdc0
style cleanup
2012-06-18 13:01:24 +00:00
d5032657ed
style cleanup
2012-06-06 22:38:39 +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
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
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
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
a73d0d3e72
code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows.
2012-04-15 07:54:07 +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
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
7add5e2bac
Better api use for paths.
...
Avoid possibly copy past buffer.
2012-01-21 14:48:07 +00:00
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
535d27eb49
minor cleanup for string use - no functional changes
...
- use more logical names for strings, noticed too many strings called `str` when reviewing name patch.
- pass __func__ macro to uiBeginBlock(), quite a few names were wrong (copy/paste error).
2012-01-11 09:33:44 +00:00
6736576f6d
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
2011-11-26 04:07:38 +00:00
33accdb725
use (const char*) rather than (char*) where possible.
...
also removed some unused function definitons.
2011-11-05 11:04:28 +00:00
fa6e6e7fc0
pass image description to image loading functions for more useful error than 'Unknown fileformat'.
2011-10-27 04:24:34 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
e417e011d5
Code cleanup: file operations merged into single header, some function names
...
made less cryptic and changed to indicate if they work on files or directories.
2011-10-22 15:35:49 +00:00
5da894b1fe
misc edits
...
- cmake/windows was installing locale & font when internationalization was disabled, twice when enabled.
- file selector was using the string size-1, where this isn't needed since string buttons expected this value to be the sizeof(), accounting for '\0'.
- use const char for extension checking funcs.
- minor pep8 edits
2011-10-15 05:01:47 +00:00
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
2827ee26e5
fix for ntreeGPUMaterialNodes(), using uninitialized exec pointer.
...
also commented some set-but-unused variables.
2011-09-12 00:00:21 +00:00
23807d1fb4
Merging trunk up to r39447.
2011-08-16 14:11:58 +00:00
ae884d2e54
Code cleanup: add UNUSED_FUNCTION macro to avoid warning messages about unused
...
functions.
2011-08-15 16:18:04 +00:00
3e85ec432e
3D Audio GSoC:
...
Adds new speaker object type.
Notes:
* Needs some nice icons
* Quickily review by Joshua Leung (5 mins)
* Properties UI updated (with help of Thomans Dinges)
* Speakers have their own theme color
* No real audio functionality yet.
* Minor bug regarding lamps/lattices fixed in interface_templates.c
I personality tested:
* Creation, Deletion, Duplication
* Saving, Loading
* Library linking (incl. make local)
* Tracking
* Dope Sheet, Outliner
* Animation
* Drawing (incl. Theme)
2011-08-01 11:44:20 +00:00
fd24c99b5d
directory only filesel for operators which don't have a filepath or filename property.
2011-06-16 15:01:22 +00:00
b727202921
compile without splash and icons when WITH_HEADLESS is set.
2011-06-05 07:55:18 +00:00
c04f9b779c
fix [ #27158 ] Appending crash with preview.
...
* fixed incorrect reading of PreviewImage struct from .blend
* fixed memory leak, PreviewImage data wasn't correctly free'd
2011-05-18 19:42:30 +00:00
c92c3758a8
- check paths are not empty strings before making blend file paths absolute or relative.
...
- when saving blend file with 'Remap Relative' enabled, don't try make paths absolute if the internal filename is invalid.
- use case insensitive path comparison on windows when checking if path remapping is needed & for comparing next/prev dirs in the file selector.
2011-05-18 06:48:52 +00:00
079caae727
code cleanup: icon creation
...
* changed stupid miplevel/MIPMAP naming in icon code, it was really the icon size (small icon or larger preview) that was meant there.
2011-05-16 18:37:54 +00:00
1093f69e50
Style Cleanup
...
- duplicate cases in if/else
- calc inside sizeof(...)
- redundant NULL checks.
- assignment to self.
- fix error getting text prefix for screen ID button.
2011-05-01 10:14:09 +00:00
16ba377026
fix for a crash with the following steps.
...
- open file sel
- save user defaults
- new file
- ctrl+u (crash)
wasn't type checking the space file, passed info space to ED_fileselect_exit().
2011-04-25 09:28:52 +00:00
fd45310dfe
fix crash [ #27158 ] Appending crash with preview.
2011-04-24 14:45:49 +00:00
a7507e945d
fix [ #26803 ] Libs paths are case sensitive in windows
...
use case insensitive path comparison on windows: BLI_path_cmp
2011-04-06 06:03:48 +00:00
26dd18e7ce
fix [ #26591 ] File browser: select multiple files for Library append/link broken
...
* added check for valid files a bit too eagerly in Rev.35654. Solved now by
setting correct type for .blend file contents. Objects are now tagged as
regular files, while the list (Mesh, Material, ...) (no idcode given) is
tagged as directory.
2011-03-23 18:51:31 +00:00
6031744c35
fix for use of un-initialized pointers in file_sfile_to_operator(...) & remove unused vars.
2011-03-21 03:22:33 +00:00
8908d55907
== file browser == Code cleanup
...
* Remove direct access to file->selflag in file_ops.c
2011-03-20 15:15:05 +00:00
e73a2020dd
== filebrowser == Code cleanup
...
* Separate out selection flags from file type flags, was bothering me since forever ;)
* Also renamed ACTIVEFILE to SELECTED_FILE to better reflect actual usage in code.
* Fix crash introduced with last commit, better check for valid selection
2011-03-20 11:16:59 +00:00
5325f3b2e9
== file browser ==
...
Patch from Alexander Kuznetsov: Toggle selection rather than just extending.
Implements behaviour that unintendedly was available with previously using macro operator for selection. This was removed and now the functionality is properly implemented.
Patch accepted with minor changes:
1. Used enum rather than #defines and added value for removing from selection (deselect)
2. Moved if (select) outside file_select_do and improved check for whether last file in selection is actually selected. (Necessary since toggle can deselect and toggle select should still make file active)
3. Additionally fixed check in file_select_invoke to be consistent with border select.
2011-03-20 10:22:51 +00:00
41c27cd6ef
== filebrowser ==
...
Cleanup of selection code.
Also fixed bug where selection outside the tiles was clamped and file in last column was selected.
2011-03-14 19:56:13 +00:00
a5e59ede6e
pass report list along to BLO_blendhandle_from_file(), avoid unlikely crash in the append operator.
2011-03-12 15:15:40 +00:00
a416949382
- BKE_idcode_iter_step() - function to step over all ID codes.
...
- BLO_blendhandle_get_datablock_names() now takes an arg for the total items in the list, saves the caller counting.
2011-03-12 14:38:00 +00:00
c7fccc84bf
use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.
2011-03-05 10:29:10 +00:00
Nathan Letwory
95100afc12
doxygen: blender/editors tagged.
2011-02-27 20:29:51 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
27e812d697
Clear some compiler warnings by commenting some functions, adding others to headers.
...
left in warnings where functions obviously need to get ported to 2.5x still.
Also, render stamp seq strip works again.
2011-02-17 22:34:41 +00:00
8b7482892b
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.
2011-02-14 17:55:27 +00:00