Commit Graph

21470 Commits

Author SHA1 Message Date
cf84992cb4 patch [#23280] Generated suffixes of strip names contain random character (revision 31262)
from Torsten Rupp (rupp)
2010-08-12 09:35:39 +00:00
6be46efe6c fix for the rna curve interpolation enum, 'ease' was using the same value as Bezier. 2010-08-12 06:28:46 +00:00
6827ac7e0d bugfix [#23263] Changing view crashes blender 2010-08-12 03:37:45 +00:00
ac133d5d26 bugfix [#23270] Long directory name segmentation fault in File brower
file->relname was being edited when its length allocated at the size of the original name, realloc'ing failed because the old string was still used by a button.
2010-08-12 00:14:32 +00:00
aae5c9b58d - possibly bugfix /w uninitialized vars [#23270] Long directory name segmentation fault in File brower.
- in exceptional cases vertcos_to_key() could return with KeyBlock pointing to freed memory.
- invalid use of realloc() in BLI_builddir()
2010-08-11 22:36:43 +00:00
Dalai Felinto
350e6d22fd Logic UI: name mismatch on motion blur property (report and patch by Jacob F.)
I forgot to update the UI code (or to commit) when I changed the rna name to match docs. (0 to 1 values should be called factor)
2010-08-11 21:51:31 +00:00
4694914a8f bad level call fixes so the blenderplayer compiles again 2010-08-11 20:33:02 +00:00
6cae52bca2 add support for documenting class methods 2010-08-11 17:13:39 +00:00
556b615cf8 mathutils module methods only contained matrix constructors, move these to matrix class methods since this is acceptable in python. eg: dict.fromkeys() and groups them more logically.
mathutils.RotationMatrix -> mathutils.Matrix.Rotation
 mathutils.ScaleMatrix -> mathutils.Matrix.Scale
 mathutils.ShearMatrix -> mathutils.Matrix.Shear
 mathutils.TranslationMatrix -> mathutils.Matrix.Translation
 mathutils.OrthoProjectionMatrix -> mathutils.Matrix.OrthoProjection
2010-08-11 16:40:36 +00:00
ab8ccaa709 python declarative UI
- remove XML testing feature
- add 2 modules: bpyml - generic, bpyml_ui - blender spesific. nothing uses these now.

==bpyml_ui module==
defines BPyML_BaseUI and its draw() function which uses the bpyml member of the class instance self.draw_data & self.draw_header_data.

This way declarative ui is opt-in and easy to use by using BPyML_BaseUI as a mix-in class.

==bpyml module==

This module translates a python like XML representation into XML
or simple python blender/ui function calls.

    sometag(arg=10) [
        another(),
        another(key="value")
    ]

# converts into ...

    <sometag arg="10">
        <another/>
        <another key="value" />
    </sometag>
2010-08-11 15:11:30 +00:00
d739a1788d small edits to text editor from writing a python editor extension.
- rename TextLine.line -> body, ConsoleLine.line -> body
- minor speedups when setting the body text, also re-allocate console lines if they are < half the length.
- added option to highlight current line in the text editor.
2010-08-11 05:21:43 +00:00
8c39326962 bugfix [#23247] Load Image in Textures does not use a usefull path 2010-08-11 03:31:56 +00:00
c4f1c0fda1 Fix silly bug with color ramp ui where there was an extra pixel
of background on the right side
2010-08-11 02:31:54 +00:00
4ed342567e correction for mis-named DupliObject.object_matrix -> matrix_original 2010-08-11 02:13:34 +00:00
95aa8cfa4a Update address in license block. 2010-08-10 21:22:26 +00:00
e87552d3e8 SVN maintenance. 2010-08-10 20:33:15 +00:00
76b17eaac5 repr() functions for the python api, this means it can print 'bpy.data.objects[foo].modifiers' from the objects modifiers, uses the same function thats used to make the animation path. 2010-08-10 15:46:16 +00:00
ad4fc20ec9 moved idcode functions into their own file (was added as a todo in the comments), these were mixed in with file reading code - BLO_readfile.h bot these functions are not spesific to reading. 2010-08-10 15:14:19 +00:00
f483834f13 Smoke:
- Fixing UI glitch so that range and UI range now matches
- Increased max to 400 secs (at 25 FPS) to allow more artistic freedom
2010-08-10 13:06:45 +00:00
c0e39df6ac - Enable shape key switching in edit mode for curves, surfaces and latticies
- Disable changing of lattice size if there are shape keys
2010-08-10 06:36:42 +00:00
41531e4fb6 include rna parent class names in renaming list 2010-08-10 06:27:29 +00:00
15669532a2 header re-shuffle, some headers contained unneeded refereces to other headers, better include inline with the C files that need them 2010-08-10 05:41:51 +00:00
b525dfb298 Added additional (optional) subframe argument to RNA API function: scene.set_frame()
This is used to set the current frame to a floating point subframe state between 0.0 and 1.0
added to the integer frame. A main usage for this is retrieving geometry at sub-frame
intervals for use in multi-segment motion blur:

http://mke3.net/projects/3Delight_blender/renders/multisegment_blur.mov

Example:
scene.set_frame(5)
or
scene.set_frame(5, 0.25)
2010-08-10 03:28:06 +00:00
Dalai Felinto
73f1d88be2 Bugfix for:[23234] Blender File Browser - Back Button does work with first directory entered?
For !WIN32 systems the fix was in ED_fileselect_set_params
(basically adding the first folder in the sfile->folders_prev list)

For WIN32:
I talked with Nathan (Jesterking) and he agreed that the fix in path_util.c was required too. Without that BLI_path_abs was always making WIN32 paths ending with \ to end with \\
(e.g. C:\Blender\ --> C:\Blender\\)
And this was making the folder to fail ISDIR tests.
2010-08-09 22:54:40 +00:00
825f0593e0 SVN maintenance. 2010-08-09 20:14:33 +00:00
f9acf1b455 Fix bug #22828, "Exporting as COLLADA crashes Blender". 2010-08-09 18:15:50 +00:00
a8ce419257 rna refactoring update, order by class, attribute. 2010-08-09 10:22:09 +00:00
66cbb0d973 restrict prefix checking to booleans for now 2010-08-09 07:05:37 +00:00
8d517cff33 rna refactor...
- added a script to merge 2 lists of rna renaming from/to
- merged rna_booleans.txt into rna_properties.txt
- made rna_cleaner.py sort by class.from by default.
2010-08-09 06:55:20 +00:00
9581cf1bdd python draw callback
- optional argument for the drawing mode crashed when not set
- added a check for the call fuinction being callable
- added a check for the argument being a typle.
2010-08-09 02:29:06 +00:00
a6f13f9d7b poll() as a python '@staticmethod' was too limiting and didnt allow useful base class poll functions in many cases.
now rna functions that dont have a 'self' are automatically assumed '@classmethods'.

de-duplicated poll functions and made some minor tweaks too.
2010-08-09 01:37:09 +00:00
7fcbbad5a4 remove py2.x compat check for class registration. 2010-08-08 23:46:49 +00:00
a773d8836f Bugfix: [#23149] Showing cache instead of rendering with the VSE 2010-08-08 16:47:58 +00:00
9fe2b252c4 == docs ==
Changing " **type** " into "\n\n:type: " in Mathutils, to have like "type: float" in its own line.
2010-08-08 16:22:29 +00:00
f46a649965 This fixes:
[#20884] SEQUENCER EFFECT: Animating Speed Control Opacity has no effect
[#21308] SEQUENCER EFFECT: Glow ignores Opacity setting
2010-08-08 14:21:20 +00:00
0c54337755 == Sequencer ==
This fixes: [#23184] Problems with speed control effect strip in the 
video sequence editor

Also: got rid of tstripdata caches in DNA.

Fixes some potential crashes in SEQ_IMAGE rendering (s_elem wasn't 
checked for NULL).
2010-08-08 13:55:30 +00:00
9db1f87531 remove unused includes 2010-08-08 13:11:13 +00:00
5c75d6fa98 remove unused includes 2010-08-08 13:06:31 +00:00
3e58edda3a remove unused includes 2010-08-08 13:03:07 +00:00
8c455e1da8 remove unused includes 2010-08-08 08:33:47 +00:00
f2d77e4496 remove unused includes from editors/space_* 2010-08-08 08:14:07 +00:00
9566b031a3 == docs ==
Added some docs mainly in bpy.types.UILayout.html, descriptions by Florian Meyer (testscreenings), thanks.
2010-08-07 18:34:16 +00:00
2b3c8bdc27 Bugfix #23216: Memory leak when removing Fcurve from action
Missing call to free_fcurve()
2010-08-07 10:18:59 +00:00
c688dc05ca bugfix [#23211] "with" keyword in text editor not highlighted [Patch attatched
by Justin Dailey (dail) with minor edit
2010-08-07 02:13:39 +00:00
dc3c979ac8 after discussion with brecht reverting this commit, will pass on feedback to the patch author 2010-08-06 18:40:05 +00:00
8c40bda539 Fix #23210: displace modifier strength only had 2 decimal places,
was inconsistent.
2010-08-06 18:14:52 +00:00
fe0a7ea7a5 Fix #23208: REGION_DRAW_POST_PIXEL callbacks only work in 3d view and
image editor, but there's no reason they wouldn't work in all regions,
so moved the function call.
2010-08-06 18:11:49 +00:00
7b6e895c11 Fix #23209: there was no access yet to region data from RNA, there's no
generic system for it yet, but for now already return it for the 3D view
since that is the only space that uses it.
2010-08-06 17:54:02 +00:00
8c80f623f4 Committing Konrads GLSL preview of bumpmapping, now we no longer have the bizarre situation of being able to view the changes of the normal map but not of regular bump mapping 2010-08-06 17:42:47 +00:00
8d2e59e659 Fix #22961: linked duplicate meshes are all displayed in edit mode when
one of them is in edit mode. This doesn't give correct results for modifiers
though, there was already a check to disable this when are shape keys, so
now it is also disabled if either of the meshes has modifiers.
2010-08-06 17:41:45 +00:00