Blender Git Commit Log

All Blender Git commits.

Page: 7197 / 8462

April 18, 2010, 08:54 (GMT)
was using uninitialized string for node name display, also use sizeof() rather then fixed values.
April 18, 2010, 05:13 (GMT)
Updating operator_simple template with new register functions and
missing bpy import
April 18, 2010, 02:03 (GMT)
Merged changes in the trunk up to revision 28247.
April 17, 2010, 23:47 (GMT)
Major documentation updates. The original Freestyle API reference
(http://freestyle.sourceforge.net/doc/html/index.html) has been
incorporated into the Blender/Freestyle Python API implementation
in the form of Sphinx-based embedded docstrings. Some C++-specific
descriptions of classes and functions were revised so that they are
suitable for Python programmers. Missing docstrings were filled,
and sparse descriptions were extended. By means of the new
documentation system for Blender, an up-to-date Freestyle Python
API reference will be part of the Blender 2.5 documentation.
Revision 00e46ef by gsr b3d (master)
April 17, 2010, 22:43 (GMT)
SVN maintenance.
April 17, 2010, 19:05 (GMT)
- for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections
April 17, 2010, 15:47 (GMT)
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.

April 17, 2010, 08:55 (GMT)
move camera lens/angle conversion to BLI_math
April 17, 2010, 08:33 (GMT)
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.
April 17, 2010, 06:52 (GMT)
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.
April 16, 2010, 23:58 (GMT)
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 ;)
April 16, 2010, 22:42 (GMT)
Added missing/better tooltips for Array modifier
April 16, 2010, 16:19 (GMT)
-->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.
April 16, 2010, 15:25 (GMT)
Render Branch: Fix some alpha premul problems with mipmap files by moving
the premul code to imbuf, still a small difference that needs to be fixed,
but no very bright pixels anymore hopefully.

April 16, 2010, 15:24 (GMT)
April 16, 2010, 15:19 (GMT)
fix for uv project modifier, broke when angle was removed.
April 16, 2010, 15:03 (GMT)
Render Branch: Attemp to fix sss + irr cache render crash with displaying
cache samples.

April 16, 2010, 14:27 (GMT)
Render Branch:
* Fix crash with NULL image texture.
* Add test for render cancel in deep shadow buffer compression.

April 16, 2010, 14:09 (GMT)
Render Branch: SSS now works together with irradiance caching.

April 16, 2010, 12:00 (GMT)
Render Branch: Fix mistake in imbuf changes, forgot to replace one free()
by MEM_freeN().

By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021