Brecht Van Lommel
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
Brecht Van Lommel
88473fd49a
Code cleanup: remove BLI_exist, now there is only BLI_exists. One function just
...
called the other, they did the same thing.
2011-10-21 22:33:41 +00:00
Brecht Van Lommel
00735ed9e4
Code cleanup: don't use btempdir/bprogdir/bprogname globals anymore, but wrap
...
in BLI_ functions.
2011-10-21 17:37:38 +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
61389bba41
fix spelling mistakes in comments (and in some python error messages), nothing to effect translations.
2011-10-17 06:39:13 +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
be24b4dfcc
fix for possible buffer overflow bug in BLI_join_dirfile(), recent fix didn't account for the case when destination string and dir string matched.
2011-10-12 11:18:46 +00:00
Campbell Barton
85a2280c86
fix for crash in BLI_join_dirfile() when the dir is longer then the target string.
...
starting blender in a dir longer then 240 chars would crash.
2011-10-11 05:21:24 +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
Campbell Barton
4b449aefea
remove support for irix
2011-09-21 08:40:30 +00:00
Campbell Barton
74219d2704
patch [ #28031 ] Minor typo in Blenlib
...
from Scott Giese (sgiese)
2011-07-20 06:05:47 +00:00
Brecht Van Lommel
7e36a75b45
Paths: remove some temporary code that was only needed for 2.57.
2011-07-04 13:33:47 +00:00
Campbell Barton
68a3303013
operator buttons get a red highlight when alert is set for the layout
2011-06-05 17:02:57 +00:00
Campbell Barton
68d4c64db8
own commit r37199 gave problems with duplicating objects, use different fix.
2011-06-05 15:29:50 +00:00
Campbell Barton
3a6adc0ed3
fix [ #27554 ] vertex group names
...
- duplicate vertex group names were not being checked for.
- also made the first duplicate end with .001 rather than .000
2011-06-05 04:52:32 +00:00
M.G. Kishalmi
9b5800bcd7
fixed "rather then" -> "rather than" typos all over the place
2011-05-28 13:11:24 +00:00
Brecht Van Lommel
d369a6aaaf
Windows installer and Path changes, fixing various issues:
...
* Windows installer not working for non-admin users and multiple users
* Addon scripts not installing next to user configuration
* Portable install not being taken into account in all places
The main problem was the windows installer was installing system scripts in
AppData next to the user configuration directory, which is not shared between
users. Now these are installed in ProgramFiles, and only addon scripts added
by the users go to AppData.
On all platforms, addon scripts were sometimes getting installed between
system scripts, because the scripts folder in the executable directory was
given precedence over the user configuration folder, that is no longer done
now. So addons now behave like user configuration, they are preserved even
if you download a newer build of the same blender version.
If you have an installation of 2.57 on windows, the addon install location
will not change until we do the version bump to 2.58, to avoid conflicts with
the existing the installed 2.57 version.
The old behavior of giving precedence to the local folder was done to support
portable install, where all configuration is written to the local folder. This
is now implemented differently: if and only if a "config" folder exists in the
local folder, portable install will be assumed, and files will only be written
to that local folder.
2011-05-27 09:57:53 +00:00
Nathan Letwory
df823d8896
Since we don't support win2k or older anymore, remove old shortname code. Finally nice full names.
2011-05-26 12:23:11 +00:00
Campbell Barton
8751d1d927
[ #26715 ] Blender2.57 crash when opening in Windows, non-latin char in path
...
this isn't a fix but GetModuleFileName is returning a name that doesn't exist, so finding python after this isn't working.
Show a popup that the path has an invalid name so at least the user can move it.
2011-05-06 01:03:36 +00:00
Campbell Barton
0a2a138d86
remove player runtime writing functions, this is now an addon.
2011-05-03 08:45:40 +00:00
Campbell Barton
02fbaede8f
workaround [ #27203 ] Crashes with some high-res image thumbnail generation
...
skip generating thumbs for images over 100mb.
also pass string lengths as size_t rather then int for path_util.c functions.
2011-05-02 10:22:49 +00:00
Campbell Barton
d6d2f09dd9
quiet some clang warnings & fix for bugs in exceptional cases.
...
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.
2011-04-23 12:57:03 +00:00
Campbell Barton
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
Campbell Barton
f8c09b37d4
api changes needed for for copying old settings to new.
...
- py: bpy.utils.resource_path('USER', 2, 56)
- C: BLI_get_folder_version(id, major, minor, check);
2011-04-11 13:56:58 +00:00
Campbell Barton
1c6956a4d6
quiet msvc/mingw compiler warnings.
2011-04-10 09:37:04 +00:00
Campbell Barton
ed7f0c603f
fix [ #26803 ] Libs paths are case sensitive in windows
...
another case was exposed by this report, making relative paths wasn't case insensitive on windows.
2011-04-08 06:47:41 +00:00
Campbell Barton
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
Campbell Barton
75cd392a57
fix for own error r35877, was ignoring #'s in file path by using the digits value passed rather then the number of digits in the string.
2011-03-31 10:31:14 +00:00
Campbell Barton
3d9c666f58
fix [ #26656 ] video sequence editor rendering stops at frame 9999
2011-03-29 14:07:07 +00:00
Campbell Barton
1008137f72
simplify BLI_path_abs by using BLI_cleanup_path
2011-03-11 01:06:16 +00:00
Campbell Barton
d6ca95b1a3
fix [ #26451 ] Little problem when selecting relative output path
...
BLI_path_rel() no longer strips trailing slashes.
2011-03-11 00:30:51 +00:00
Nathan Letwory
65da16a5c1
Apply [ #26311 ] Collada Exporter Crash on Win64 build
...
Submitted by Filiciss Muhgue
Selecting COLLADA export after starting blender into default scene Blender would crash, due to misreading the path string (no file saved yet, so it was zero).
2011-03-08 08:33:52 +00:00
Campbell Barton
3326c0ca75
fix for invalid empty string check in uniquename callback.
2011-03-03 17:23:59 +00:00
Nathan Letwory
900199d215
Fix [ #26207 ] Render.exe mangles paths in mysterious and awesome ways
...
Reported by Edwin Amsler
The function for extrapolating the template name with the frame number didn't properly NULL-terminate the
resulting string, this causing broken names and weird paths (if you were lucky - totally unusuable names
detected while stepping through the code).
2011-03-01 12:52:00 +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
Campbell Barton
a12315e4ec
use const char for return values of getenv().
2011-02-26 15:28:56 +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
9ef0eed4b6
build python module without binreloc, add dummy argv[0] to initialize bprogname.
2011-02-21 13:13:08 +00:00
Campbell Barton
d17df68c24
- clear some warnings
...
- rename layout.operator_enums -> operator_enum (since we have operator_menu_enum, only called in 4 places)
2011-02-18 06:07:41 +00:00
Joshua Leung
51d78b43de
Fixing compiling on windows
2011-02-13 06:19:15 +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
6e47ffcc0d
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.
2011-02-12 10:37:37 +00:00
Campbell Barton
92672d0c1c
quiet some clang warnings.
2011-02-12 05:12:26 +00:00
Ton Roosendaal
c7834e0e6e
And here's a decent fix for correctly recognizing the the
...
.blend1 etc backups.
Proves again that lazy coders only make bad code :)
Implementation note:
The filewindow now recoginizes .blend version backups as
a special type, so filtering for .blend files themselves
ignores it. However, they're recognized correctly as valid
.blend files, and draw an icon as .blend file when filtering
is off. Can become a distinct icon if we want...
2011-01-30 13:12:03 +00:00
Ton Roosendaal
9d0b8486c8
Stupid error in commit to allow .blend1 and .blend2 being dropped in
...
window caused .blend itself to be not seen :) Mea Maxima Culpa!
2011-01-30 12:26:16 +00:00
Ton Roosendaal
ff58fc3e86
Todo list fix: .blend backup files are recognized as such now;
...
for drop inside Blender window and icons. (.blend1, .blend2, etc).
2011-01-29 17:47:22 +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
2f366d1544
use BLI_strnlen rather then strlen when comparing against fixed lengths.
2010-12-05 23:50:55 +00:00
Campbell Barton
fa4bbbb249
Maintenance,
...
- remove some redundant declarations
- changed VertexTangent and Path structs to avoid compiler alignment padding.
2010-12-04 13:00:28 +00:00