Campbell Barton
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
Campbell Barton
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
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
69e6894b15
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:18:31 +00:00
Campbell Barton
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
Campbell Barton
b457c7fdbd
style cleanup
2012-03-12 23:56:11 +00:00
Campbell Barton
cae11a98f9
style cleanup
2012-03-11 23:47:41 +00:00
Campbell Barton
79d97ca509
style cleanup - spelling.
2012-03-08 04:12:11 +00:00
Campbell Barton
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
Campbell Barton
23db21e2c1
fix own error [ #29634 ] 'Find Missing Files' breaks good links
2012-01-31 18:00:41 +00:00
Campbell Barton
b49463c439
cleanup of weight paint color setting code, no functional changes
2011-12-18 12:54:50 +00:00
Sergey Sharybin
3eaf5e93fd
Fix for movie clips weren't remapped properly on file save
2011-12-04 17:16:22 +00:00
Campbell Barton
49ccf975f2
minor cleanup
...
- use NULL rather then 0 for pointers
- use static functions where possible
- add own includes to ensure func's and their declarations don't get out of sync.
2011-11-14 16:05:44 +00:00
Campbell Barton
2e32ce0ed2
add the ocean modifier to bpath visitor
2011-11-13 14:50:19 +00:00
Campbell Barton
1d225c6696
use macro for access to library filepath
2011-11-07 15:55:03 +00:00
Campbell Barton
e3f03d72b6
added path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,
...
so path manipulation functions dont run multiple times on the same path in the case of sequence strips where the one directory is used as the base for many images.
2011-11-01 06:26:55 +00:00
Campbell Barton
1e4be0a4bf
replace BLI_strtok_r from r41337 with lighter method that doesnt alloc for template_list
2011-10-29 08:18:42 +00:00
Campbell Barton
f7d5cea669
use path remapping for all make local functions, patch from Alex Fraser with changes.
2011-10-27 05:34:39 +00:00
Campbell Barton
31d401613d
bpath
...
- loop over all sequence images and pointcache
- option not to loop over library / packed data, expose in bpy.utils.blend_paths()
2011-10-27 03:40:12 +00:00
Campbell Barton
cd852ce1a1
- remove bpath iterator and replace all uses with visitor.
...
- added flag to optionally receive all paths as absolute.
2011-10-27 01:25:07 +00:00
Campbell Barton
5afc38b74c
Support more kinds of paths for path re-writing / traversing, patch from Alex Fraser with additions.
...
this now supports as many types as bpath iterator which its intended to replace.
2011-10-26 22:46:06 +00:00
Campbell Barton
a267f9ba4e
edits ontop of Alex's patch from r41292.
...
pass main rather than use G.main when naming from -> to relative paths.
2011-10-26 21:22:35 +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
ef218c75ed
- add convenience functions BLI_split_dir_part / BLI_split_file_part, which just call BLI_split_dirfile().
...
- add a fixed value for bprogdir (the dir of bprogname), since it was being used for resource lookups.
2011-10-21 02:13:36 +00:00
Campbell Barton
317b649bb2
fix for buffer overrun with BLI_split_dirfile(...), was simple to do since many places don't check for filename lengyj of 79 chars which is the limit for the file selector.
...
Add max dir and file length args.
2011-10-15 03:56:05 +00:00
Campbell Barton
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
Sergey Sharybin
2eb1339e3f
Corrected fix for #28722 : Segfault when reading volumetric clouds example
...
Looks like with current implementation voxeldata should always be created
for voxel textures. Remove recently added NULL check and allocate
voxel data when linking a texture.
2011-09-22 17:52:21 +00:00
Sergey Sharybin
9ea32d34c4
Fix #28722 : Segfault when reading volumetric clouds example
...
Added checking for voxel data isn't NULL.
2011-09-22 16:28:38 +00:00
Campbell Barton
79e7a89c38
formatting changes only.
2011-05-19 13:50:53 +00:00
Campbell Barton
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
Campbell Barton
edb9045824
fix [ #27405 ] Append objects with linked materials they dissapears after save
...
when linking in files to an unsaved blend file, make all library paths absolute.
2011-05-18 05:21:44 +00:00
Nathan Letwory
7900b5949f
doxygen: blender/blenlib tagged.
2011-02-27 20:37:56 +00:00
Campbell Barton
2e5eb41522
pedantic warning cleanup, also remove texspace_edit() since its been added using a different method.
2011-02-27 08:31:10 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
Campbell Barton
1b25f48542
clear some unused warnings
2011-02-17 12:05:09 +00:00
Campbell Barton
0955c664aa
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
...
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.
2011-02-13 10:52:18 +00:00
Campbell Barton
867fc4b463
enforce string limits (reported by pedantic checking tools & some developers).
...
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf().
also fix possible crash if CWD isnt available.
2011-02-13 03:21:27 +00:00
Campbell Barton
86baf7c937
option for the path iterator to loop over packed files so their dir separator can be switched on file load.
2011-01-18 00:10:11 +00:00
Campbell Barton
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
Campbell Barton
60063d5383
- converted path cleaning on file load to use bPath Iterator functions - image & font and sequence paths were being cleaned but not multires, voxel & sound paths.
...
- skip fixing file paths on undo.
- simplify bpath alloc and free functions, also pass Main structure so as not to rely on G.main, (needed for file load).
2010-12-06 00:52:30 +00:00
Campbell Barton
9668c29ba0
bpath iterator updates
...
- loop over sequencer plugin and texture voxel paths.
- fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings.
- operators to make paths absolute & relative now redraw the view.
2010-12-05 23:14:48 +00:00
Campbell Barton
263830f000
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
...
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
Campbell Barton
030253cdf6
fix for building, also use const char in more places.
2010-11-11 07:51:12 +00:00
Campbell Barton
619a8b6952
bugfix [ #24357 ] Font folder can be specified but is not opened
...
- open operator was incorrectly checking if the font path was set.
- rna ID editable check was also incorrect, checking the ID name rather then the filename.
- use define FO_BUILTIN_NAME rather then "<builtin>".
2010-10-24 07:02:19 +00:00
Campbell Barton
4d37cf90b9
remove G.sce, use G.main->name instead.
...
Both stored the filename of the blend file, but G.sce stored the last opened file.
This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore).
Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend.
2010-10-18 06:41:16 +00:00
Campbell Barton
9234f29e67
bugfix [ #23405 ] PNG Images bigger then 2gig wont load with blender.
...
all image formats should be able to load files bigger then 2gig (when its supported)
2010-09-15 06:43:36 +00:00
Campbell Barton
708ef64663
include cleanup, no functional changes
...
- removed DNA_brush_types.h from DNA_scene_types.h (and some other similar cases)
- removed DNA_wave_types.h (never used)
- removed Main.wave
2010-08-04 04:01:27 +00:00
Campbell Barton
6cc4160df9
adding a new sequence strip uses the active strips path when available.
2010-07-01 14:08:41 +00:00
Campbell Barton
4da179749e
- [ #22492 ] [29159] commit breaks importing of script file that has a reload to self in it
...
broke when including the blend path in the modules filename.
- new function BLI_path_basename(), matches pythons os.path.basename().
replace a number of cases where BLI_split_dirfile was being used to get the filename only.
2010-06-05 21:19:59 +00:00
Campbell Barton
9cbbc9d3af
rename some rna properties filename --> filepath
...
* filename == "foo.ext"
* filepath == "/path/to/and/including/foo.ext"
this was alredy followed in some places not not everywhere.
2010-06-02 17:58:28 +00:00