Commit Graph

20216 Commits

Author SHA1 Message Date
Campbell Barton
ed4377faa7 replace referenecs to python 2.x 2010-04-20 15:46:28 +00:00
Brecht Van Lommel
716e9c5f47 Fix case of accessing freed windowmanager memory after reading a file. 2010-04-20 14:58:46 +00:00
Campbell Barton
870115be85 hidden durian feature for entering a new path when linked libs are not found. 2010-04-20 10:36:00 +00:00
Dalai Felinto
dd2080f5c4 BGE EPY Docs: PhysicsConstraints and fixes in other modules
PhysicsConstraints module documented by Jean-François (Ninja Goliath) based on GameKit 2nd ed.
Thanks for the initiative and the great help!

General advice for anyone helping with EpyDocs:
* use :: instead of : to keep the indentation correct,
* use B{} for clarity when needed (e.g. createConstraints)

Adding F13 to F19 to complement Matt's recent commit
* There are other (not so important) functions in PhysicsConstraints module that are not exposed in the documentation right now.

The generated page is temporarily here, if someone want to review it:
http://blenderecia.orgfree.com/blender/tmp/PhysicsConstraints-module.html
2010-04-20 08:23:22 +00:00
Joshua Leung
b52eddd95a Made playback operators use exec() callback instead of invoke(), so that these can be used for Python scripts.
Note that this is not the patch by dfelinto on the mailing list, since that fix would cause compiler warnings. Also, the invoke() (with the extra wmEvent* arg) is superfluous here, so there shouldn't be any problems with making this exec() only instead.
2010-04-20 02:39:07 +00:00
Matt Ebb
45abe2baf2 Added F13 - F19 keys for game engine too. 2010-04-20 01:04:00 +00:00
Matt Ebb
3a04262c4c Added ability to use up to F19 on the keyboard (previous max was F12).
GHOST is already collecting up to F24, but I've only got up to F19 on this 
keyboard so I've just committed what I could test here.
2010-04-20 00:08:27 +00:00
Campbell Barton
4d39e04102 change mathutils 'repr' functions to closer match input 2010-04-19 22:02:53 +00:00
Andrea Weikert
4a99303967 == file browser ==
Select from last selection. This new setting allows to select all files from the last selected to the current. (Works like SHIFT+SELECT in Windows file browser)
Keymap is LEFTMOUSE+ALT for now since LEFTMOUSE+CTRL is already used for renaming (like in outliner)
2010-04-19 19:29:40 +00:00
Andrea Weikert
37a1297a55 Fix crash when invoking File->Save from the menu
Operator can't call itself! Just call the actual exec function instead.
2010-04-19 18:11:00 +00:00
Campbell Barton
454470e0bd setting array slices wasnt running rna update
eg:
 scene.visible_layers[:] = obj.layers
2010-04-19 13:37:44 +00:00
Brecht Van Lommel
8abd21dbc5 Fix crash playing back files with saved speed control sequencer strip,
frameMap cache was not set to NULL on load.
2010-04-19 13:27:54 +00:00
Brecht Van Lommel
1dce678c2b Fix problem with limit rotation constraints during transform. This code
would convert from quat to matrix and back if the bone had any constraint,
but did not normalize the quat first as done in other places, giving a
sudden jump when starting transform on some bones with constraints. Two
changes:

* Normalize quaternion first.
* Only do this conversion on bones with limit rotation constraints,
  instead of all bones with any constraint.
