blender-staging.git
10 years agoMerged changes in the trunk up to revision 31630.
Tamito Kajiyama [Sat, 28 Aug 2010 14:30:52 +0000 (14:30 +0000)]
Merged changes in the trunk up to revision 31630.

10 years agoDocumentation updates: Added a class hierarchy that shows
Tamito Kajiyama [Sat, 28 Aug 2010 13:52:49 +0000 (13:52 +0000)]
Documentation updates: Added a class hierarchy that shows
inheritance relationships among the classes defined in the
Freestyle module.

10 years agopython/utf8 compatibility fixes. (as discussed on the mailing list)
Campbell Barton [Sat, 28 Aug 2010 12:34:22 +0000 (12:34 +0000)]
python/utf8 compatibility fixes. (as discussed on the mailing list)

- user input gets non utf8 chars stripped all text input other then file paths.

- python has the same limitations, it will raise an error on non utf8 strings except for paths use unicode escape literals so its possible to deal with saving to these file paths from python.

- new string functions
  BLI_utf8_invalid_byte(str, len) returns the first invalid utf8 byte or -1 on on success.
  BLI_utf8_invalid_strip(str, len) strips non utf-8 chars.

10 years agoobj export fix for meshes with no UV textures
Campbell Barton [Sat, 28 Aug 2010 12:15:14 +0000 (12:15 +0000)]
obj export fix for meshes with no UV textures

10 years agoAfter talking with Campbell, we came to the conclusion that it was probably best...
Mitchell Stokes [Sat, 28 Aug 2010 08:00:37 +0000 (08:00 +0000)]
After talking with Campbell, we came to the conclusion that it was probably best not to auto-import modules. To this end, I'm removing the automatic import of the bge module.

10 years agoFix #23363: Layer buttons do not update when last object deleted
Sergey Sharybin [Sat, 28 Aug 2010 07:07:02 +0000 (07:07 +0000)]
Fix #23363: Layer buttons do not update when last object deleted

This happend because of incorrect order of calculating used layer mask and drawing
header. Added layer content changed notifier to recalc used layers when needed.
This also fixes header redrawing in "Move to layer" operator and when user
changes Object.layers in properties view

