10 years agoAudaspace: Removing an unneeded function.
Joerg Mueller [Wed, 1 Sep 2010 20:33:26 +0000 (20:33 +0000)]
Audaspace: Removing an unneeded function.

10 years agoInternal Code Renaming:
Thomas Dinges [Wed, 1 Sep 2010 20:18:31 +0000 (20:18 +0000)]
Internal Code Renaming:
Donut > Torus

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 1 Sep 2010 19:39:37 +0000 (19:39 +0000)]
SVN maintenance.

10 years agoSend NC_SCENE|ND_TOOLSETTINGS notifier when select mode was forced to edge select
Sergey Sharybin [Wed, 1 Sep 2010 17:03:31 +0000 (17:03 +0000)]
Send NC_SCENE|ND_TOOLSETTINGS notifier when select mode was forced to edge select
in loop cut operator. Header buttons have "delayed" update without this notifier.

10 years agohave rna function obj.as_pointer() return a memory address rather then a PyCapsule...
Campbell Barton [Wed, 1 Sep 2010 15:25:22 +0000 (15:25 +0000)]
have rna function obj.as_pointer() return a memory address rather then a PyCapsule object.
this can be passed to ctypes.c_void_p(bpy.context.object.as_pointer())

10 years agoFix [#23612] OBJ import with imports double textures
Nathan Letwory [Wed, 1 Sep 2010 14:49:34 +0000 (14:49 +0000)]
Fix [#23612] OBJ import with imports double textures
Reported by Reiner Prokein

A .obj file can have multiple mtllib statements with the same name. Ensure that only one occurance is saved, so we don't get multiple entries from same material.

Also fix tabs -> spaces

10 years agobugfix [#23285] Exporters not available whel using special characters in path name
Campbell Barton [Wed, 1 Sep 2010 14:13:48 +0000 (14:13 +0000)]
bugfix [#23285] Exporters not available whel using special characters in path name
- ID properties now suopport non utf-8 strings for their values but not their keys.
- moved utility functions into py_capi_utils.c from bpy_utils and bpy_rna.
- import/export paths have to be printed with repr() or %r, so non utf-8 chars are escaped.

10 years ago* add missing imports
Nathan Letwory [Wed, 1 Sep 2010 13:55:41 +0000 (13:55 +0000)]
* add missing imports
* fix indentation: tabs -> spaces

10 years agoQuicky - allow dragging an image on a 3d view background
Matt Ebb [Wed, 1 Sep 2010 13:41:53 +0000 (13:41 +0000)]
Quicky - allow dragging an image on a 3d view background
to set it as the background image. Dragging on an object still
sets it to face-mapped texture.

10 years agofinished moving importers and exporters into python packages (as proposed on the...
Campbell Barton [Wed, 1 Sep 2010 12:11:34 +0000 (12:11 +0000)]
finished moving importers and exporters into python packages (as proposed on the mailing list).
- made operator dir's into python packages
- lazy loading of module which do the actual import and export (faster blender load times)
- general maintanance and small fixes.
- bugfix for exporting x3d materials
- leak fix for exporting 3ds

10 years agopoll function for py api operator access
Campbell Barton [Wed, 1 Sep 2010 11:16:11 +0000 (11:16 +0000)]
poll function for py api operator access
 if bpy.ops.object.mode_set.poll():

10 years agoParticle billboards weren't created properly
Janne Karhu [Wed, 1 Sep 2010 10:29:03 +0000 (10:29 +0000)]
Particle billboards weren't created properly

10 years agoFix for [#23596] Particle Harmonics cache problem
Janne Karhu [Wed, 1 Sep 2010 09:47:19 +0000 (09:47 +0000)]
Fix for [#23596] Particle Harmonics cache problem
* Non-dynamic particles weren't reset properly because they don't use pointcache

10 years agoAdded missing ID_NEW() in set_sca_new_poins_ob() as pointed out by Dalai.
Benoit Bolsee [Wed, 1 Sep 2010 08:09:23 +0000 (08:09 +0000)]
Added missing ID_NEW() in set_sca_new_poins_ob() as pointed out by Dalai.

10 years agoremove debug prints
Nathan Letwory [Wed, 1 Sep 2010 06:51:20 +0000 (06:51 +0000)]
remove debug prints

10 years agoPython library copying hack.
Nathan Letwory [Wed, 1 Sep 2010 06:19:38 +0000 (06:19 +0000)]
Python library copying hack.

When creating project files the multi-configuration generator is used. CMAKE_BUILD_TYPE is then not set, so always release libs were copied.
For now copy both release and debug.

10 years ago* Don't use /ZI when 64bit building on Windows. Use /Zi instead.
Nathan Letwory [Wed, 1 Sep 2010 05:39:26 +0000 (05:39 +0000)]
* Don't use /ZI when 64bit building on Windows. Use /Zi instead.
* Copy files to ${BLENDER_VERSION} instead of .blender/
* Don't try to copy iconv.dll when 64bit building on Windows - it is static for 64bit.

10 years agoexcuse the noise, adding type's in format package names.
Campbell Barton [Wed, 1 Sep 2010 03:06:28 +0000 (03:06 +0000)]
excuse the noise, adding type's in format package names.

10 years agomoving import/export scripts into packages (just moving scripts, need to add __init__...
Campbell Barton [Wed, 1 Sep 2010 03:02:30 +0000 (03:02 +0000)]
moving import/export scripts into packages (just moving scripts, need to add still, temp break import/exporters)

10 years agocleanup duplicate GPL haeders, blender made 2.4x __bpydoc__ into __doc__, removed...
Campbell Barton [Wed, 1 Sep 2010 02:48:23 +0000 (02:48 +0000)]
cleanup duplicate GPL haeders, blender made 2.4x __bpydoc__ into __doc__, removed version info, (thats what svn logs are for).
also moved create_derived_objects & free_derived_objects into io_utils, used by x3d and 3ds.

10 years agouse mix-in classes for import export operators, these define the filepath property...
Campbell Barton [Wed, 1 Sep 2010 02:25:49 +0000 (02:25 +0000)]
use mix-in classes for import export operators, these define the filepath property and invoke function at the moment.

10 years agoAdding intern/guardedalloc include dir for bad_level_call_stubs (stubs.c). This updat...
Mitchell Stokes [Tue, 31 Aug 2010 23:55:41 +0000 (23:55 +0000)]
Adding intern/guardedalloc include dir for bad_level_call_stubs (stubs.c). This update is for cmake and scons.

This is needed since RNA_types.h now includes BLO_sys_types.h

10 years agoFix for "RNA_enum_get: ActionActuator.mode not found.". It was broken since recent...
Dalai Felinto [Tue, 31 Aug 2010 22:27:54 +0000 (22:27 +0000)]
Fix for "RNA_enum_get: ActionActuator.mode not found.". It was broken since recent rna renaming
Found while looking at another bug, unfortunately it's unrelated :)

10 years agoRNA Renaming Fixes for particle UI.
Thomas Dinges [Tue, 31 Aug 2010 15:12:24 +0000 (15:12 +0000)]
RNA Renaming Fixes for particle UI.

10 years agosimple NULL check to fix a crash when running in background mode
Campbell Barton [Tue, 31 Aug 2010 14:56:14 +0000 (14:56 +0000)]
simple NULL check to fix a crash when running in background mode

10 years agoFixes for RNA Renaming in Texture Properties (Volume Material)
Thomas Dinges [Tue, 31 Aug 2010 14:54:04 +0000 (14:54 +0000)]
Fixes for RNA Renaming in Texture Properties (Volume Material)

10 years agopatch [#23585] Fix for [#23553] in File Selector; Multiple Calls of Selector
Campbell Barton [Tue, 31 Aug 2010 14:22:00 +0000 (14:22 +0000)]
patch [#23585] Fix for [#23553] in File Selector; Multiple Calls of Selector
from Alexander Kuznetsov (alexk)
bugfix for [#23553] F2 on filebrowser = bug?

from the tracker
--- snip
File Explorer redraws weirdly on second press of F2 if non-default view or file types were selected previously.

This patch prohibits second call of file selector in the same window.

The bug goes much deeper. If file selector is never closed properly (cancel or select), it never gets released. (at
least the handler). If you press F2 or Ctrl-F3 ten times and than "Back to Previous" and repeat all of this
several times Blender will freeze. Also after calling file selector at least two times, on cancellation Blender will
return to full area independently to what state it was before.

include small unrelated change to quiet unpack prints when fonts are not found.

10 years ago2.5 Fluid UI:
Thomas Dinges [Tue, 31 Aug 2010 12:54:17 +0000 (12:54 +0000)]
2.5 Fluid UI:
* Required memory is now shown on the Bake Operator, rather as an extra label.

10 years agorna support for passing dynamic sized arrays to rna functions
Campbell Barton [Tue, 31 Aug 2010 11:31:21 +0000 (11:31 +0000)]
rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)

10 years agoFix [#23592] WM draw method detection fails for Mesa's software rasterizer.
Nathan Letwory [Tue, 31 Aug 2010 11:30:13 +0000 (11:30 +0000)]
Fix [#23592] WM draw method detection fails for Mesa's software rasterizer.
Reported and patched by Vinay Pawar.

The drawing method will be set to Overlap on detection of Mesa software rasterizer.

10 years ago== userprefs: addons ==
Luca Bonavita [Tue, 31 Aug 2010 02:41:33 +0000 (02:41 +0000)]
== userprefs: addons ==

- From now on addons bl_addon_info['name'] doesn't need to specifcy also the category, it is put automatically in the addon box title
  In some script category and the category in the title were not matching, this had to be fixed manually.

- The warning icon is at the right of the addon box title, so that it cant disalign the addon name anymore when we have a warning.

- After discussing with Campbell, I've added the field bl_addon_info['api'] where we should specify the Blender API version number the addon is
compatible with.
  This is certainly useful for clarity, and also I need it in place while preparing the downloadable addons.

- Also, bl_addon_info['version'] is now assumed to be a tuple of integers as it is bl_addon_info['blender'].
  Any important text should be placed in the bl_addon_info['warning'] field, not in the script version anymore.
  I'm going to reflect this change in bf-extensions so that scripts won't suddenly break.

10 years agoUpdating stubs.c.
Mitchell Stokes [Mon, 30 Aug 2010 20:35:24 +0000 (20:35 +0000)]
Updating stubs.c.
  * WM_keyconfig_add -> WM_keyconfig_new
  * WM_keyconfig_add_user -> WM_keyconfig_new_user

10 years agoFix spelling.
Guillermo S. Romero [Mon, 30 Aug 2010 19:51:12 +0000 (19:51 +0000)]
Fix spelling.

10 years agoanother function moved, should be last of the simple cases.
Campbell Barton [Mon, 30 Aug 2010 14:48:12 +0000 (14:48 +0000)]
another function moved, should be last of the simple cases.
 km.item_from_id() --> km.items.from_id()

10 years agomissed this one too
Campbell Barton [Mon, 30 Aug 2010 14:33:46 +0000 (14:33 +0000)]
missed this one too
 scene.add_keying_set() -->
also removed the use_ prefix since argument names, since this is mainly for properties.

10 years ago- keymap import/export works again (broke with own api changes)
Campbell Barton [Mon, 30 Aug 2010 13:50:59 +0000 (13:50 +0000)]
- keymap import/export works again (broke with own api changes)
- function renames, move WM functions into collections wm.add_keymap() -->
  note: new is used for named items in a collection, which return the result.
- Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.

10 years agoraise an error when setting the values of read-only rna wrapped Vector/Matrix/Euler...
Campbell Barton [Mon, 30 Aug 2010 12:27:34 +0000 (12:27 +0000)]
raise an error when setting the values of read-only rna wrapped Vector/Matrix/Euler/Quat

10 years agofix for resolving rna paths, RNA_path_resolve could return a property which was the...
Campbell Barton [Mon, 30 Aug 2010 09:18:21 +0000 (09:18 +0000)]
fix for resolving rna paths, RNA_path_resolve could return a property which was the parent of the pointer (when it would normally be assumed to be the child).

also change pythons struct_rna.path_resolve to return StructRNA's or Properties when the property isnt NULL.

10 years agobugfix [#23573] object rotates when IMAGE_SEARCH is off
Campbell Barton [Mon, 30 Aug 2010 08:44:36 +0000 (08:44 +0000)]
bugfix [#23573] object rotates when IMAGE_SEARCH is off

10 years agobugfix [#23586] Euler.rotate() method is broken
Campbell Barton [Mon, 30 Aug 2010 08:37:35 +0000 (08:37 +0000)]
bugfix [#23586] Euler.rotate() method is broken
fix included in the report

10 years agovarious utf8 compatibility fixes
Campbell Barton [Mon, 30 Aug 2010 08:28:48 +0000 (08:28 +0000)]
various utf8 compatibility fixes
- OBJ import/export now work with non utf8 paths. (all exporters and importers need changes like this)
- strip non utf8 chars from new ID blocks (also applies to renaming)
- set the file rename button to allow non-utf8 chars.

10 years agobugfix [#23197] Python can't handle German umlaut characters in strings
Campbell Barton [Mon, 30 Aug 2010 08:23:48 +0000 (08:23 +0000)]
bugfix [#23197] Python can't handle German umlaut characters in strings
workaround for python bug with Py_CompileString(), reported

10 years agoPatch [#23524] UI cleanup for commit 31587 by Filiciss Muhgue (filiciss).
Thomas Dinges [Mon, 30 Aug 2010 07:15:54 +0000 (07:15 +0000)]
Patch [#23524] UI cleanup for commit 31587 by Filiciss Muhgue (filiciss).

10 years agostubs.c updates
Mitchell Stokes [Mon, 30 Aug 2010 02:04:22 +0000 (02:04 +0000)]
stubs.c updates

10 years agoBugfix #23551: FMODIFIERS: Steps "Use End Frame" doesn't enable
Joshua Leung [Mon, 30 Aug 2010 01:57:50 +0000 (01:57 +0000)]
Bugfix #23551: FMODIFIERS: Steps "Use End Frame" doesn't enable

One old property name was missed during the renaming madness, so the 'active' poll always failed there.

10 years agoBugfix #23575: Hook modifier don't update name of bone acting as the controller when...
Joshua Leung [Mon, 30 Aug 2010 01:07:45 +0000 (01:07 +0000)]
Bugfix #23575: Hook modifier don't update name of bone acting as the controller when the name of that bone is changed

10 years agoscons compiling fix:
Joshua Leung [Mon, 30 Aug 2010 00:49:23 +0000 (00:49 +0000)]
scons compiling fix:

When "svnversion" can't be found (as is usual for anyone running TortoiseSVN), build_revision info will be "", which breaks compiling. Worked around this for now by using "<UNKNOWN>" as this

10 years agoCommitting patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMou...
Mitchell Stokes [Mon, 30 Aug 2010 00:18:50 +0000 (00:18 +0000)]
Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer)

This patch makes and return a dictionary of all inputs (including inactive) instead of a list of active inputs.

Example usage:
import bge

if[] = bge.logic.KX_INPUT_JUST_ACTIVATED:
  print("Spacebar pressed!")

A couple of changes to the patch:
  * Wrap python stuff in #ifndef DISABLE_PYTHON
  * Clear and decref m_event_dict in the destructors

A couple of things not related to the patch:
  * Made member variables private
  * Removed a commented out (and no longer used) method (

10 years agoRemove unnecessary \''s. This cleans up also printouts in splash and (no...
Nathan Letwory [Sun, 29 Aug 2010 21:53:12 +0000 (21:53 +0000)]
Remove unnecessary \''s. This cleans up also printouts in splash and (no more unnecessary quotes).

10 years agoChanging representation, so there's no space between the words.
Nathan Letwory [Sun, 29 Aug 2010 21:49:50 +0000 (21:49 +0000)]
Changing representation, so there's no space between the words.

10 years agoFix indentation errors
Nathan Letwory [Sun, 29 Aug 2010 21:38:59 +0000 (21:38 +0000)]
Fix indentation errors

10 years agoFinally change SConscript tabs to spaces.
Nathan Letwory [Sun, 29 Aug 2010 20:52:05 +0000 (20:52 +0000)]
Finally change SConscript tabs to spaces.

10 years agoProperly set build type: Release or Debug
Nathan Letwory [Sun, 29 Aug 2010 19:47:26 +0000 (19:47 +0000)]
Properly set build type: Release or Debug

10 years agoTell what platform and its bitness in BUILD_PLATFORM
Nathan Letwory [Sun, 29 Aug 2010 19:44:50 +0000 (19:44 +0000)]
Tell what platform and its bitness in BUILD_PLATFORM

10 years agofix for the weight range for curve set weight operator
Campbell Barton [Sun, 29 Aug 2010 15:53:37 +0000 (15:53 +0000)]
fix for the weight range for curve set weight operator

10 years agoadded animation data update to the help menu as discussed in last meeting.
Campbell Barton [Sun, 29 Aug 2010 15:40:48 +0000 (15:40 +0000)]
added animation data update to the help menu as discussed in last meeting.

10 years agoTweaks to ASC-CDL colour balance formula to exactly match the spec.
Matt Ebb [Sun, 29 Aug 2010 04:48:00 +0000 (04:48 +0000)]
Tweaks to ASC-CDL colour balance formula to exactly match the spec.

10 years agoBGE patch #22623 applied: new bound type: Capsule.
Benoit Bolsee [Sat, 28 Aug 2010 20:56:54 +0000 (20:56 +0000)]
BGE patch #22623 applied: new bound type: Capsule.

10 years agoTimeline Notifier Listener:
Thomas Dinges [Sat, 28 Aug 2010 15:04:42 +0000 (15:04 +0000)]
Timeline Notifier Listener:
* Added ND_FRAME_RANGE to the header listener, changing frame range in Properties Window didn't update it in the timeline, reported by Hardworker in IRC. Thanks!
* Main Area Listener doesn't listen to all NC_SCENE Notifiers now, only selected ND Notifiers, like the header does. This is more efficient. If there is a reason to let it listen to all NC_SCENE notifiers, please tell me. :)

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 =

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

10 years agobugfix [#23548] calling results in EXC_BAD_ACCESS
Campbell Barton [Fri, 27 Aug 2010 23:14:52 +0000 (23:14 +0000)]
bugfix [#23548] calling 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.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 ...

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"my_uv") returning the wrong uvmap - reported by...
Dalai Felinto [Fri, 27 Aug 2010 00:35:59 +0000 (00:35 +0000)]
Fix for"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) -->

changed 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 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: did not update viewport,
Brecht Van Lommel [Wed, 25 Aug 2010 16:25:55 +0000 (16:25 +0000)]
Fix #23470: 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.