Commit Graph

25662 Commits

Author SHA1 Message Date
Thomas Dinges
614eb41c56 RNA Renaming Fixes for particle UI. 2010-08-31 15:12:24 +00:00
Campbell Barton
41a49a6bc9 simple NULL check to fix a crash when running in background mode 2010-08-31 14:56:14 +00:00
Thomas Dinges
a51f31e9a5 Fixes for RNA Renaming in Texture Properties (Volume Material) 2010-08-31 14:54:04 +00:00
Campbell Barton
26da3cb99f 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.
2010-08-31 14:22:00 +00:00
Thomas Dinges
a98b93be57 2.5 Fluid UI:
* Required memory is now shown on the Bake Operator, rather as an extra label.
2010-08-31 12:54:17 +00:00
Campbell Barton
dfb8c5974e rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-31 11:31:21 +00:00
Nathan Letwory
9a290b39c7 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.
2010-08-31 11:30:13 +00:00
Luca Bonavita
2492c12170 == 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.
2010-08-31 02:41:33 +00:00
Mitchell Stokes
fb1a0598e9 Updating stubs.c.
* WM_keyconfig_add -> WM_keyconfig_new
  * WM_keyconfig_add_user -> WM_keyconfig_new_user
2010-08-30 20:35:24 +00:00
Guillermo S. Romero
eb7c02c2a0 Fix spelling. 2010-08-30 19:51:12 +00:00
Campbell Barton
d59304e8e4 another function moved, should be last of the simple cases.
km.item_from_id() --> km.items.from_id()
2010-08-30 14:48:12 +00:00
Campbell Barton
44eb9f5095 missed this one too
scene.add_keying_set() --> scene.keying_sets.new()
also removed the use_ prefix since argument names, since this is mainly for properties.
2010-08-30 14:33:46 +00:00
Campbell Barton
eab50148e2 - keymap import/export works again (broke with own api changes)
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new()
  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.
2010-08-30 13:50:59 +00:00
Campbell Barton
ec8848d03a raise an error when setting the values of read-only rna wrapped Vector/Matrix/Euler/Quat 2010-08-30 12:27:34 +00:00
Campbell Barton
92f6dd73b3 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.
2010-08-30 09:18:21 +00:00
Campbell Barton
e5b1e646e6 bugfix [#23573] object rotates when IMAGE_SEARCH is off 2010-08-30 08:44:36 +00:00
Campbell Barton
6a993054ad bugfix [#23586] Euler.rotate() method is broken
fix included in the report
2010-08-30 08:37:35 +00:00
Campbell Barton
df4dd70d7b 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.
2010-08-30 08:28:48 +00:00
Campbell Barton
f7dfb23337 bugfix [#23197] Python can't handle German umlaut characters in strings
workaround for python bug with Py_CompileString(), reported http://bugs.python.org/msg115202
2010-08-30 08:23:48 +00:00
Thomas Dinges
52ca27cc45 Patch [#23524] UI cleanup for commit 31587 by Filiciss Muhgue (filiciss).
Thanks!
2010-08-30 07:15:54 +00:00
Mitchell Stokes
766e83f742 stubs.c updates 2010-08-30 02:04:22 +00:00
Joshua Leung
8346268daf 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.
2010-08-30 01:57:50 +00:00
Joshua Leung
1f2bc7b7b3 Bugfix #23575: Hook modifier don't update name of bone acting as the controller when the name of that bone is changed 2010-08-30 01:07:45 +00:00
Joshua Leung
88f657f251 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
2010-08-30 00:49:23 +00:00
Mitchell Stokes
57e0d677c6 Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer)
This patch makes SCA_PythonKeyboard.events and SCA_PythonMouse.events return a dictionary of all inputs (including inactive) instead of a list of active inputs.

Example usage:
import bge

if bge.logic.keyboard.events[bge.events.SPACEBAR] = 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 (SCA_PythonMouse.show())
2010-08-30 00:18:50 +00:00
Nathan Letwory
cb786f0022 Remove unnecessary \''s. This cleans up also printouts in splash and bpy.app (no more unnecessary quotes). 2010-08-29 21:53:12 +00:00
Nathan Letwory
c29b5df739 Changing representation, so there's no space between the words. 2010-08-29 21:49:50 +00:00
Nathan Letwory
37b54281b2 Fix indentation errors 2010-08-29 21:38:59 +00:00
Nathan Letwory
6c113b54b3 Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Nathan Letwory
999bb69c70 Properly set build type: Release or Debug 2010-08-29 19:47:26 +00:00
Nathan Letwory
57aee2ecf4 Tell what platform and its bitness in BUILD_PLATFORM 2010-08-29 19:44:50 +00:00
Campbell Barton
de2e58ca49 fix for the weight range for curve set weight operator 2010-08-29 15:53:37 +00:00
Campbell Barton
69949d730b added animation data update to the help menu as discussed in last meeting. 2010-08-29 15:40:48 +00:00
Matt Ebb
c2e43d7c3b Tweaks to ASC-CDL colour balance formula to exactly match the spec. 2010-08-29 04:48:00 +00:00
Benoit Bolsee
ad70072009 BGE patch #22623 applied: new bound type: Capsule. 2010-08-28 20:56:54 +00:00
Thomas Dinges
76918e6f90 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. :)
2010-08-28 15:04:42 +00:00
Campbell Barton
f28b5e672e 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.
2010-08-28 12:34:22 +00:00
Campbell Barton
7a7076c878 obj export fix for meshes with no UV textures 2010-08-28 12:15:14 +00:00
Mitchell Stokes
b1302c3c04 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. 2010-08-28 08:00:37 +00:00
Sergey Sharybin
0d530c3ddb 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
2010-08-28 07:07:02 +00:00
Mitchell Stokes
5c23537daa 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)
2010-08-28 02:07:55 +00:00
Campbell Barton
5729b991fa bugfix [#23548] calling fcurves.new() results in EXC_BAD_ACCESS 2010-08-27 23:14:52 +00:00
Campbell Barton
77c7e10e9c apply scons change from r31616 to cmake. 2010-08-27 22:53:48 +00:00
Campbell Barton
c64efcb009 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.
2010-08-27 22:22:10 +00:00
Campbell Barton
24627daabb patch [#23522] UI fixing for recent Python API changes
from Filiciss Muhgue (filiciss)
2010-08-27 22:12:59 +00:00
Campbell Barton
b76176faff patch [#23537] Memory leak in compositor rotate node
from Jeroen Bakker (jbakker)
2010-08-27 22:09:24 +00:00
Nathan Letwory
cc70bffb62 Make sure correct python31 zip is unpacked when BF_DEBUG=True 2010-08-27 21:42:33 +00:00
Mitchell Stokes
44cbc14771 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. 2010-08-27 10:05:33 +00:00
Campbell Barton
3ccb30c161 missed this with rna renaming. 2010-08-27 08:21:11 +00:00
Matt Ebb
125b82ad4c Fix [#23451] Render View, one plus button too much 2010-08-27 07:44:36 +00:00