10 years agoMerged changes in the trunk up to revision 31284.
Tamito Kajiyama [Thu, 12 Aug 2010 13:41:59 +0000 (13:41 +0000)]
Merged changes in the trunk up to revision 31284.

10 years agoPython API documentation updates: a description of class hierarchy
Tamito Kajiyama [Thu, 12 Aug 2010 12:17:47 +0000 (12:17 +0000)]
Python API documentation updates: a description of class hierarchy
was added to the docstrings of most Python extension types.

10 years agobugfix [#23227] .obj import with UV produces broken UV map in 2.53.0 (r30593)
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.

10 years agoFix #23258: paint cursor not working in sculpt/paint modes.
Brecht Van Lommel [Thu, 12 Aug 2010 11:09:19 +0000 (11:09 +0000)]
Fix #23258: paint cursor not working in sculpt/paint modes.

10 years agoFix #23281: crash with multiresolution and uv project.
Brecht Van Lommel [Thu, 12 Aug 2010 10:35:34 +0000 (10:35 +0000)]
Fix #23281: crash with multiresolution and uv project.

10 years agoFix #23235: crash with editmesh instances & drawing, only the object
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.

10 years agoSmall UI Tweak: Added NumPad-0 as additional hotkey for Reset to Default Values....
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)

10 years agopatch [#23280] Generated suffixes of strip names contain random character (revision...
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)

10 years agofix for the rna curve interpolation enum, 'ease' was using the same value as Bezier.
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.

