Thomas Dinges
818710f082
* Windows compile fix for __func__ (r51642)
2012-10-26 18:06:14 +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
Jiri Hnidek
2821f822c5
* New string property subtype: PASSWORD
...
When this new subtypes is used, then string of property is hidden using
asterisks, e.g.: mysecretpassword -> ****************
This code was reviewed and modified by Brecht. Thanks very much:
- https://codereview.appspot.com/6713044/
This new subtype of string property is intended mostly for Add-on developers
writing Add-on which communicates with some server (http, sql, ftp, verse,
etc.). When this server requires user authentication and user has to type
username and password, then current API didn't allow to type 'hidden' password,
e.g. when you want to demonstrate this script, then everybody can see this
security password. Some examples of Add-on which could use this new subtype:
- On-line database of textures
- Integration of render farm
- Integration of Verse
Security Notes:
- You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V),
but you can do this in other GUI toolkits too (this behavior it is widely used).
- Text of string property is stored in plain text, but it is widely used in other
GUI toolkits (Qt, Gtk, etc.).
Simple examples:
- https://dl.dropbox.com/u/369894/draw_op_passwd.py
- https://dl.dropbox.com/u/369894/blender-password.png
2012-10-26 12:58:54 +00:00
Campbell Barton
0e3de1df4b
fix [ #31661 ] Custom properties do no respect min/max values
...
also renamed function added prev commit
2012-10-26 10:54:02 +00:00
Campbell Barton
0e6f8e3e25
fix for crash when a python operator or render engine was freed in the C code and then referenced from python.
...
now further access in python gives an exception at the line when the freed data is accessed.
2012-10-26 10:33:57 +00:00
Campbell Barton
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
Brecht Van Lommel
2223ca1c20
Fix #32973 : crash adding python property with update=None parameter passed.
2012-10-25 22:37:05 +00:00
Campbell Barton
d599b643b7
style cleanup: bge, switch statements mostly.
...
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
Campbell Barton
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
Campbell Barton
c56a911cd9
style cleanup: comments
2012-10-20 20:20:02 +00:00
Campbell Barton
536d9fec80
code cleanup:
...
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice)
- move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators).
- some some cmake includes as system-includes.
2012-10-17 04:13:03 +00:00
Campbell Barton
da9394f596
code cleanup: define sizes of vectors for function args and use C style comments
2012-10-15 09:11:17 +00:00
Bastien Montagne
b7f4c69ef7
More UI messages and BKE_reportf->BKE_report fixes...
2012-10-14 15:29:09 +00:00
Campbell Barton
97d4fb4161
code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too.
2012-10-09 13:36:42 +00:00
Campbell Barton
75fff05348
revert fix for [ #31555 ] Username with special chars in Windows 7
...
this breaks and causes bug: [#32720 ], where sys.stdout becomes invalid and print() does nothing.
On investigation - python is not getting the environment variable from blender (aparently because its a DLL?) so this should be resolved rather then overwriting sys.stdout.
2012-10-02 13:24:28 +00:00
Campbell Barton
b04b8fd0e8
fix for crash found when attempting to setup testing environment to find crashes :)
...
scripts that have `Register` enabled and load another blend file would crash blender.
2012-10-01 14:14:21 +00:00
Campbell Barton
ed1cda9a6c
style cleanup
2012-09-30 06:12:47 +00:00
Campbell Barton
9fccfd313c
correct addon example, it used both __doc__ and bl_description
2012-09-29 11:51:18 +00:00
Campbell Barton
79d8367974
add warning that RNA update callbacks dont have checks for infinite recursion.
2012-09-28 09:35:32 +00:00
Campbell Barton
589ada7f0c
code cleanup: correct spelling
2012-09-28 06:45:20 +00:00
Campbell Barton
95002a98bf
fix for very bad bug with python list slicing which - in bmesh and bpy api for all? 2.5x + releases.
...
negative stop values when slicing was broken. eg.
bpy.data.objects[0:-2] != list(bpy.data.objects)[0:-2]
2012-09-25 23:41:32 +00:00
Campbell Barton
552cd4b7e7
fix for crash executing a python script.
...
nice obscure case, when a script executes, frees its self (by loading a file for eg), then has a python error.
... in this case blender would fetch the python exception and attempt to move the cursor in the freed textblock to the error line, crashing blender.
2012-09-23 06:25:39 +00:00
Campbell Barton
537c3375b5
fix for crash getting a member from the operator context override, in some cases python didnt hold the GIL.
2012-09-21 22:31:02 +00:00
Campbell Barton
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
Campbell Barton
e75f5c8208
quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.
...
helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-09-15 01:52:28 +00:00
Campbell Barton
cf5da37e3c
fix for a bug running a script, then opening a new file.
...
BPY_text_free_code() could run outside the python interpreter which abort()'s blender.
2012-09-10 23:32:46 +00:00
Campbell Barton
e2eea6c38d
fix/workaround [ #31555 ] Username with special chars in Windows 7
...
Theres a bug where python/windows ignores PYTHONIOENCODING, workaround this by manually overriding the stdout/stderr.
2012-09-05 09:33:15 +00:00
Campbell Barton
71d1b09708
minor code cleanup
2012-08-25 12:55:14 +00:00
Campbell Barton
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
Campbell Barton
4a6395cc21
fix for own error in bpy.utils.blend_paths() arg parsing.
2012-08-20 10:14:11 +00:00
Campbell Barton
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
Campbell Barton
e9d73dbba5
use -FLT_MAX where FLT_MIN was misused
2012-08-07 19:49:38 +00:00
Campbell Barton
719aedaf60
mask - draw both sides of the curve when filled option is disabled.
2012-08-07 13:37:16 +00:00
Campbell Barton
b218d90176
fix a crash when python is registering enum properties and the items argument is a generator (some sequence type besides a list/typle), in this case it could free the strings before blender duplicates them.
...
this fixes [#32192 ] Import Images as Planes script is broken
2012-08-07 10:03:14 +00:00
Campbell Barton
0a35e050f3
code cleanup: remove redundant calls to CTX_data_main()
2012-08-05 14:11:51 +00:00
Lukas Toenne
dee1d86e65
Fix for RNA struct registration: the bpy_class_validate function would only check the immediate functions/properties of the pointer struct type, but not potential base structs. Now it first validates the base struct recursively before the actual properties of the registered class.
...
Does not have any effect for current registerable types (Operator, Menu, Panel, etc.), since none of those actually have a base struct, but will be required for future types with an actual hierarchy (custom nodes).
2012-07-24 12:00:02 +00:00
Campbell Barton
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
Campbell Barton
b91bc4f037
use gcc attrubutes to warn on unused return values and arguments which shouldnt be NULL.
...
also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-07-08 06:00:27 +00:00
Campbell Barton
cfb7aee017
style cleanup
2012-07-07 22:51:57 +00:00
Campbell Barton
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
Campbell Barton
314a275850
fix (actually nasty workaround), for groups incorrectly drawing in the object panel when the blend file has naming collisions with library data.
...
also minor style cleanup in bpy_rna.c
2012-07-03 10:32:10 +00:00
Campbell Barton
a09feb7386
option so operators can be executed with undo enabled (and redo).
2012-06-27 21:41:17 +00:00
Campbell Barton
15cb064e1b
style cleanup
2012-06-25 07:24:48 +00:00
Campbell Barton
f6e21881f5
change RNA_struct_find_function to accept a type rather then a PointerRNA, add a check duplicate functions are not defined.
2012-06-10 13:34:59 +00:00
Campbell Barton
2f60d9b0b9
fix for un-handled exception when entering in multiple values to a button, floats were not correctly checked for.
2012-06-09 16:45:42 +00:00
Campbell Barton
ed7dbbdfe9
fix for buffer overrun on windows by kjym3 on IRC.
2012-06-07 09:05:51 +00:00
Campbell Barton
1931aac1f7
style cleanup: (indentation)
2012-06-06 14:48:39 +00:00
Campbell Barton
5189356d58
style cleanup
2012-06-04 20:11:09 +00:00
Campbell Barton
46f1671c07
missing from previous commit
2012-05-27 21:56:19 +00:00
Campbell Barton
032d83ecc4
style cleanup: defines with braces
2012-05-27 20:13:59 +00:00