Nathan Letwory [Fri, 13 Aug 2010 20:54:34 +0000 (20:54 +0000)]
Apply patch #23295 - Fix for SCons building on FreeBSD
Patch submitted by Jashank Jeremy. This adds support for freebsd7, freebsd8 and freebsd9. Thanks!
Campbell Barton [Fri, 13 Aug 2010 18:48:33 +0000 (18:48 +0000)]
bugfix [#21807] Import Key Configuration problems
Brecht Van Lommel [Fri, 13 Aug 2010 17:13:07 +0000 (17:13 +0000)]
Fix #23297: python error caused empty brush panel in the image editor.
Campbell Barton [Fri, 13 Aug 2010 16:59:11 +0000 (16:59 +0000)]
bugfix [#22037] OBJ exporter produce wrong UV
Campbell Barton [Fri, 13 Aug 2010 16:34:21 +0000 (16:34 +0000)]
bugfix [#22845] Python operators dont free report list
Campbell Barton [Fri, 13 Aug 2010 15:26:37 +0000 (15:26 +0000)]
added include for offsetof(), also use <string.h>, not "string.h"
Campbell Barton [Fri, 13 Aug 2010 15:07:57 +0000 (15:07 +0000)]
[#22884] slow import wavefont/.obj file
- dont run mesh update functions on zero user meshes (a bit of a cheap trick but works well), made in last commit by mistake.
- dont do a scenegraph update on linking an object, run scene.update() after linking objects.
- remove split material option since we have enough slots.
Campbell Barton [Fri, 13 Aug 2010 14:42:45 +0000 (14:42 +0000)]
- remove WM_operatortype_exists since its almost the same as WM_operatortype_find
- hopefully fix reported problem with MSVC.
Brecht Van Lommel [Fri, 13 Aug 2010 14:29:56 +0000 (14:29 +0000)]
2.5: rendering thread-safety experiment, when setting G.rt to 101, it will
render from a Main database created from the undo buffer. That means extra
memory usage and processing needed, but gives no interference with other
data.
Still won't work entirely since there are a few things that don't get
flushed always (editmode, sculpt, ..) and some places that use globals.
Brecht Van Lommel [Fri, 13 Aug 2010 14:23:44 +0000 (14:23 +0000)]
2.5: more removal of G.main.
Brecht Van Lommel [Fri, 13 Aug 2010 10:20:40 +0000 (10:20 +0000)]
Fix #23111: file Output node not working when inside a group.
Brecht Van Lommel [Fri, 13 Aug 2010 09:47:14 +0000 (09:47 +0000)]
Fix #23244: image save function did not release lock on render
result, causing freeze later.
Campbell Barton [Fri, 13 Aug 2010 06:45:33 +0000 (06:45 +0000)]
exporters now set the filepath in the invoke() method rather then the menu drawing function.
Campbell Barton [Fri, 13 Aug 2010 06:30:04 +0000 (06:30 +0000)]
minor changes to rna/python.
- raise an exception when python calls is_property_set(name) or is_property_hidden(name) and the property does not exist.
- added BLI_findstring_ptr(), which finds a named item in a listbase where that name is a pointer to a string.
- replaced inline for loops with calls to BLI_findstring_ptr() and IDP_GetPropertyFromGroup().
Campbell Barton [Fri, 13 Aug 2010 03:17:10 +0000 (03:17 +0000)]
bugfix [#22974] OBJ import arrives without texture
Dalai Felinto [Thu, 12 Aug 2010 20:42:06 +0000 (20:42 +0000)]
Fix for [#23286] Text Editor: Cursor not changing shape when insert key is pressed. Patch by Justin Dailey (dail)
Thomas Dinges [Thu, 12 Aug 2010 19:36:10 +0000 (19:36 +0000)]
2.5 User Interface / UI Scripts
* Fixed some panel ordering after recent register changes.
* Placed "Custom Props" to the bottom again, where possible
This fixes [#23171] Material context is messed up.
Brecht Van Lommel [Thu, 12 Aug 2010 17:48:25 +0000 (17:48 +0000)]
Fix #23219: smooth view rotating in top view could generate NaN-values,
causing 3d view drawing to break.
Brecht Van Lommel [Thu, 12 Aug 2010 17:13:47 +0000 (17:13 +0000)]
Fix #23098: crash in baking, it did a call to BLI_end_threads too much,
causing problems with thread safe malloc after baking once.
Brecht Van Lommel [Thu, 12 Aug 2010 16:46:03 +0000 (16:46 +0000)]
Fix #22777: duplifaces don't take deforming modifiers into account
while in edit mode.
Campbell Barton [Thu, 12 Aug 2010 16:39:23 +0000 (16:39 +0000)]
bugfix: deleting NLA tracks with a keyframed text3d obdata would free the curve, missing type checks.
Brecht Van Lommel [Thu, 12 Aug 2010 16:15:50 +0000 (16:15 +0000)]
Fix #23269: inconsistent naming of recalculate roll in menus compared to
operator popup menu.
Campbell Barton [Thu, 12 Aug 2010 15:26:23 +0000 (15:26 +0000)]
text editor bugfix, selecting & moving the cursor on lines >256 chars long (was reallocing too little memory).
Brecht Van Lommel [Thu, 12 Aug 2010 15:15:02 +0000 (15:15 +0000)]
Fix #23188: libpng error: Image width or height is zero in IHDR.
The file thumbnail generator would write 0x0 size png's to the .thumbnails/fail
folder. However libpng throws an error when doing this. Instead we now write 1x1
png's, which nautilus seems to be doing as well. The content shouldn't matter
anyway since we won't use it.
Campbell Barton [Thu, 12 Aug 2010 14:49:08 +0000 (14:49 +0000)]
text editor, only draw line highlight when its in the view.
Brecht Van Lommel [Thu, 12 Aug 2010 13:58:10 +0000 (13:58 +0000)]
Fix #23238: crash rendering multiple scenes from compositor.
Campbell Barton [Thu, 12 Aug 2010 11:33:07 +0000 (11:33 +0000)]
bugfix [#23227] .obj import with UV produces broken UV map in 2.53.0 (r30593)
eekadoodle face order fix was only being checked for quads, not tri's.
Brecht Van Lommel [Thu, 12 Aug 2010 11:09:19 +0000 (11:09 +0000)]
Fix #23258: paint cursor not working in sculpt/paint modes.
Brecht Van Lommel [Thu, 12 Aug 2010 10:35:34 +0000 (10:35 +0000)]
Fix #23281: crash with multiresolution and uv project.
Brecht Van Lommel [Thu, 12 Aug 2010 10:17:21 +0000 (10:17 +0000)]
Fix #23235: crash with editmesh instances & drawing, only the object
in object mode should make the editmesh derivedmesh.
Joshua Leung [Thu, 12 Aug 2010 09:50:04 +0000 (09:50 +0000)]
Small UI Tweak: Added NumPad-0 as additional hotkey for Reset to Default Values. Previously, only ZeroKey (i.e. 0 on top row) was used, which was not very convenient to hit)
Campbell Barton [Thu, 12 Aug 2010 09:35:39 +0000 (09:35 +0000)]
patch [#23280] Generated suffixes of strip names contain random character (revision 31262)
from Torsten Rupp (rupp)
Campbell Barton [Thu, 12 Aug 2010 06:28:46 +0000 (06:28 +0000)]
fix for the rna curve interpolation enum, 'ease' was using the same value as Bezier.
Campbell Barton [Thu, 12 Aug 2010 03:37:45 +0000 (03:37 +0000)]
bugfix [#23263] Changing view crashes blender
Campbell Barton [Thu, 12 Aug 2010 02:24:12 +0000 (02:24 +0000)]
[#23275] .3DS import script fails on some models.
- fixed reading meshes without faces.
also changed...
- read verts/faces/uvs in one struct.unpack(), should be a bit faster.
- removed mesh/material splitting, very confusing/slow code and not needed since the 16 material limit was removed.
- load image paths with bpy.path.resolve_ncase() since many 3ds's files has case mismatch with file names (applies to OBJ too).
Campbell Barton [Thu, 12 Aug 2010 00:14:32 +0000 (00:14 +0000)]
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.
Campbell Barton [Wed, 11 Aug 2010 22:36:43 +0000 (22:36 +0000)]
- 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()
Dalai Felinto [Wed, 11 Aug 2010 21:51:31 +0000 (21:51 +0000)]
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)
Tom Musgrove [Wed, 11 Aug 2010 20:33:02 +0000 (20:33 +0000)]
bad level call fixes so the blenderplayer compiles again
Campbell Barton [Wed, 11 Aug 2010 17:13:39 +0000 (17:13 +0000)]
add support for documenting class methods
Campbell Barton [Wed, 11 Aug 2010 16:40:36 +0000 (16:40 +0000)]
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
Campbell Barton [Wed, 11 Aug 2010 15:11:30 +0000 (15:11 +0000)]
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>
Joilnen Leite [Wed, 11 Aug 2010 14:51:52 +0000 (14:51 +0000)]
Fixing make files compilation in linux
Campbell Barton [Wed, 11 Aug 2010 08:23:48 +0000 (08:23 +0000)]
bugfix [#23257] cmake tests for SSE, but SSE2 gets enabled
patch from Vinay Pawar, some minor changes by me.
Campbell Barton [Wed, 11 Aug 2010 05:21:43 +0000 (05:21 +0000)]
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.
Campbell Barton [Wed, 11 Aug 2010 03:31:56 +0000 (03:31 +0000)]
bugfix [#23247] Load Image in Textures does not use a usefull path
Matt Ebb [Wed, 11 Aug 2010 02:31:54 +0000 (02:31 +0000)]
Fix silly bug with color ramp ui where there was an extra pixel
of background on the right side
Campbell Barton [Wed, 11 Aug 2010 02:13:34 +0000 (02:13 +0000)]
correction for mis-named DupliObject.object_matrix -> matrix_original
Guillermo S. Romero [Tue, 10 Aug 2010 21:22:26 +0000 (21:22 +0000)]
Update address in license block.
Guillermo S. Romero [Tue, 10 Aug 2010 20:33:15 +0000 (20:33 +0000)]
SVN maintenance.
Campbell Barton [Tue, 10 Aug 2010 18:21:33 +0000 (18:21 +0000)]
minor adjustments to python scripts to make them easier to run outside of blender.
Campbell Barton [Tue, 10 Aug 2010 15:46:16 +0000 (15:46 +0000)]
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.
Campbell Barton [Tue, 10 Aug 2010 15:14:19 +0000 (15:14 +0000)]
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.
Daniel Genrich [Tue, 10 Aug 2010 13:06:45 +0000 (13:06 +0000)]
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
Sergey Sharybin [Tue, 10 Aug 2010 06:36:42 +0000 (06:36 +0000)]
- Enable shape key switching in edit mode for curves, surfaces and latticies
- Disable changing of lattice size if there are shape keys
Campbell Barton [Tue, 10 Aug 2010 06:27:29 +0000 (06:27 +0000)]
include rna parent class names in renaming list
Campbell Barton [Tue, 10 Aug 2010 05:41:51 +0000 (05:41 +0000)]
header re-shuffle, some headers contained unneeded refereces to other headers, better include inline with the C files that need them
Matt Ebb [Tue, 10 Aug 2010 03:28:06 +0000 (03:28 +0000)]
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)
Martin Poirier [Tue, 10 Aug 2010 02:58:32 +0000 (02:58 +0000)]
rewrite poll methods using a base class implementation instead of a global function (now that this is possible because of it being a class method)
Dalai Felinto [Mon, 9 Aug 2010 22:54:40 +0000 (22:54 +0000)]
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.
Guillermo S. Romero [Mon, 9 Aug 2010 20:14:33 +0000 (20:14 +0000)]
SVN maintenance.
Arystanbek Dyussenov [Mon, 9 Aug 2010 18:15:50 +0000 (18:15 +0000)]
Fix bug #22828, "Exporting as COLLADA crashes Blender".
Thomas Dinges [Mon, 9 Aug 2010 10:52:20 +0000 (10:52 +0000)]
OBJ Export:
* Removed duplicate use_animation variable, sorry!
* Added some descriptions.
Thomas Dinges [Mon, 9 Aug 2010 10:35:03 +0000 (10:35 +0000)]
OBJ Export:
* Script was broken, fixed.
* Started some code cleanup, mainly variable names.
* Tabs > Spaces
Campbell Barton [Mon, 9 Aug 2010 10:22:09 +0000 (10:22 +0000)]
rna refactoring update, order by class, attribute.
Campbell Barton [Mon, 9 Aug 2010 08:18:49 +0000 (08:18 +0000)]
fix from recent poll() edits.
Campbell Barton [Mon, 9 Aug 2010 07:05:37 +0000 (07:05 +0000)]
restrict prefix checking to booleans for now
Campbell Barton [Mon, 9 Aug 2010 06:55:20 +0000 (06:55 +0000)]
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.
Campbell Barton [Mon, 9 Aug 2010 02:29:06 +0000 (02:29 +0000)]
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.
Campbell Barton [Mon, 9 Aug 2010 01:37:09 +0000 (01:37 +0000)]
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.
Campbell Barton [Sun, 8 Aug 2010 23:46:49 +0000 (23:46 +0000)]
remove py2.x compat check for class registration.
Campbell Barton [Sun, 8 Aug 2010 22:49:46 +0000 (22:49 +0000)]
[#23228] Play rendered animation is not working
own recent commit missed renaming expand -> abspath
Peter Schlaile [Sun, 8 Aug 2010 16:47:58 +0000 (16:47 +0000)]
Bugfix: [#23149] Showing cache instead of rendering with the VSE
Luca Bonavita [Sun, 8 Aug 2010 16:22:29 +0000 (16:22 +0000)]
== docs ==
Changing " **type** " into "\n\n:type: " in Mathutils, to have like "type: float" in its own line.
Peter Schlaile [Sun, 8 Aug 2010 14:21:20 +0000 (14:21 +0000)]
This fixes:
[#20884] SEQUENCER EFFECT: Animating Speed Control Opacity has no effect
[#21308] SEQUENCER EFFECT: Glow ignores Opacity setting
Peter Schlaile [Sun, 8 Aug 2010 13:55:30 +0000 (13:55 +0000)]
== 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).
Campbell Barton [Sun, 8 Aug 2010 13:45:16 +0000 (13:45 +0000)]
display addons sorted by category then name (remove old commented code which loaded the modules for real)
Campbell Barton [Sun, 8 Aug 2010 13:11:13 +0000 (13:11 +0000)]
remove unused includes
Campbell Barton [Sun, 8 Aug 2010 13:06:31 +0000 (13:06 +0000)]
remove unused includes
Campbell Barton [Sun, 8 Aug 2010 13:03:07 +0000 (13:03 +0000)]
remove unused includes
Campbell Barton [Sun, 8 Aug 2010 08:33:47 +0000 (08:33 +0000)]
remove unused includes
Campbell Barton [Sun, 8 Aug 2010 08:14:07 +0000 (08:14 +0000)]
remove unused includes from editors/space_*
Luca Bonavita [Sat, 7 Aug 2010 18:34:16 +0000 (18:34 +0000)]
== docs ==
Added some docs mainly in bpy.types.UILayout.html, descriptions by Florian Meyer (testscreenings), thanks.
Campbell Barton [Sat, 7 Aug 2010 16:21:15 +0000 (16:21 +0000)]
Experemental XML UI, define panels/menus/headers which load at startup like python scripts.
- 2 panels implimented in properties_render_test.xml (Render Dimensions and Stamp)
- only enabled in debug mode.
- poll() functions are not supported yet.
- as stated above experemental, we'll see if this is at all useful, remove if not.
- XML could be replaced with JSON or YAML.
Joshua Leung [Sat, 7 Aug 2010 10:18:59 +0000 (10:18 +0000)]
Bugfix #23216: Memory leak when removing Fcurve from action
Missing call to free_fcurve()
Campbell Barton [Sat, 7 Aug 2010 02:13:39 +0000 (02:13 +0000)]
bugfix [#23211] "with" keyword in text editor not highlighted [Patch attatched
by Justin Dailey (dail) with minor edit
Martin Poirier [Fri, 6 Aug 2010 22:24:33 +0000 (22:24 +0000)]
netrender: fix poll methods
Tom Musgrove [Fri, 6 Aug 2010 18:40:05 +0000 (18:40 +0000)]
after discussion with brecht reverting this commit, will pass on feedback to the patch author
Brecht Van Lommel [Fri, 6 Aug 2010 18:14:52 +0000 (18:14 +0000)]
Fix #23210: displace modifier strength only had 2 decimal places,
was inconsistent.
Brecht Van Lommel [Fri, 6 Aug 2010 18:11:49 +0000 (18:11 +0000)]
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.
Brecht Van Lommel [Fri, 6 Aug 2010 17:54:02 +0000 (17:54 +0000)]
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.
Tom Musgrove [Fri, 6 Aug 2010 17:42:47 +0000 (17:42 +0000)]
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
Brecht Van Lommel [Fri, 6 Aug 2010 17:41:45 +0000 (17:41 +0000)]
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.
Brecht Van Lommel [Fri, 6 Aug 2010 17:35:07 +0000 (17:35 +0000)]
Fix a duplicate memory free in fluid export code, as part of bug #22734.
Brecht Van Lommel [Fri, 6 Aug 2010 17:04:31 +0000 (17:04 +0000)]
Fix missing texture face panel.
Brecht Van Lommel [Fri, 6 Aug 2010 16:59:19 +0000 (16:59 +0000)]
Fix #23167: halo "texture" option did not take disabling of the texture
into account.
Brecht Van Lommel [Fri, 6 Aug 2010 16:33:36 +0000 (16:33 +0000)]
Fix #23196: running python scripts didn't do an undo push. Now it does
means you can easily undo what the script did, and keeps the undo stack
up to date. Maybe sometimes it's not necessary, but I think it's
reasonable to do this always.
Campbell Barton [Fri, 6 Aug 2010 15:36:38 +0000 (15:36 +0000)]
reverted r31104 with recent commit.
Brecht Van Lommel [Fri, 6 Aug 2010 15:31:35 +0000 (15:31 +0000)]
Fix #23204: render disconnected hair with child particles could crash.
Campbell Barton [Fri, 6 Aug 2010 15:17:44 +0000 (15:17 +0000)]
remove narrow ui feature
- re-arranged UI in a way that gave far too much vert scrolling.
- was added all over for simple things like making text="", layout engine should handle this.
- Ton and Brecht are ok with removing this now. Ton would like to work on the layout engine to make it better support these cases.