6266e62170
python mathutils.Matrix.is_orthogonal readonly attribute.
2011-05-18 15:31:00 +00:00
89a166d0de
remove some duplicate declarations
2011-05-10 14:48:06 +00:00
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
210ee1ade4
whitespace only, no functional change mixed tabs/spaces --> tabs.
2011-04-21 13:11:51 +00:00
6bb626f253
minor changes
...
- remove some warnings
- fix typos
- cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined)
- cmake, use an explicit list of rna files (don't glob)
2011-04-21 05:49:47 +00:00
5b920bc2ff
Some strings to store ID names were too small, could cause stack corruption.
...
corrected these and replaced 'sizeof(((ID *)NULL)->name)-2' with 'MAX_ID_NAME-2'.
2011-04-19 06:59:49 +00:00
9dda11e0f1
correction for windows.
2011-04-18 10:18:35 +00:00
0814cdf54e
fix [ #26951 ] blenderplayer and runtimes will not load
...
blenderplayer wasn't finding bundled python, eg: ./2.57/python/lib
2011-04-18 08:27:50 +00:00
b1cc8ea18a
incorrect documentation spotted by macouno.
2011-04-14 12:19:31 +00:00
ca254dd37b
add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew library.
2011-04-05 23:31:01 +00:00
4ea7e562f8
rename mathutils.Vector/Quaternion difference() method to rotation_difference() since its too vague when applied to vectors.
2011-04-04 05:17:23 +00:00
f1b42a129f
add angle wrapping functions: angle_wrap_rad(), angle_wrap_deg().
...
use with mathutils.
2011-04-02 03:05:49 +00:00
f4ba9495c5
fix [ #26667 ] Can't import scripts when using blenderplayer
...
- move import override initialization to bpy_internal_import.c so the player and blender can both call.
- remove ineffectual & unused sandboxing code.
2011-03-29 16:12:25 +00:00
9b9c4184c8
misc nodes & editors: floats were being implicitly promoted to doubles, adjust to use floats.
...
+ minor update to demo_mode
2011-03-28 17:08:33 +00:00
9c8f1e2ef4
imbuf, mathutils & readfile: floats were being implicitly promoted to doubles, adjust to use floats.
2011-03-27 17:12:59 +00:00
a21f46b6d4
new function RNA_warning(), replaces printf with function which may be called via python.
...
Now this gives the line number of the scripts thats running, eg:
uiItemFullO: unknown operator 'some.operator'
/c/bin/2.56/scripts/startup/bl_ui/space_view3d_toolbar.py:73
2011-03-25 04:36:10 +00:00
cadc1218c8
C, style changes (mostly white space edits), no functional change.
2011-03-19 11:12:48 +00:00
197e903efc
fix for [ #26524 ] Api autocomplete more errors
...
problem was caused by change in python behavior, now hasattr(val, attr) only suppresses attribute exceptions.
2011-03-17 04:43:58 +00:00
e8174fb3cd
move mathutils api changelog into wiki.
2011-03-14 05:03:53 +00:00
471c0c1afb
py-api utf8/filepaths:
...
in function PyC_UnicodeAsByte(), replace code copied from python with PyUnicode_EncodeFSDefault(), new in py3.2.
2011-03-08 01:28:10 +00:00
cfd9d6d190
Drop support for python 3.1.
...
for building py3.2 on *nix see:
http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python
also fixed possible buffer overrun with getting the fake filepath for a blender textblock.
2011-03-07 11:53:40 +00:00
57436f3013
fix for own error made r35267.
2011-03-03 08:01:11 +00:00
b535c738d9
further reading, need to untrack tracked PyObjects before clearing their trackable vars.
2011-03-03 06:14:55 +00:00
c42f3b4e59
support for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be called once the fields are filled in.
2011-03-03 06:01:31 +00:00
7348a50d79
change return values from mathutils callbacks to match pythons (-1 is error), so error macro's can be used in both.
2011-02-28 18:42:41 +00:00
Nathan Letwory
5a760e22fc
doxygen: blender/python tagged.
2011-02-27 20:10:08 +00:00
18c7354bd2
remove warning left in by mistake and comment unused function.
2011-02-25 02:27:54 +00:00
fbd9364944
revert part of own commit r35117 which modified mathutils initialization functions, found this could be done in a better way which doesnt have to deal with partly initialize instances being freed.
2011-02-24 05:46:57 +00:00
b1639dc118
support pythons cyclic garbage collector for mathutils types.
2011-02-24 04:58: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
8186ba15ab
last commit used py3.2 function, inline for py3.1
2011-02-22 08:29:25 +00:00
1e120098fc
pyapi, use direct access to the frame rather then python attributes.
2011-02-22 07:57:18 +00:00
Nathan Letwory
322ff7dfe4
I swear, it was just an innocence change in guardedalloc!
...
The butterfly wing flap, causing a nice storm in the rest of blender.
Now all dependencies should point ok again. CMakers, do double-test.
2011-02-21 12:35:04 +00:00
Nathan Letwory
8c8ae3dedf
doxygen: entry for gpu, modifiers, nodes, python and render
2011-02-21 06:58:46 +00:00
6524d27462
py api was raising SystemError exception incorrectly, this is intended for internal interpreter problems.
...
Replace most with RuntimeError.
2011-02-18 06:04:05 +00:00
669cffdb1e
fix [ #26098 ] python API: quaternion.rotate never seems to work.
2011-02-16 02:05:36 +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
7b201c7693
SVN maintenance.
2011-02-14 04:47:55 +00:00
72bc3f22b7
python api renaming and added headers for some files which didnt have one, no functionality change.
2011-02-14 04:15:25 +00:00
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
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
55f68c3657
fix for more warnings.
...
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array.
- use BLI_snprintf rather then sprintf where the size of the string is known.
- particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-12 16:54:24 +00:00
81a00cf2eb
use static functions rather then defines for internal matrix__apply_to_copy() and similar.
...
+ other minor internal changes.
2011-02-09 09:20:17 +00:00
53afd19808
fix [ #25975 ] Quaternion/Vector.negated() isn't available
...
theres no need for value.negated(), better use -vec / -quat. however -quat didn't exist.
2011-02-08 03:37:49 +00:00
33265983da
fix own error in recent commit [ #25970 ] cannot create scale matrix after mathutils updates
2011-02-08 00:10:30 +00:00
d9aa3f66a6
mathutils.Matrix.Scale(factor, size, axis)
...
- 'axis' arg was not coerced from a tuple like other args now do.
- 'axis' arg was being modified in-place (VERY BAD).
- also made new function matrix_3x3_as_4x4().
2011-02-06 11:17:22 +00:00
1cdab667bc
- cmake was missing an inclide (IDE's wouldnt index)
...
- made doc generation always sumlink newly built docs to static URL. http://www.blender.org/documentation/250PythonDoc/
2011-02-06 10:18:20 +00:00
d694115ac4
mathutils fixes noticed when refactoring.
...
- comparing eulers was ignoring the order.
- printing Euler()'s now prints the order too.
- un-orderable types (all except for Vector's), were not raising an exception when compared with >=, >, <, <=.
2011-02-05 10:40:42 +00:00
998198a041
mathutils rotate functions for Euler/Quaternion/Matrix/Vector types.
...
each accept Euler/Quaternion/Matrix types.
eg:
Euler.rotate(Quaternion(axis, angle))
Vector.rotate(Euler((pi/2, 0, 0)))
matrix.resize_4x4() and euler.make_compatible() were still returning an instance of themselves, now return None.
2011-02-05 09:57:02 +00:00
dd08305e75
Rename python mathutils functions and split in-place methods from those that return new values.
...
http://wiki.blender.org/index.php/Dev:2.5/Source/Python/Mathutils
This completes the changes proposed.
This will break scripts (fixing coming up next), for full list of changes see mathutils.c comments.
2011-02-05 06:14:50 +00:00