10 years agobugfix [#23263] Changing view crashes blender
Campbell Barton [Thu, 12 Aug 2010 03:37:45 +0000 (03:37 +0000)]
bugfix [#23263] Changing view crashes blender

10 years ago[#23275] .3DS import script fails on some models.
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).

10 years agobugfix [#23270] Long directory name segmentation fault in File brower
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.

10 years ago- possibly bugfix /w uninitialized vars [#23270] Long directory name segmentation...
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()

10 years agoLogic UI: name mismatch on motion blur property (report and patch by Jacob F.)
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)

10 years agobad level call fixes so the blenderplayer compiles again
Tom Musgrove [Wed, 11 Aug 2010 20:33:02 +0000 (20:33 +0000)]
bad level call fixes so the blenderplayer compiles again

10 years agoadd support for documenting class methods
Campbell Barton [Wed, 11 Aug 2010 17:13:39 +0000 (17:13 +0000)]
add support for documenting class methods

10 years agomathutils module methods only contained matrix constructors, move these to matrix...
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

10 years agopython declarative UI
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) [

# converts into ...

    <sometag arg="10">
        <another key="value" />

10 years agoFixing make files compilation in linux
Joilnen Leite [Wed, 11 Aug 2010 14:51:52 +0000 (14:51 +0000)]
Fixing make files compilation in linux

10 years agobugfix [#23257] cmake tests for SSE, but SSE2 gets enabled
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.

10 years agosmall edits to text editor from writing a python editor extension.
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.

10 years agobugfix [#23247] Load Image in Textures does not use a usefull path
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

10 years agoFix silly bug with color ramp ui where there was an extra pixel
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

10 years agocorrection for mis-named DupliObject.object_matrix -> matrix_original
Campbell Barton [Wed, 11 Aug 2010 02:13:34 +0000 (02:13 +0000)]
correction for mis-named DupliObject.object_matrix -> matrix_original

10 years agoUpdate address in license block.
Guillermo S. Romero [Tue, 10 Aug 2010 21:22:26 +0000 (21:22 +0000)]
Update address in license block.

10 years agoSVN maintenance.
Guillermo S. Romero [Tue, 10 Aug 2010 20:33:15 +0000 (20:33 +0000)]
SVN maintenance.

10 years agominor adjustments to python scripts to make them easier to run outside of blender.
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.

10 years agorepr() functions for the python api, this means it can print '[foo...
Campbell Barton [Tue, 10 Aug 2010 15:46:16 +0000 (15:46 +0000)]
repr() functions for the python api, this means it can print '[foo].modifiers' from the objects modifiers, uses the same function thats used to make the animation path.

10 years agomoved idcode functions into their own file (was added as a todo in the comments)...
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.

10 years agoSmoke:
Daniel Genrich [Tue, 10 Aug 2010 13:06:45 +0000 (13:06 +0000)]
- Fixing UI glitch so that range and UI range now matches
- Increased max to 400 secs (at 25 FPS) to allow more artistic freedom

10 years ago- Enable shape key switching in edit mode for curves, surfaces and latticies
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

10 years agoinclude rna parent class names in renaming list
Campbell Barton [Tue, 10 Aug 2010 06:27:29 +0000 (06:27 +0000)]
include rna parent class names in renaming list

10 years agoheader re-shuffle, some headers contained unneeded refereces to other headers, better...
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

10 years agoAdded additional (optional) subframe argument to RNA API function: scene.set_frame()
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:

scene.set_frame(5, 0.25)

10 years agorewrite poll methods using a base class implementation instead of a global function...
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)

10 years agoBugfix for:[23234] Blender File Browser - Back Button does work with first directory...
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.

10 years agoSVN maintenance.
Guillermo S. Romero [Mon, 9 Aug 2010 20:14:33 +0000 (20:14 +0000)]
SVN maintenance.

10 years agoFix bug #22828, "Exporting as COLLADA crashes Blender".
Arystanbek Dyussenov [Mon, 9 Aug 2010 18:15:50 +0000 (18:15 +0000)]
Fix bug #22828, "Exporting as COLLADA crashes Blender".

10 years agoMerged changes in the trunk up to revision 31190.
Tamito Kajiyama [Mon, 9 Aug 2010 11:32:55 +0000 (11:32 +0000)]
Merged changes in the trunk up to revision 31190.

10 years agoOBJ Export:
Thomas Dinges [Mon, 9 Aug 2010 10:52:20 +0000 (10:52 +0000)]
OBJ Export:
* Removed duplicate use_animation variable, sorry!
* Added some descriptions.

10 years agoOBJ Export:
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

10 years agorna refactoring update, order by class, attribute.
Campbell Barton [Mon, 9 Aug 2010 10:22:09 +0000 (10:22 +0000)]
rna refactoring update, order by class, attribute.

10 years agofix from recent poll() edits.
Campbell Barton [Mon, 9 Aug 2010 08:18:49 +0000 (08:18 +0000)]
fix from recent poll() edits.

10 years agorestrict prefix checking to booleans for now
Campbell Barton [Mon, 9 Aug 2010 07:05:37 +0000 (07:05 +0000)]
restrict prefix checking to booleans for now

10 years agorna refactor...
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 sort by class.from by default.

10 years agopython draw callback
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.

10 years agopoll() as a python '@staticmethod' was too limiting and didnt allow useful base class...
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.

10 years agoremove py2.x compat check for class registration.
Campbell Barton [Sun, 8 Aug 2010 23:46:49 +0000 (23:46 +0000)]
remove py2.x compat check for class registration.

10 years ago[#23228] Play rendered animation is not working
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

10 years agoBugfix: [#23149] Showing cache instead of rendering with the VSE
Peter Schlaile [Sun, 8 Aug 2010 16:47:58 +0000 (16:47 +0000)]
Bugfix: [#23149] Showing cache instead of rendering with the VSE

10 years ago== docs ==
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.

10 years agoThis fixes:
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

10 years ago== Sequencer ==
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).

10 years agodisplay addons sorted by category then name (remove old commented code which loaded...
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)

10 years agoremove unused includes
Campbell Barton [Sun, 8 Aug 2010 13:11:13 +0000 (13:11 +0000)]
remove unused includes

10 years agoremove unused includes
Campbell Barton [Sun, 8 Aug 2010 13:06:31 +0000 (13:06 +0000)]
remove unused includes

10 years agoremove unused includes
Campbell Barton [Sun, 8 Aug 2010 13:03:07 +0000 (13:03 +0000)]
remove unused includes

10 years agoremove unused includes
Campbell Barton [Sun, 8 Aug 2010 08:33:47 +0000 (08:33 +0000)]
remove unused includes

10 years agoremove unused includes from editors/space_*
Campbell Barton [Sun, 8 Aug 2010 08:14:07 +0000 (08:14 +0000)]
remove unused includes from editors/space_*

10 years agoAutomatic configuration of feature edge detection options.
Tamito Kajiyama [Sat, 7 Aug 2010 22:48:25 +0000 (22:48 +0000)]
configuration of feature edge detection options.

In the Parameter Editor mode, three feature edge detection
options (i.e., Ridges and Valleys, Suggestive Contours, and
Material Boundaries) are automatically configured based on
feature edge selection settings of linesets.

10 years ago== docs ==
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.

10 years agoExperemental XML UI, define panels/menus/headers which load at startup like python...
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.

10 years agoBugfix #23216: Memory leak when removing Fcurve from action
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()

10 years agobugfix [#23211] "with" keyword in text editor not highlighted [Patch attatched
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

10 years agonetrender: fix poll methods
Martin Poirier [Fri, 6 Aug 2010 22:24:33 +0000 (22:24 +0000)]
netrender: fix poll methods

10 years agoafter discussion with brecht reverting this commit, will pass on feedback to the...
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

10 years agoFix #23210: displace modifier strength only had 2 decimal places,
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.

10 years agoFix #23208: REGION_DRAW_POST_PIXEL callbacks only work in 3d view and
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.

10 years agoFix #23209: there was no access yet to region data from RNA, there's no
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.

10 years agoCommitting Konrads GLSL preview of bumpmapping, now we no longer have the bizarre...
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

10 years agoFix #22961: linked duplicate meshes are all displayed in edit mode when
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.

10 years agoFix a duplicate memory free in fluid export code, as part of bug #22734.
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.

10 years agoFix missing texture face panel.
Brecht Van Lommel [Fri, 6 Aug 2010 17:04:31 +0000 (17:04 +0000)]
Fix missing texture face panel.

10 years agoFix #23167: halo "texture" option did not take disabling of the texture
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.

10 years agoFix #23196: running python scripts didn't do an undo push. Now it does
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.

10 years agoreverted r31104 with recent commit.
Campbell Barton [Fri, 6 Aug 2010 15:36:38 +0000 (15:36 +0000)]
reverted r31104 with recent commit.

10 years agoFix #23204: render disconnected hair with child particles could crash.
Brecht Van Lommel [Fri, 6 Aug 2010 15:31:35 +0000 (15:31 +0000)]
Fix #23204: render disconnected hair with child particles could crash.

10 years agoremove narrow ui feature
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.

10 years ago== Area lamp UI ==
Luca Bonavita [Fri, 6 Aug 2010 14:36:39 +0000 (14:36 +0000)]
== Area lamp UI ==

Fixes [#23152] Area light with noshadow is affected by rayshadow sampling setup (Kino Bug Reporting Sprint)

This moves the samples field so that it is visible in area lamps when noshadow is clicked, because acording to Brecht: "area lights also use the
samples for sampling the form factor, but they are in the shadow panel, probably for area lights that button should be moved"

Also modified the sampling buttons so that only those depending on the sampling method are below the sampling method selector, while the general
ones come first so it's immediate to see which ones are depending on the sampling method.

Also, formatted so that options for constant jitter appear below that button, so it's faster to setup.
Same for QMC which has the threshold field just below the QMC selector, and not wide as the column.

This still uses "if wide_ui else", in IRC there has been discussion about removing it but this will be done but who is in charge of it at due

10 years agoFix for silly mistake in overlap draw mode code, still drawing too much.
Brecht Van Lommel [Fri, 6 Aug 2010 14:25:35 +0000 (14:25 +0000)]
Fix for silly mistake in overlap draw mode code, still drawing too much.

10 years agofix for missing import
Campbell Barton [Fri, 6 Aug 2010 13:06:13 +0000 (13:06 +0000)]
fix for missing import

10 years agofix for fake python bge.* module, this is really nasty temp py code! (not a good...
Campbell Barton [Fri, 6 Aug 2010 12:46:22 +0000 (12:46 +0000)]
fix for fake python bge.* module, this is really nasty temp py code! (not a good example)

10 years agobugfix [#19525] Curve modifier moves mesh geometry first
Campbell Barton [Fri, 6 Aug 2010 08:27:07 +0000 (08:27 +0000)]
bugfix [#19525] Curve modifier moves mesh geometry first
more of a request then a bug but shows up a strange limitation with curve deform modifier,
The mesh bounding box would set the deform axis start/end to map the deformation of the curve to. This means it ignored offset in the object location and object data location (you could use a dummy vertex to trick it).

Old files wont change, added an option (next to stretch), called 'Bounds Clamp', old files have this behavior but newly made curves have it disabled.
Double checked this gives useful results with stretch on/off and negative axis.

10 years agoMinor cleanup to lattice.c while looking into [#19525] Curve modifier moves mesh...
Campbell Barton [Fri, 6 Aug 2010 05:19:00 +0000 (05:19 +0000)]
Minor cleanup to lattice.c while looking into [#19525] Curve modifier moves mesh geometry first
A subtle change with the curve deform modifier is when a vgroup is used: the mesh bounds were being calculated based on the verts in the group (ignoring their weight).
Now ignore verts weighted at 0.

10 years agobugfix/functionality fix [#21752] 3D cursor vanished and does not come back
Campbell Barton [Fri, 6 Aug 2010 03:52:13 +0000 (03:52 +0000)]
bugfix/functionality fix [#21752] 3D cursor vanished and does not come back

Setting the 3d cursor in perspective mode would keep the cursor behind the viewport,
now check if the cursor is begind the viewport and use the orbit location to set the cursor depth rather then the existing plane.

10 years agoadding back pep8 tag removed r31089.
Campbell Barton [Fri, 6 Aug 2010 03:11:19 +0000 (03:11 +0000)]
adding back pep8 tag removed r31089.
I use this as a tag that the script SHOULD be pep8 compliant, warnings the pep8 checkers give can be fixed later, without this I dont get any warnings.

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 6 Aug 2010 02:26:23 +0000 (02:26 +0000)]
SVN maintenance.

10 years agobugfix [#23194] export UVs miss the extension file
Campbell Barton [Fri, 6 Aug 2010 01:40:54 +0000 (01:40 +0000)]
bugfix [#23194] export UVs miss the extension file
also made all other exporters do this.

Made some internal changes.
- moved path functions from bpy.utils to bpy.path (similar to os.path)
- added functions...
  bpy.path.ensure_ext(path, ".ext", case_sensitive=False) # simple function to ensure the extension is set.
  bpy.path.resolve_ncase(path) # useful for importing scenes made on windows where the path case doesnt match the files.

10 years agofix for un-initialized variable in screw modifier.
Campbell Barton [Fri, 6 Aug 2010 00:13:44 +0000 (00:13 +0000)]
fix for un-initialized variable in screw modifier.

10 years agobugfix [#23179] Screw Modifier looses VGroups
Campbell Barton [Thu, 5 Aug 2010 23:40:21 +0000 (23:40 +0000)]
bugfix [#23179] Screw Modifier looses VGroups
- flip option now flips faces rather then flipping loop order. Now it can copy vertex data in chunks the size of the original vertex count.
- converted macro's to static func's and some general cleanup.

10 years agosome fixes for the poll() function from last commit.
Campbell Barton [Thu, 5 Aug 2010 21:58:57 +0000 (21:58 +0000)]
some fixes for the poll() function from last commit.
Martin: forgot to mention, had to remove the use of super() in poll functions for netrender. commented with FIXME.

10 years agobugfix [#23182] Using inside poll() gives crash
Campbell Barton [Thu, 5 Aug 2010 16:05:30 +0000 (16:05 +0000)]
bugfix [#23182] Using inside poll() gives crash
poll() function is now a static method in python, this is more correct, matching C where the operator is not created to run poll.

    def poll(self, context): ...

is now...

    def poll(context): ...

Pythons way of doing static methods is a bit odd but cant be helped :|

This does make subclassing poll functions with COMPAT_ENGINES break, so had to modify quite a few scripts for this.

10 years agoMakefile fix: on PowerPC architecture SSE compile should not happen.
Ton Roosendaal [Thu, 5 Aug 2010 14:04:56 +0000 (14:04 +0000)]
Makefile fix: on PowerPC architecture SSE compile should not happen.
Note for the coder here, is it correct to enable SSE with a general
WITH_BF_RAYOPTIMIZATION flag? Just call it WITH_SSE? More clear :)

10 years agobugfix [#23164] Copied Scene Nodes!
Campbell Barton [Thu, 5 Aug 2010 10:50:38 +0000 (10:50 +0000)]
bugfix [#23164] Copied Scene Nodes!
copying a scene would still have nodes point back to the old scene which would crash (in some cases) or break rendering.

10 years agoDo not reset bevel/taper object when they've got incorrect type - just do
Sergey Sharybin [Thu, 5 Aug 2010 08:39:25 +0000 (08:39 +0000)]
Do not reset bevel/taper object when they've got incorrect type - just do
noting in makebevelcurve and calc_taper functions if type is not curve.

This avoids DNA changing depended on object recalc.

10 years agobugfix [#23148] "ImportError: __import__ not found" on changing Render FPS
Campbell Barton [Thu, 5 Aug 2010 03:25:45 +0000 (03:25 +0000)]
bugfix [#23148] "ImportError: __import__ not found" on changing Render FPS

The BGE was getting the namespace dict directly from __main__ which conflicts
with my recent fix to get the pickle module working which to overwrote the __main__ module on script execution.

Simple fix is to have the BGE and Blender use the same method of getting namespaces.
Renamed CreateGlobalDictionary() to bpy_namespace_dict_new() and moved into bpy_internal_import.c

pickle still wont work in the BGE since we make a copy of __main__ namespace but for speed would rather not have to replace the __main__ module many times per second.

10 years agopatch [#23185] Mark All in Text Editor always reports "Text not found" when wrap...
Campbell Barton [Thu, 5 Aug 2010 01:46:34 +0000 (01:46 +0000)]
patch [#23185] Mark All in Text Editor always reports "Text not found" when wrap is off

10 years agoAdd BF_BUILDINFO support to Python API too.
Nathan Letwory [Wed, 4 Aug 2010 17:23:13 +0000 (17:23 +0000)]
Add BF_BUILDINFO support to Python API too.

reported by dail in IRC #blendercoders.

10 years ago== docs ==
Luca Bonavita [Wed, 4 Aug 2010 16:57:24 +0000 (16:57 +0000)]
== docs ==

Started some api documentation, hopefully these pages are now a bit more clear:

10 years agoFix #23003: setting particle number to 0 was not working correct,
Brecht Van Lommel [Wed, 4 Aug 2010 16:14:03 +0000 (16:14 +0000)]
Fix #23003: setting particle number to 0 was not working correct,
committing patch #23119 by Jeroen Bakker to fix this, thanks!