10 years agoCommitting patch [#23278] (by me)
Mitchell Stokes [Sat, 28 Aug 2010 02:07:55 +0000 (02:07 +0000)]
Committing patch [#23278] (by me)

This patch allows a user to pass binary data to LibLoad() to load a blend file from memory instead of a file path. I don't know how useful this will be for others, but I've used it so far for:
  * Decrypting .blend files and loading them without having to store the .blend on the hard drive
  * Pulling .blend data out of an archive and loading it (again skipping the hard drive)

So, it seems the biggest use for this is skipping a bit of file IO (and possibly some security problems).

Example usage:
import bge

with f as open('myfile.blend', 'rb'):
    data = f.read()

bge.logic.LibLoad('Name', 'Scene', data)

10 years agobugfix [#23548] calling fcurves.new() results in EXC_BAD_ACCESS
Campbell Barton [Fri, 27 Aug 2010 23:14:52 +0000 (23:14 +0000)]
bugfix [#23548] calling fcurves.new() results in EXC_BAD_ACCESS

10 years agoapply scons change from r31616 to cmake.
Campbell Barton [Fri, 27 Aug 2010 22:53:48 +0000 (22:53 +0000)]
apply scons change from r31616 to cmake.

10 years agopatch [#23535] Fix for [23408] in Outliner plus other UI fixes there
Campbell Barton [Fri, 27 Aug 2010 22:22:10 +0000 (22:22 +0000)]
patch [#23535] Fix for [23408] in Outliner plus other UI fixes there
from Alexander Kuznetsov (alexk)

Authors comments
---
- Rename textfield sometimes exceeded scroll bars' and window's borders.
- Restrict buttons were over not under the rename field.
- Restrict lines didn't go all the way.
- Because of 2.4x interface system, in 2.5 rows were shifted 2 pixels up.
- In Datablocks and User Preferences view bottom line was down by one.
- Rows in Datablocks, User Preferences and Keymap view didn't extend all the way but check boxes and text fields did. It was visible while scrolling horizontally  or at right bottom corner.
- Vertical lines in Datablocks and User Preferences didn't stop at the last horizontal line after last row.

This patch fixes those problems.
P.S. I tested the vertical offset with value of 40 so it works perfectly.

10 years agopatch [#23522] UI fixing for recent Python API changes
Campbell Barton [Fri, 27 Aug 2010 22:12:59 +0000 (22:12 +0000)]
patch [#23522] UI fixing for recent Python API changes
from Filiciss Muhgue (filiciss)

10 years agopatch [#23537] Memory leak in compositor rotate node
Campbell Barton [Fri, 27 Aug 2010 22:09:24 +0000 (22:09 +0000)]
patch [#23537] Memory leak in compositor rotate node
from Jeroen Bakker (jbakker)

10 years agoMake sure correct python31 zip is unpacked when BF_DEBUG=True
Nathan Letwory [Fri, 27 Aug 2010 21:42:33 +0000 (21:42 +0000)]
Make sure correct python31 zip is unpacked when BF_DEBUG=True

10 years agoThe duplicate Text option in the TexFace panel came from a bad rename of tex -> use_b...
Mitchell Stokes [Fri, 27 Aug 2010 10:05:33 +0000 (10:05 +0000)]
The duplicate Text option in the TexFace panel came from a bad rename of tex -> use_bitmap_text instead of use_image, so I'm adding the use_image (Tex) back to the TexFace panel.

10 years agomissed this with rna renaming.
Campbell Barton [Fri, 27 Aug 2010 08:21:11 +0000 (08:21 +0000)]
missed this with rna renaming.

10 years agoFix [#23451] Render View, one plus button too much
Matt Ebb [Fri, 27 Aug 2010 07:44:36 +0000 (07:44 +0000)]
Fix [#23451] Render View, one plus button too much

10 years agobugfix [#23220] .x3d export not exporting UV correctly
Campbell Barton [Fri, 27 Aug 2010 07:32:58 +0000 (07:32 +0000)]
bugfix [#23220] .x3d export not exporting UV correctly
- UV texture coords were never written.
- TexFace with no material resulted in an invalid XML file (unclosed tag)
- freewrl wouldn't parse "FALSE", needs to be "false"
- the ID data name was being written as the filename, so in many cases images wouldn't load.

10 years agobugfix [#23534] Custom Properties not showing in OBJECT panel
Campbell Barton [Fri, 27 Aug 2010 06:11:42 +0000 (06:11 +0000)]
bugfix [#23534] Custom Properties not showing in OBJECT panel

10 years agoBugfix #23504: Axis-Angle Rotation keyframes were not being inserted correctly when...
Joshua Leung [Fri, 27 Aug 2010 04:43:47 +0000 (04:43 +0000)]
Bugfix #23504: Axis-Angle Rotation keyframes were not being inserted correctly when using the 'Rotation' Keying Set

10 years agoOBJ export nurbs curves now export again.
Campbell Barton [Fri, 27 Aug 2010 04:43:42 +0000 (04:43 +0000)]
OBJ export nurbs curves now export again.

10 years agoOBJ Import support for nurbs curves back, remove some commented code.
Campbell Barton [Fri, 27 Aug 2010 04:07:12 +0000 (04:07 +0000)]
OBJ Import support for nurbs curves back, remove some commented code.

10 years agorna api
Campbell Barton [Fri, 27 Aug 2010 02:33:35 +0000 (02:33 +0000)]
rna api
  obj.add_vertex_group() --> obj.vertex_groups.new()
  obj.add_vertex_to_group() --> obj.vertex_groups.assign()

note: obj.vertex_groups.assign() will be very slow, need to have this take a list rather then 1 vertex at a time.

10 years agospeedup for pyrna boolean checking.
Campbell Barton [Fri, 27 Aug 2010 01:50:50 +0000 (01:50 +0000)]
speedup for pyrna boolean checking.
if bpy.data.objects: ...

Would get loop over the entire collection, instead see if this collection has a single item.

10 years agomove dopesheet UI template from C to python
Campbell Barton [Fri, 27 Aug 2010 01:23:53 +0000 (01:23 +0000)]
move dopesheet UI template from C to python

10 years agoFix for Mesh.uv_textures.new(name="my_uv") returning the wrong uvmap - reported by...
Dalai Felinto [Fri, 27 Aug 2010 00:35:59 +0000 (00:35 +0000)]
Fix for Mesh.uv_textures.new(name="my_uv") returning the wrong uvmap - reported by Vitor Balbio - not in tracker.

The code was taking the last layer, but that is only valid if the mesh has only one kind of CustomData types (e.g. only UVMaps or only VertexColors). The solution I found is to call CustomData_get_named_layer_index instead. To avoid some situations where an uv with this name may already exist and the number of UVs is already the limit we are returning a CDL only when the texture is properly created.

As a bonus that also fixes the same problem with VertexColor.

10 years agofix some errors in rigify caused by recent api changes
Campbell Barton [Fri, 27 Aug 2010 00:05:00 +0000 (00:05 +0000)]
fix some errors in rigify caused by recent api changes

10 years agoown rna naming commits r31439 r31472 also renamed BGE vars unintentionally
Campbell Barton [Thu, 26 Aug 2010 23:49:46 +0000 (23:49 +0000)]
own rna naming commits r31439 r31472 also renamed BGE vars unintentionally

10 years agoED_view3d_draw_offscreen_imbuf_simple and ED_view3d_draw_offscreen_imbuf now accept...
Campbell Barton [Thu, 26 Aug 2010 23:30:15 +0000 (23:30 +0000)]
ED_view3d_draw_offscreen_imbuf_simple and ED_view3d_draw_offscreen_imbuf now accept the imbuf flag so they can get the float buffer from opengl directly.

10 years agorna api changes
Campbell Barton [Thu, 26 Aug 2010 22:44:05 +0000 (22:44 +0000)]
rna api changes
- mesh.add_geometry(v, e, f)  --> mesh.vertices.add(tot), mesh.edges.add(tot), mesh.faces.add(tot)
- mesh.add_material(mat) --> mesh.materials.link(mat)

changed material.link so it always adds a material even if it exists in the list, this behavior is good for users but not scripts since it can mess up indicies (some formats may have the same material set twice).

10 years agoThe Text TexFace option was listed twice, so i removed one.
Mitchell Stokes [Thu, 26 Aug 2010 20:03:21 +0000 (20:03 +0000)]
The Text TexFace option was listed twice, so i removed one.

10 years agoWhen loading a default file, the default path could't always be initialized.
Campbell Barton [Thu, 26 Aug 2010 15:18:10 +0000 (15:18 +0000)]
When loading a default file, the default path could't always be initialized.
 G.main->name (also bpy.data.filepath) was being set to an uninitialized string.

Not much we can do about this so set G.main->name an empty string if no file is loaded.

10 years agobugfix [#23523] OBJ Import still fails
Campbell Barton [Thu, 26 Aug 2010 14:44:25 +0000 (14:44 +0000)]
bugfix [#23523] OBJ Import still fails
mistake in own recent commit, texture type wasn't being set

10 years agobugfix [#23520] Smoke broken - UI doesn't allow particle system selection
Campbell Barton [Thu, 26 Aug 2010 09:30:52 +0000 (09:30 +0000)]
bugfix [#23520] Smoke broken - UI doesn't allow particle system selection

10 years agofix for dark images from the sequencer when color management is disabled.
Campbell Barton [Thu, 26 Aug 2010 09:12:10 +0000 (09:12 +0000)]
fix for dark images from the sequencer when color management is disabled.
the render engine assumes the RenderResult's rectf is not in linear color space when color management is disabled so the sequencer and opengl render need to follow this else it results in dark images.

10 years agoPatch [#5429] SCons patch for linux: support more libs to be linked statically
Nathan Letwory [Thu, 26 Aug 2010 08:04:58 +0000 (08:04 +0000)]
Patch [#5429] SCons patch for linux: support more libs to be linked statically
Contributed by Rui Campos, adapted for current trunk

This was a very ancient patch on my todo list (mid-December 2006). Some things already were done, so I
added now ffmpeg and freetype support for linking statically. FFMPEG part is untested further from my part
so if you run into problems with that, please report.

10 years agoPatch [#23437] Fix for buffer overflow in filebrowser
Nathan Letwory [Thu, 26 Aug 2010 07:26:13 +0000 (07:26 +0000)]
Patch [#23437] Fix for buffer overflow in filebrowser
Contributed by Alexander Kuznetsov

10 years agoPatch [#23390] Addition of Author field to user preferences
Nathan Letwory [Thu, 26 Aug 2010 07:19:24 +0000 (07:19 +0000)]
Patch [#23390] Addition of Author field to user preferences
Contributed by Imran Syed (freakabcd)

Adds a field where the user can put in name/nickname that exporters
then can use to write authoring information, where possible.

10 years agoPatch [#23389] Add authorship information to exported COLLADA files
Nathan Letwory [Thu, 26 Aug 2010 06:58:32 +0000 (06:58 +0000)]
Patch [#23389] Add authorship information to exported COLLADA files
Contributed by Imran Syed (freakabcd).

This adds basic authoring tool and author info ("Blender User" for now).

NOTE: Linux and OSX users need now to update their OpenCOLLADA libs - Blender should now compile fine with their latest revision.

Made some changes to the original patch to ensure linking is done correctly.
Some small cleanups for scons too.

10 years agorna api - replace panel properties bl_default_closed and bl_show_header with bl_optio...
Campbell Barton [Thu, 26 Aug 2010 01:05:37 +0000 (01:05 +0000)]
rna api - replace panel properties bl_default_closed and bl_show_header with bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'.
this matches operators which also uses bl_options like this

10 years agoUpdating stubs.c for WM_clipboard_text_get and WM_clipboard_text_set.
Mitchell Stokes [Thu, 26 Aug 2010 00:37:40 +0000 (00:37 +0000)]
Updating stubs.c for WM_clipboard_text_get and WM_clipboard_text_set.

10 years agopatch [#23316] Fix bug that doesn't show "X:" "Y:" "Z:" for vectors with length
Campbell Barton [Thu, 26 Aug 2010 00:06:10 +0000 (00:06 +0000)]
patch [#23316] Fix bug that doesn't show "X:" "Y:" "Z:" for vectors with length
patch [#23317] Changed some operators' RNA to accept lengths
by Lorenzo Tozzi (oni_niubbo)

with the minor change to use XYZ subtype rather then LENGTH.

10 years agoFix #23470: scene.objects.link() did not update viewport,
Brecht Van Lommel [Wed, 25 Aug 2010 16:25:55 +0000 (16:25 +0000)]
Fix #23470: scene.objects.link() did not update viewport,
patch by Dan Eicher, thanks!

10 years agoFix #23496: some composite node inputs/buttons not working.
Brecht Van Lommel [Wed, 25 Aug 2010 16:11:58 +0000 (16:11 +0000)]
Fix #23496: some composite node inputs/buttons not working.

10 years agoFix #23461 and #23474: revision 31517 to simplify code made undo work
Brecht Van Lommel [Wed, 25 Aug 2010 16:01:30 +0000 (16:01 +0000)]
Fix #23461 and #23474: revision 31517 to simplify code made undo work
incorrect, BLI_findstring doesn't work when you need to loop over the
list backwards.

10 years agopatch [#23359] Addenda: fixes for SCons FreeBSD 7, 8, 9 support
Campbell Barton [Wed, 25 Aug 2010 14:33:50 +0000 (14:33 +0000)]
patch [#23359] Addenda: fixes for SCons FreeBSD 7, 8, 9 support
from Jashank Jeremy (jashank)

10 years agobugfix [#23497] Keymap editor search box not working
Campbell Barton [Wed, 25 Aug 2010 14:29:14 +0000 (14:29 +0000)]
bugfix [#23497] Keymap editor search box not working

10 years agosimplify pass drawing, give each pass its own list, avoids some context switching.
Campbell Barton [Wed, 25 Aug 2010 14:23:02 +0000 (14:23 +0000)]
simplify pass drawing, give each pass its own list, avoids some context switching.
- also fixes a problem where xray+transp+alpha1.0 objects wouldnt draw at all.
- the patch worked by adding twice but this leaked memory.
- solve by adding the xraytransp object to the xray list if the alpha is 1.0

10 years agopatch [#23376] Fix for Bug[[#23351] X-Ray + Transparency removes X-Ray effect
Campbell Barton [Wed, 25 Aug 2010 12:01:15 +0000 (12:01 +0000)]
patch [#23376] Fix for Bug[[#23351] X-Ray + Transparency removes X-Ray effect
from Phil Gosch (saphires)

minor edit on the patch, was adding V3D_XRAY and V3D_XRAYTRANSP lists, only add to one.

10 years agoFix #23433: crash with undo where a UI button was still active and accessing
Brecht Van Lommel [Wed, 25 Aug 2010 09:33:48 +0000 (09:33 +0000)]
Fix #23433: crash with undo where a UI button was still active and accessing
data that was freed.

10 years agoFix #23181: crash in bone roll with project snapping enabled.
Brecht Van Lommel [Wed, 25 Aug 2010 09:30:52 +0000 (09:30 +0000)]
Fix #23181: crash in bone roll with project snapping enabled.

10 years agoFix BGE bug reported by Gilberto: BL_AmartureObject.channels returns only one channel...
Benoit Bolsee [Wed, 25 Aug 2010 09:25:11 +0000 (09:25 +0000)]
Fix BGE bug reported by Gilberto: BL_AmartureObject.channels returns only one channel. Fix BL_ArmatureChannel.joint_rotation now that bPoseChannel structure is passed directly to the get function.

10 years agobugfix [#23495] unable to pack file, source path not found: "<builtin>"
Campbell Barton [Wed, 25 Aug 2010 08:57:42 +0000 (08:57 +0000)]
bugfix [#23495] unable to pack file, source path not found: "<builtin>"

10 years agobugfix [#22819] Grease Pencil: OpenGL render incorrect if view mode, OK with cursor...
Campbell Barton [Wed, 25 Aug 2010 08:31:52 +0000 (08:31 +0000)]
bugfix [#22819] Grease Pencil: OpenGL render incorrect if view mode, OK with cursor mode
also made drawing in camera view stick to the camera border (belated durian request),
useful for animation review without worrying about screensize moving the overlay about.

10 years agoFix: Colour picker wheel wasn't gamma corrected - drawing too dark
Matt Ebb [Wed, 25 Aug 2010 07:49:12 +0000 (07:49 +0000)]
Fix: Colour picker wheel wasn't gamma corrected - drawing too dark

10 years agoAllow per-pixel inputs into displace node x and y scale
Matt Ebb [Wed, 25 Aug 2010 07:43:38 +0000 (07:43 +0000)]
Allow per-pixel inputs into displace node x and y scale
(previously only used constant values)

10 years agoFix/addition for recent RNA collections active index changes -
Matt Ebb [Wed, 25 Aug 2010 07:03:35 +0000 (07:03 +0000)]
Fix/addition for recent RNA collections active index changes -
added scene render layers.active property and updated UI file

10 years agoBugfix #23439 and #23453: Auto Keying not working in newly created Scenes.
Joshua Leung [Wed, 25 Aug 2010 04:48:42 +0000 (04:48 +0000)]
Bugfix #23439 and #23453: Auto Keying not working in newly created Scenes.

The UserPrefs Default was never getting initialised correctly, so new scenes would not get the default AutoKeying mode set correctly ("add but off"). I remembered fixing some problems like this before, but it seems that fix only fixed old files vs the user-prefs for new scenes.

10 years agorename most scons build targets to match cmake
Campbell Barton [Wed, 25 Aug 2010 04:30:47 +0000 (04:30 +0000)]
rename most scons build targets to match cmake

10 years agobugfix [#23456] context.main.filepath lost after undo
Campbell Barton [Wed, 25 Aug 2010 04:03:38 +0000 (04:03 +0000)]
bugfix [#23456] context.main.filepath lost after undo
 G.sce was being restored after undo but not G.main->name
 also changed reading a new file so G.main->name gets set to the startup.blend even if its not on the disk, not ideal but would set to <memory2> otherwise.

10 years agobpy.context.manager.clipboard get/set function (to get/set the Clipboard from a script)
Dalai Felinto [Wed, 25 Aug 2010 03:44:13 +0000 (03:44 +0000)]
bpy.context.manager.clipboard get/set function (to get/set the Clipboard from a script)
Thanks Campbell - one day I get used to C pointer management hell :)

* when using it to get, the whole string comes in one single line with Linux EOL (\n)
* works only for text

10 years agobugfix [#23469] Missing Parent Menu in Pose mode
Campbell Barton [Wed, 25 Aug 2010 02:56:37 +0000 (02:56 +0000)]
bugfix [#23469] Missing Parent Menu in Pose mode

10 years agobugfix
Campbell Barton [Wed, 25 Aug 2010 02:32:02 +0000 (02:32 +0000)]
bugfix
- image filepath in the image view would only be set when first loading a frame.
- check to free animated image buffers on opengl render was comparing against the wrong value.

10 years agoApplied patch #23379. Does not change existing .blend files and looks
Robert Holcomb [Wed, 25 Aug 2010 02:18:37 +0000 (02:18 +0000)]
Applied patch #23379.  Does not change existing .blend files and looks
good.

10 years agofix for image sequence ranges
Campbell Barton [Wed, 25 Aug 2010 02:00:55 +0000 (02:00 +0000)]
fix for image sequence ranges

10 years agorenaming recast_type to type_recast so people don't miss this.
Dalai Felinto [Wed, 25 Aug 2010 01:51:38 +0000 (01:51 +0000)]
renaming recast_type to type_recast so people don't miss this.
Discussed with Campbell.

10 years agobugfix/aviodance for [#23488] bpy.types.Texture.type don´t update the parameters...
Campbell Barton [Wed, 25 Aug 2010 01:20:50 +0000 (01:20 +0000)]
bugfix/aviodance for [#23488] bpy.types.Texture.type don´t update the parameters of texture
bpy.data.textures.new() now has a type argument since changing the type after forces the hacky use of recast_type().

10 years agobugfix [#23487] Lasso select does not update selected object count
Campbell Barton [Wed, 25 Aug 2010 00:58:15 +0000 (00:58 +0000)]
bugfix [#23487] Lasso select does not update selected object count

10 years agobugfix [#23452] Camera added in python is not correctly rotated
Campbell Barton [Wed, 25 Aug 2010 00:54:03 +0000 (00:54 +0000)]
bugfix [#23452] Camera added in python is not correctly rotated

10 years agoremove rna function template_triColorSet(), was only used in one place and can be...
Campbell Barton [Wed, 25 Aug 2010 00:34:40 +0000 (00:34 +0000)]
remove rna function template_triColorSet(), was only used in one place and can be done just as well with 3 function calls.

10 years agopatch [#23471] x3d export broken: empty files
Campbell Barton [Wed, 25 Aug 2010 00:21:34 +0000 (00:21 +0000)]
patch [#23471] x3d export broken: empty files
from Christopher Creutzig (ccreutzig)

10 years agoBugfix: [#23472] mesh.uv_textures.new() creates a MeshColorLayer
Dalai Felinto [Wed, 25 Aug 2010 00:15:10 +0000 (00:15 +0000)]
Bugfix: [#23472] mesh.uv_textures.new() creates a MeshColorLayer

10 years agoupdate to pyrna so deleting an attribute only fails if that attribute resolves to...
Campbell Barton [Tue, 24 Aug 2010 23:52:20 +0000 (23:52 +0000)]
update to pyrna so deleting an attribute only fails if that attribute resolves to an RNA property.

10 years ago== SCons ==
Nathan Letwory [Tue, 24 Aug 2010 13:08:14 +0000 (13:08 +0000)]
== SCons ==
Make it possible to link statically against libgettext. Set WITH_BF_GETTEXT_STATIC to True and put static lib in BF_GETTEXT_LIB_STATIC (absolute path works probably best). BF_GETTEXT_LIB will be ignored.

10 years agoFixing KeyingSets breakage from recent RNA renaming madness.
Joshua Leung [Tue, 24 Aug 2010 06:52:16 +0000 (06:52 +0000)]
Fixing KeyingSets breakage from recent RNA renaming madness.

* 'Active' on TimeLine header needs to show choices ALL KeyingSets available (Builtins + Scene-Absolutes), not just the ones in Scene ("Absolute Paths")

* The active KeyingSet setting is needed/used-by for both of these.

10 years agopy/rna remove functions now all work in a similar way.
Campbell Barton [Tue, 24 Aug 2010 06:40:28 +0000 (06:40 +0000)]
py/rna remove functions now all work in a similar way.
- some remove() functions took an int argument rather then the item to remove.
- disallow None argument.
- raise an error if the item isnt in the collection.

10 years agomake quicky wrapper for cmake.
Campbell Barton [Tue, 24 Aug 2010 05:24:37 +0000 (05:24 +0000)]
make quicky wrapper for cmake.
works like scons where using a subset of the targets name is enough.

  make_quicky.py py
...expands into
  make  bf_python bf_python_ext blender/fast

arguments like -j4 are passed on.

10 years agorename some cmake build targets
Campbell Barton [Tue, 24 Aug 2010 04:29:23 +0000 (04:29 +0000)]
rename some cmake build targets

10 years agomove more active variables to be nested in collections.
Campbell Barton [Tue, 24 Aug 2010 04:02:50 +0000 (04:02 +0000)]
move more active variables to be nested in collections.

10 years agoremove recently added rna function uilayout.prop_search_self() and instead allow...
Campbell Barton [Tue, 24 Aug 2010 03:02:27 +0000 (03:02 +0000)]
remove recently added rna function uilayout.prop_search_self() and instead allow collections to be coerced into rna structs when they define a type.
eg:
 row.prop_search_self(scene, "active", "keying_sets", text="")
...becomes
 row.prop_search(scene.keying_sets, "active", scene, "keying_sets", text="")

This is more flexible since it works for other UI functions too.

10 years ago- pythons 'del somevalue.attr' could crash when used with the rna api (reported by...
Campbell Barton [Tue, 24 Aug 2010 02:12:09 +0000 (02:12 +0000)]
- pythons 'del somevalue.attr' could crash when used with the rna api (reported by Luca)
  eg:
    bpy.context.StringProperty(attr='myprop'); del bpy.context.myprop

- made rna StringProperty/PointerProperty & similar into class methods.

- file selector hide option was inverted

10 years agoUpdating stubs.c to get the Blenderplayer linking again.
Mitchell Stokes [Tue, 24 Aug 2010 00:43:32 +0000 (00:43 +0000)]
Updating stubs.c to get the Blenderplayer linking again.

10 years ago- move more active properties into their collections:
Campbell Barton [Mon, 23 Aug 2010 22:16:45 +0000 (22:16 +0000)]
- move more active properties into their collections:
  scene.active_keying_set --> scene.keying_sets.active
  ...same for active_uv_texture. active_vertex_color, active_keyconfig,

- move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections
  also have them return the newly created layer and dont set the layer active.

  uvtex = mesh.uv_layers.new(name)
  vcol = mesh.vertex_colors.new(name)

10 years agobugfix [#23454] vector*matrix not the same as vector*=matrix
Campbell Barton [Mon, 23 Aug 2010 22:10:13 +0000 (22:10 +0000)]
bugfix [#23454] vector*matrix not the same as vector*=matrix
- they now share the same code so it wont happen again.
- added id_data to properties so we can do...
  matrix = C.object.matrix_world
  obj = matrix.owner.id_data # get the original object back.

10 years agoFix quasy systematic crash at Blender exit: globalPool was released twice
Benoit Bolsee [Mon, 23 Aug 2010 21:31:57 +0000 (21:31 +0000)]
Fix quasy systematic crash at Blender exit: globalPool was released twice

10 years agoBGE bug #23213: VBO preference make object with modifiers crash the BGE. Fix by disab...
Benoit Bolsee [Mon, 23 Aug 2010 20:53:02 +0000 (20:53 +0000)]
BGE bug #23213: VBO preference make object with modifiers crash the BGE. Fix by disabling VBO inside the BGE, it brings no advantage anyway.

10 years agoFix for the RNA renaming in revision 31496. The problem was that
Tamito Kajiyama [Mon, 23 Aug 2010 13:50:09 +0000 (13:50 +0000)]
Fix for the RNA renaming in revision 31496.  The problem was that
the Freestyle toggle button had disappeared from the Post Processing
tab in the Render buttons.

10 years agoDPX files are linear now, the gamma value in the file header should
Ton Roosendaal [Mon, 23 Aug 2010 11:46:12 +0000 (11:46 +0000)]
DPX files are linear now, the gamma value in the file header should
be on 1.0 then, otherwise software thinks it's linear with gamma
applied. Verified on Arri Laser for film recording.

10 years ago- rename mesh UV and VertexColor add functions
Campbell Barton [Mon, 23 Aug 2010 11:04:43 +0000 (11:04 +0000)]
- rename mesh UV and VertexColor add functions
  mesh.add_vertex_color() -> vcol = mesh.vertex_colors.new(name)
  mesh.add_uv_texture() -> uvtex = mesh.uv_textures.new(name)

- pose.active_bone_group -> pose.bone_groups.active, same for UV&vcol layers, keying sets, key configs

10 years agoPatch #23460: Fix for Outliner; excludes expand button from renaming an object
Joshua Leung [Mon, 23 Aug 2010 11:03:48 +0000 (11:03 +0000)]
Patch #23460: Fix for Outliner; excludes expand button from renaming an object
Submitted by: Alexander Kuznetsov (alexk)

Ctrl-LMB or Double-Click over the expand buttons in the Outliner would try renaming the object/item, but in 2.4x this only happened over the name.

10 years agoPatch #22855: Replace existing pose in poselib: put frame+name in properties, not...
Joshua Leung [Mon, 23 Aug 2010 10:46:31 +0000 (10:46 +0000)]
Patch #22855: Replace existing pose in poselib: put frame+name in properties, not only frame
Submitted by: Torsten Rupp (rupp)

Thanks Torsten for the patch. Previously, replacing poses would name them all "Pose".

10 years ago* Code tweak for my last commit, missed some break's.
Thomas Dinges [Mon, 23 Aug 2010 06:56:08 +0000 (06:56 +0000)]
* Code tweak for my last commit, missed some break's.
Thanks to Dalai for pointing this out!

10 years agonew UI rna function
Campbell Barton [Mon, 23 Aug 2010 06:06:26 +0000 (06:06 +0000)]
new UI rna function
layout.prop_search_self(), the same as layout.prop_search() except it uses an attribute of the collection.

A number of collections have an 'active' member which couldnt be used with prop_search() and meant we had a mix of active properties being in collections and directly added as properties.

10 years agorename UI function
Campbell Barton [Mon, 23 Aug 2010 05:47:45 +0000 (05:47 +0000)]
rename UI function
  layout.prop_object() --> prop_search().

The internal name is uiItemPointerR, in python this can translate into into an Object, however this is misleading.
It can be confused with a blender Object and uiItemPointerR can also be used for strings.

10 years agocollection attributes can now be resolved with by rna
Campbell Barton [Mon, 23 Aug 2010 05:36:21 +0000 (05:36 +0000)]
collection attributes can now be resolved with by rna
this now works...
  bpy.context.scene.path_resolve("objects.active.location")

Also added an option to coerce the property into a native pytype.

10 years agocmake patch from lux-integ.
Campbell Barton [Mon, 23 Aug 2010 01:17:14 +0000 (01:17 +0000)]
cmake patch from lux-integ.

10 years agorna: move metaball.active_element to metaball.elements.active
Campbell Barton [Mon, 23 Aug 2010 00:57:19 +0000 (00:57 +0000)]
rna: move metaball.active_element to metaball.elements.active
added rna funcs...
  elem = metaball.elements.new()
  metaball.elements.remove(elem)

10 years agoFix for [#22741] Material preview doesn't update when "undo" is used to revert a...
Thomas Dinges [Sun, 22 Aug 2010 17:51:58 +0000 (17:51 +0000)]
Fix for [#22741] Material preview doesn't update when "undo" is used to revert a setting.
* Buttons window listens to NC_WINDOW now.

10 years ago- rna py-api bug fix, a NULL item in a collection was raising an error
Campbell Barton [Sun, 22 Aug 2010 17:23:08 +0000 (17:23 +0000)]
- rna py-api bug fix, a NULL item in a collection was raising an error
 eg: mesh.materials[0]
 ... when this was an empty slot.

- game world mist panel wasnt updated for rna renaming.

10 years ago* Fixing some UI Increment/Decrement issues, where click on left/right triangle in...
Thomas Dinges [Sun, 22 Aug 2010 16:44:48 +0000 (16:44 +0000)]
* Fixing some UI Increment/Decrement issues, where click on left/right triangle in the button would change a decimal which was not seen in the UI.

* Made Decimate slider a percentage slider (as the dna name says percent as well).

10 years agopatch [#23449] RNA renaming bugs
Campbell Barton [Sun, 22 Aug 2010 16:33:26 +0000 (16:33 +0000)]
patch [#23449] RNA renaming bugs
from Jacob F (raccoon)