2010-04-19 09:38:36 +00:00
Campbell Barton
3b502ca727 image operator poll functions for reload and replace now check for a valid image, but not a valid buffer. 2010-04-19 07:28:23 +00:00
Matt Ebb
2f56d8d2e7 Fix [#22056] Minor UI problem in File Browser 2010-04-19 04:39:01 +00:00
Daniel Salazar
7a1a7ddbee Reverting edit mode Shrink Fatten to Alt+S after talking to Ali. This
makes it inline with curve Shrink Fatten and is a nicer regular use
hotkey
2010-04-19 01:22:56 +00:00
Guillermo S. Romero
30bf23d22d Add support for >2GiB files (as r28267) and some cleanups. 2010-04-18 20:47:05 +00:00
Andrea Weikert
cf4d63c09d == sequencer ==
* new icon for split view (at least temporary)
* icon buttons in header rather than popup menus for better efficiency (can easily be changed in python UI script again)
2010-04-18 18:46:16 +00:00
Peter Schlaile
4d1903870a Brought back editable anim_startofs and anim_endofs both with shuffle test 2010-04-18 18:30:55 +00:00
Ton Roosendaal
59b661a290 Bugfix: text buttons in zoomed in or out views, didn't get the cursor on the
right location for mouseclicks.
2010-04-18 17:05:55 +00:00
Peter Schlaile
75911e0e30 Brought back negative Channel-Variables in preview header, so
that preview can show final result from inside a meta strip again.
2010-04-18 16:30:46 +00:00
Peter Schlaile
8efdcaf038 removed icons in proxy preview render size selection. (They don't
really help, if they are non-existent...)
2010-04-18 15:30:21 +00:00
Peter Schlaile
f1eab048d3 == Sequencer ==
Removed seqrectx and seqrecty global variables.
2010-04-18 14:48:53 +00:00
Campbell Barton
4fde9823fd possible fix for [#22057] Autoname L/R in bones names center bones as .R
Bone would get a '.' added even when there was no extension.
(center limit would still be useful)

- name flipping function used sizeof() incorrectly.
- ED_lorem should be extern.
2010-04-18 14:47:45 +00:00
Peter Schlaile
153081accd Applied:
[#21390] Sequencer: Shifted frames on Time Flip/Flip Backwards

thanks to Koen Ribus(kori) for the patch.
2010-04-18 13:25:51 +00:00
Peter Schlaile
cf1953bb7e Brought back secondary input filtering, thereby
fixing 
[#21014] SEQUENCER: Can no longer apply colour balance filter to colour effect strip.

Also: reordered some UI elements so that
geometry, time and color modifications are grouped together.
2010-04-18 13:05:17 +00:00
Peter Schlaile
a5431b53dd Brought back N-key for sequencer preview. 2010-04-18 12:19:07 +00:00
Peter Schlaile
4fcbc36c1c Added RAW-DV-files (.dv) to filelist, so that drag-n-drop
to the sequencer timeline works properly.
2010-04-18 12:00:53 +00:00
Campbell Barton
8f1500da00 remove config.h references, was added for automake build system rev around 124-126 but isnt used by any build systems now. 2010-04-18 10:28:37 +00:00
Campbell Barton
45441c07d4 various minor fixes
- collada export would run MEM_freeN on an un-initialized pointer in some cases.
- makesrna was missing a call to close a file.
- text cursor update function was missing a NULL check for st->text.
- possible (unlikely) un-initialized return value for bge python lamp.type, set error instead.
- possible (unlikely) missing NULL terminator with strncpy for ffmpeg.
2010-04-18 09:12:18 +00:00
Campbell Barton
01e2de7c53 was using uninitialized string for node name display, also use sizeof() rather then fixed values. 2010-04-18 08:54:42 +00:00
Guillermo S. Romero
00e46ef739 SVN maintenance. 2010-04-17 22:43:18 +00:00
Campbell Barton
4cf697de89 - for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections
2010-04-17 19:05:53 +00:00
Campbell Barton
392e1da179 bugfix and cleanup
- BGE Shader.setSampler(name, index): index range check was wrong.
- Compositor check for an invalid channel was incorrect.
- getting the center of selected verts used an uninitalized z axis.
- do_init_render_material() used && rather then & when testing for MA_TRANSP.
- weight paint activate flipped bone used && rather then & for flag checking.
2010-04-17 15:47:00 +00:00
Campbell Barton
3afd8d6cc8 move camera lens/angle conversion to BLI_math 2010-04-17 08:55:31 +00:00
Damien Plisson
c00e7fb89d Quicktime audio export: force AAC sample rate to be <=48kHz to avoid later codec error + potential quicktime mem leaks fixes
AAC Codec does not handle sample rates above 48kHz.
2010-04-17 08:33:42 +00:00
Dalai Felinto
795b438bf5 Patch #21789 - BGE Keyboard and Mouse Python types - by Mitchell Stokes(Moguri)
The patch exposes mouse and keyboard read-only properties in the GameLogic module
Also renames bge.keys to bge.events (* Note: name of bge submodules (logic, render, ...) may change before 2.5 final release [right Campbell?]).

"""
This patch adds two new types to the BGE:
SCA_PythonKeyboard
SCA_PythonMouse

These two types allow users to make use of the keyboard and mouse without the need for a keyboard or mouse sensor.

SCA_PythonKeyboard has an events property that acts just like SCA_KeyboardSensor.events.

SCA_PythonMouse also has an events property to check for mouse events. Further more it supports getting and setting normalized cursor position (from 0.0 to 1.0) with SCA_PythonMouse.position. The cursor can be shown/hidden using SCA_PythonMouse.visible.
"""

Its use is similar with current mouse and keyboard controllers. With the exception of mouse position being normalized and writable as well (replacing Rasterizer.setMousePosition).

Code Sample:
######
from bge import logic, events

mouse = logic.mouse
keyboard = logic.keyboard

for key,status in keyboard.events:
    if status == logic.KX_INPUT_JUST_ACTIVATED:
        if key == events.WKEY:
            print(mouse.position)
            # move_forward()

mouse.visible = True # turn cursor visible
mouse.position = 0.5,0.5  # centralize mouse - use tuple
######

* Important Note: mouse.position still will not work properly for Letterbox mode.
In order to fix letterboxing I may need to move the set x,y mouse function to inside the canvas code (to avoid duplicated code between mouse sensor and bge.logic.mouse). I'll leave this for another commit though.
Thanks Mitchell for the work on that.
2010-04-17 06:52:14 +00:00
Dalai Felinto
6562e6a4d1 PThreads "fix" for CMake / MSVC
I heard that the actual solution would be to remove #include <pthread.h> from BLI_threads.h
But in the mean time is not fair to CMake/MSVC to be the only system not building ;)
2010-04-16 23:58:12 +00:00
Daniel Salazar
eea3d0225a Added missing/better tooltips for Array modifier 2010-04-16 22:42:35 +00:00
Geoffrey Bantle
2241299c20 -->Fix for compile on MSVC
Expansion of BASE_MATH_MEMBERS macro meant that
two consecutive semicolons were in the source in
most header files that used it.
2010-04-16 16:19:36 +00:00
Campbell Barton
d3f69c8bce fix for uv project modifier, broke when angle was removed. 2010-04-16 15:19:55 +00:00
Campbell Barton
182587fce1 [#22045] Memory leak in Mathutils.Matrix
own fault when adding mathutils callbacks, generic destructor didnt free the matrix accessor array, made the array apart of the matrix struct since its not worth malloc'ing to save at most 16bytes.
2010-04-16 08:17:13 +00:00
Matt Ebb
0028aa24c1 Fix [#21559] Loopcut and scale problem.
Force mesh out of face select mode and into edge mode when doing loop cut - 
it left an invalid edge selection in face mode, especially with edge slider afterwards.
2010-04-16 08:14:20 +00:00
Sergey Sharybin
7c791ad7df Grease pencil->beizer curve conversion fix: handles used to have
the same coordinates as points.

Also send additional notification at the end of conversion operator,
which is needed for correct interface updating (active object could
be changed in operator but interface wouldn't be updated).
2010-04-16 08:13:30 +00:00
Andrea Weikert
911c136c89 Fix warning, also added error message for the case of no filename passed. 2010-04-16 05:24:58 +00:00
Matt Ebb
ecf98473c2 Turned off 'Emulate 3 button mouse' in default startup blend.
In this day and age most people have 3 button mice, so this option can now be the
exception not the rule  - causes enough issues with conflicts. This commit won't
disturb existing saved configs.
2010-04-16 05:23:04 +00:00
Matt Ebb
07052eb377 Fix for possible null pointer, from uncle entity in irc 2010-04-16 04:44:15 +00:00
Matt Ebb
7119d5ba70 Fix [#21492] "Align to view" option from tools panel's operator part doesn't works.
Also changed some usage of CTX_wm_region_view3d(C) to ED_view3d_context_rv3d(C)
2010-04-16 02:14:56 +00:00
Campbell Barton
7c7d93e664 fix for own mistake, from r27961. 2010-04-15 21:58:49 +00:00
Andrea Weikert
83daf2193e File Browser: respect UserPref for filtering.
Setting 'Filter Files' to false, now shows all files in file browser by default when called with any operator.
2010-04-15 20:37:47 +00:00