10 years agomove generic bpy helper modules into bpy_extras.
Campbell Barton [Mon, 16 May 2011 07:51:02 +0000 (07:51 +0000)]
move generic bpy helper modules into bpy_extras.

10 years agonew empty package to move bpy utility modules into.
Campbell Barton [Mon, 16 May 2011 07:48:43 +0000 (07:48 +0000)]
new empty package to move bpy utility modules into.

10 years agoSVN maintenance.
Guillermo S. Romero [Mon, 16 May 2011 06:11:14 +0000 (06:11 +0000)]
SVN maintenance.

10 years agorename wave texture_coordinate_object -> texture_coords_object to match Displace...
Campbell Barton [Mon, 16 May 2011 05:50:04 +0000 (05:50 +0000)]
rename wave texture_coordinate_object -> texture_coords_object to match Displace and Warp modifiers.

10 years agoenable game panel even if the BGE is disabled since its settings effect the viewport.
Campbell Barton [Mon, 16 May 2011 04:55:31 +0000 (04:55 +0000)]
enable game panel even if the BGE is disabled since its settings effect the viewport.
also remove unused function in creator.c and minor edit to search menu poll function.

10 years agomade generic module for generating project files from cmake,
Campbell Barton [Mon, 16 May 2011 04:04:06 +0000 (04:04 +0000)]
made generic module for generating project files from cmake,
added netbeans project file generator.

10 years agoPatch [#27344] 300+ New/changed tooltips by Davis Sorenson (dsavi). Thanks a lot!
Thomas Dinges [Sun, 15 May 2011 17:59:48 +0000 (17:59 +0000)]
Patch [#27344] 300+ New/changed tooltips by Davis Sorenson (dsavi). Thanks a lot!
Reviewed by Tom Musgrove and myself.

From the patch description:
ValterVB on #blendercoders submitted a long list of missing tooltips in Blender, and I went through the list and added all I knew. After that I crowdsourced the rest by putting a spreadsheet on Google docs and having people fill in the missing ones that I didn't know. So if there's some weird tooltip in there that doesn't make sense, that's why.

Thanks to Wolter, spacetug and others on BlenderArtists for contributing tooltips.

10 years agoFix for [#27142] manipulator in particle mode does not work
Janne Karhu [Sun, 15 May 2011 16:42:39 +0000 (16:42 +0000)]
Fix for [#27142] manipulator in particle mode does not work
* Manipulator operator wasn't registered in particle mode.

10 years agoFix for [#27131] particle system BUG - one particle generated twice at vertex (e...
Janne Karhu [Sun, 15 May 2011 15:51:17 +0000 (15:51 +0000)]
Fix for [#27131] particle system BUG - one particle generated twice at vertex (e.g. 9 particles generated at 8 locations)
* The tiny offset value used in particle distribution code was actually too small, so that floating point errors got the best of the calculations.

10 years agohomekey in camera view now fits the view scale as well as centering the camera.
Campbell Barton [Sun, 15 May 2011 14:07:24 +0000 (14:07 +0000)]
homekey in camera view now fits the view scale as well as centering the camera.

10 years agoDo not remove MDISPS customdata layer when removing multires modifier
Sergey Sharybin [Sun, 15 May 2011 13:13:51 +0000 (13:13 +0000)]
Do not remove MDISPS customdata layer when removing multires modifier
and there are still another multires modifiers in the stack.

Helps to prevent loosing sculpt data when you occasionally added another
multires and reomved it with "X" button.

10 years agoBGE:
Mitchell Stokes [Sun, 15 May 2011 08:48:43 +0000 (08:48 +0000)]
This fixes frame colors not showing up right when using letterbox in the embedded player. Frames are drawn by clearing the whole canvas and then changing the viewport to be within the frames. The problem is that the embedded player's canvas is setup to be within the frames. This means that the extra that would normally be cleared and filled with the frame color is instead the gray color of Blender's region since nothing is actually drawn there by the BGE. To solve this, I just handle the frames in BL_KetsjiEmbedStart.

10 years agoremove redundant (and confusing) register flag.
Campbell Barton [Sun, 15 May 2011 06:29:52 +0000 (06:29 +0000)]
remove redundant (and confusing) register flag.

10 years agocamera composition guides:
Campbell Barton [Sun, 15 May 2011 05:43:59 +0000 (05:43 +0000)]
camera composition guides:
 removed diagonal golden rule (not very common), added harmonious triangle and golden triangle options.

10 years agoremove some unused view3d members & added RV3D_VIEW_USER define.
Campbell Barton [Sun, 15 May 2011 03:42:28 +0000 (03:42 +0000)]
remove some unused view3d members & added RV3D_VIEW_USER define.

Aligorith: replaced v3d->keyflags with ANIMFILTER_KEYS_LOCAL since v3d->keyflags couldn't be set anywhere and wasn't initialized.

10 years agofix for bug with camera locking, view dolly and rotate with 'about selection' prefere...
Campbell Barton [Sun, 15 May 2011 03:07:07 +0000 (03:07 +0000)]
fix for bug with camera locking, view dolly and rotate with 'about selection' preference enabled would offset the camera.

10 years agofix for user reported issues
Campbell Barton [Sun, 15 May 2011 02:39:36 +0000 (02:39 +0000)]
fix for user reported issues
- camera object movement was missing a notifier
- auto perspective now works when rotating the view.
- shift+b now zooms.

10 years agoButton for adding shape keys now creates shapes from base mesh instead of
Nathan Vegdahl [Sat, 14 May 2011 20:23:05 +0000 (20:23 +0000)]
Button for adding shape keys now creates shapes from base mesh instead of
from the current shape mix.  The old behavior is still accessable from the
menu as "New Shape From Mix".

Checked with Sergey and Bassam that this is a good change.  New users
expect the add shape button to simply add a new blank shape, and get
confused when that is not the case.  It is also really easy to
accidentally have other shape information in a new shape when the
"from mix" behavior is default.

10 years agoRemove files that were intended for shader branch.
Nathan Letwory [Sat, 14 May 2011 18:54:56 +0000 (18:54 +0000)]
Remove files that were intended for shader branch.

10 years agooption to have the view controls apply to the camera view (and camera object).
Campbell Barton [Sat, 14 May 2011 17:50:33 +0000 (17:50 +0000)]
option to have the view controls apply to the camera view (and camera object).
- follow rotate/pan/zoom/dolly operators.
- auto-depth preference works.
- smooth view navigation supported.
- view selected, all & numpad operator work too.

- deal with camera transform locked axis
- find a way to move/zoom the frame while the camera is locked (if it turns out to be a problem).

10 years agoaction editor was setting wrong rna type on Ctrl+RMB
Campbell Barton [Sat, 14 May 2011 15:44:56 +0000 (15:44 +0000)]
action editor was setting wrong rna type on Ctrl+RMB

10 years agoFix #27390: Shift for activating Smooth Brush broken in sculpt
Sergey Sharybin [Sat, 14 May 2011 12:32:15 +0000 (12:32 +0000)]
Fix #27390: Shift for activating Smooth Brush broken in sculpt

Smooth brushes at requires face map which haven't used to be created for
simple meshes (without modifiers).

Use corrected need_fmap flag at stroke initialization, so face map
is created properly for "temporary" smooth brushes and simple meshes.

10 years agofix for view dolly not working with auto-depth & zoom to mouse location when no depth...
Campbell Barton [Sat, 14 May 2011 10:35:11 +0000 (10:35 +0000)]
fix for view dolly not working with auto-depth & zoom to mouse location when no depth was found.

10 years agoThese two files didn't get added when I created a branch from my working copy.
Mitchell Stokes [Sat, 14 May 2011 06:32:25 +0000 (06:32 +0000)]
These two files didn't get added when I created a branch from my working copy.

10 years agostubs.c update: ED_view3d_from_m4()
Mitchell Stokes [Sat, 14 May 2011 06:24:29 +0000 (06:24 +0000)]
stubs.c update: ED_view3d_from_m4()

10 years agominor changes to view3d operators, add View3D to 'ViewOpsData'
Campbell Barton [Sat, 14 May 2011 05:42:58 +0000 (05:42 +0000)]
minor changes to view3d operators, add View3D to 'ViewOpsData'

10 years agoobject_mat3_to_rot wasn't correctly accounting for the euler delta rotations, so...
Campbell Barton [Sat, 14 May 2011 04:59:37 +0000 (04:59 +0000)]
object_mat3_to_rot wasn't correctly accounting for the euler delta rotations, so setting the matrix of an object would fail in this case (rotational jump).

10 years agoview3d api edits, no functional changes.
Campbell Barton [Sat, 14 May 2011 04:25:47 +0000 (04:25 +0000)]
view3d api edits, no functional changes.
rename v3d functions
* view3d_to_ob -> ED_view3d_to_object
* view3d_apply_ob -> ED_view3d_from_object
* view3d_apply_mat4 -> ED_view3d_from_m4

Changed ED_view3d_to_object() not to temp modify the view rotation and don't overwrite the objects recalc.

10 years agousing the viewmatrix to position the camera could be problematic if the view wasn...
Campbell Barton [Fri, 13 May 2011 18:32:27 +0000 (18:32 +0000)]
using the viewmatrix to position the camera could be problematic if the view wasn't yet recalculated, use the quaternion instead.

10 years agorename setcameratoview3d to view3d_to_ob & add to ED_view3d.h so others can use.
Campbell Barton [Fri, 13 May 2011 18:05:30 +0000 (18:05 +0000)]
rename setcameratoview3d to view3d_to_ob & add to ED_view3d.h so others can use.

10 years agomade BLI_edgefill returns the list length since some callers count directly after...
Campbell Barton [Fri, 13 May 2011 16:04:20 +0000 (16:04 +0000)]
made BLI_edgefill returns the list length since some callers count directly after, also remove 2 unused flags from ScFillVert struct.

10 years agosupport for reading/writing image resolution (dpi), for PNG and TIFF,
Campbell Barton [Fri, 13 May 2011 14:27:12 +0000 (14:27 +0000)]
support for reading/writing image resolution (dpi), for PNG and TIFF,
only RNA access currently 'image.resolution'.

10 years agoUse jemalloc in buildbot for linux targets
Sergey Sharybin [Fri, 13 May 2011 12:57:54 +0000 (12:57 +0000)]
Use jemalloc in buildbot for linux targets

10 years agoOption to use jemalloc when building with scons under linux.
Sergey Sharybin [Fri, 13 May 2011 12:08:34 +0000 (12:08 +0000)]
Option to use jemalloc when building with scons under linux.
Disabled by default.

10 years agoremove imbuf crect and profile_filename when building without LCMS
Campbell Barton [Fri, 13 May 2011 04:53:20 +0000 (04:53 +0000)]
remove imbuf crect and profile_filename when building without LCMS

10 years ago* Enabled rna access to fluid sim velocity vectors
Matt Ebb [Thu, 12 May 2011 22:52:30 +0000 (22:52 +0000)]
* Enabled rna access to fluid sim velocity vectors

The main purpose for this is to allow rendering motion blurred blender fluids in external renderers (eg. ).

Python code snippet for interpreting this data here: . Cleaned up some ugly hacks in this area too

* Also added read-only access to scene.subframe to RNA - setting current frame and subframe should still go via scene.frame_set()

10 years agoForgot to close clipboard when lock fails.
Sergey Sharybin [Thu, 12 May 2011 18:04:24 +0000 (18:04 +0000)]
Forgot to close clipboard when lock fails.

Thanks to jesterKing!

10 years agoFix #27359: Pasting long text crashes blender
Sergey Sharybin [Thu, 12 May 2011 16:49:53 +0000 (16:49 +0000)]
Fix #27359: Pasting long text crashes blender

Actual problem was caused by insufficient buffer size
in ui_text_leftclip()

Also fixed possible invalid memory write in GHOST_SystemWin32::getClipboard
which was caused by accessing clipboard buffer after closing
clipboard. This mustn't happen.
Also fixed possible crush when buffer was failed to be locked.

10 years agofor bug [#27358] Transform bug when transform > 500
Campbell Barton [Thu, 12 May 2011 16:47:36 +0000 (16:47 +0000)]
for bug [#27358] Transform bug when transform > 500
mouse coords would with cont. grab would wrap at short.
use mouse coords as int rather then short.

this problem still happens on linux because of XTranslateCoordinates

10 years agoBugfix #27181
Ton Roosendaal [Thu, 12 May 2011 13:49:47 +0000 (13:49 +0000)]
Bugfix #27181

2D view panning and zooming is now fully keymappable, you can set a
keyboard key to it too (hold key -> move mouse -> release key).

10 years agooption to link with jemalloc on *nix, off by default.
Campbell Barton [Thu, 12 May 2011 11:16:32 +0000 (11:16 +0000)]
option to link with jemalloc on *nix, off by default.

10 years agoFix #27279: IK bone rotation limits set to 0 disabled the limit, this was
Brecht Van Lommel [Thu, 12 May 2011 08:34:31 +0000 (08:34 +0000)]
Fix #27279: IK bone rotation limits set to 0 disabled the limit, this was
unintentional, since there is already a toggle to enable/disable it.

10 years agowindow_to_3d_vector was incorrect but dolly view operator was accounting for it....
Campbell Barton [Thu, 12 May 2011 06:52:24 +0000 (06:52 +0000)]
window_to_3d_vector was incorrect but dolly view operator was accounting for it. fixed so result isnt negated and mouse coords dont need to be adjusted.

10 years agopython utility module for converting between 2d/3d region/world coordinates.
Campbell Barton [Thu, 12 May 2011 06:32:21 +0000 (06:32 +0000)]
python utility module for converting between 2d/3d region/world coordinates.

10 years ago== Radial control ==
Nicholas Bishop [Thu, 12 May 2011 01:57:47 +0000 (01:57 +0000)]
== Radial control ==

Patch to make the radial control more generic with RNA. Patch was
reviewed here:

Prior to this update, the radial control code in trunk had generic
parts of the radial control implemented as an incomplete operator
within WM. Then each different user of the radial control had to
implement a separate operator to actually pass in specific brush data
-- e.g. sculpt's brush size, vpaint's brush size, etc.

This patch removes all the extra operators and makes the WM operator
do everything. It now takes several RNA path strings as its properties
-- the only required property is data_path, which specifies the data
to be modified by the radial control. The other paths affect display
in various ways, e.g. rotation, color, etc.

In addition to decreasing some duplicate paint brush code, these
updates make it pretty easy to enable radial control for other
purposes (and it can be set up entirely though python or keymaps, no
extra C code needed.)

10 years ago2.5 Smoke UI:
Thomas Dinges [Wed, 11 May 2011 20:23:55 +0000 (20:23 +0000)]
2.5 Smoke UI:
* More generic tooltip for "strength" property as it can be FFT as well.
Discovered by tobkum in IRC. :)

10 years agoCode cleanup: remove readblenfile module, only contained some utility functions
Brecht Van Lommel [Wed, 11 May 2011 19:29:23 +0000 (19:29 +0000)]
Code cleanup: remove readblenfile module, only contained some utility functions
to read .blend files from runtimes, folded those into blenloader.

10 years agorecent camera border drawing glitch fix needs to be applied to the top right sides...
Campbell Barton [Wed, 11 May 2011 09:42:46 +0000 (09:42 +0000)]
recent camera border drawing glitch fix needs to be applied to the top right sides too.

10 years agofix for glitch with drawing the 2d camera border over the 3d camera.
Campbell Barton [Wed, 11 May 2011 00:59:22 +0000 (00:59 +0000)]
fix for glitch with drawing the 2d camera border over the 3d camera.
seems arbitrary and may be driver specific, but this value is in the middle of what works well on mesa software GL & my nvidia.

10 years agoApply patch from Ryakiotakis Antonis as posted on ML
Nathan Letwory [Tue, 10 May 2011 23:54:15 +0000 (23:54 +0000)]
Apply patch from Ryakiotakis Antonis as posted on ML

Should fix MingW build problems - mingw users, please test too :)

10 years agoMingW apparently doesn't know about RIM_INPUTSINK, define it if it isn't already.
Nathan Letwory [Tue, 10 May 2011 23:38:40 +0000 (23:38 +0000)]
MingW apparently doesn't know about RIM_INPUTSINK, define it if it isn't already.

10 years agopatch from Dan Eicher for cpack rpms
Campbell Barton [Tue, 10 May 2011 21:59:11 +0000 (21:59 +0000)]
patch from Dan Eicher for cpack rpms

10 years agoBugfix #27305
Ton Roosendaal [Tue, 10 May 2011 16:30:03 +0000 (16:30 +0000)]
Bugfix #27305

RGB color node supports to set alpha too but never put alpha in the output.
Report + fix provided by Dani G. Thanks!

10 years agoBugfix #27311
Ton Roosendaal [Tue, 10 May 2011 15:13:03 +0000 (15:13 +0000)]
Bugfix #27311

Physics Gravity property now has UI range of 0-25, but real range goes
to 10000 to allow scaled scenes.

10 years agoremove some duplicate declarations
Campbell Barton [Tue, 10 May 2011 14:48:06 +0000 (14:48 +0000)]
remove some duplicate declarations

10 years agoFix #27217: Bézier control points moves bizarre
Sergey Sharybin [Tue, 10 May 2011 14:38:55 +0000 (14:38 +0000)]
Fix #27217: Bézier control points moves bizarre

Re-calculate handles after applying transform matrix on curve object

This commit is'n fixing changing of curve shape whe nyou're deforming it (as
it was intially reported) but just adds needed handles recalculation.

Handles are calculated correct in that "unneded deformed" curve.

10 years agominor cleanup: make functions static, use NULL for pointer comparisons,
Campbell Barton [Tue, 10 May 2011 13:11:36 +0000 (13:11 +0000)]
minor cleanup: make functions static, use NULL for pointer comparisons,

also fixed a possible bug assigning incorrect DPX function types to

10 years agoTypo in composition guides
Daniel Salazar [Tue, 10 May 2011 05:20:18 +0000 (05:20 +0000)]
Typo in composition guides

10 years agoentering non utf8 text in filepaths in the file selector would get incorrectly stripped.
Campbell Barton [Tue, 10 May 2011 05:07:24 +0000 (05:07 +0000)]
entering non utf8 text in filepaths in the file selector would get incorrectly stripped.

10 years agocamera composition guides: center, thirds, golden rule
Campbell Barton [Tue, 10 May 2011 03:03:53 +0000 (03:03 +0000)]
camera composition guides: center, thirds, golden rule

10 years agoRevert rename of r36578, breaks scons compile.
Nathan Letwory [Mon, 9 May 2011 21:34:52 +0000 (21:34 +0000)]
Revert rename of r36578, breaks scons compile.

10 years agoFix #27346: When The FONT object is blank, the dimensions are calculated wong.
Sergey Sharybin [Mon, 9 May 2011 20:14:34 +0000 (20:14 +0000)]
Fix #27346: When The FONT object is blank, the dimensions are calculated wong.

This commit fixes boundbox for empty curve-typed objects. Because of strange
reason (-1,-1,-1) and (1,1,1) was used as boundbox. Now it uses zero-sized
boundbox (as it's done for meshes).

This commit makes nothig with that single space character text from the report.

10 years agoSVN maintenance.
Guillermo S. Romero [Mon, 9 May 2011 20:13:48 +0000 (20:13 +0000)]
SVN maintenance.

10 years agopatch [#21740] Image support for Empty Objects
Campbell Barton [Mon, 9 May 2011 16:31:54 +0000 (16:31 +0000)]
patch [#21740] Image support for Empty Objects
from Andy Braham (andybraham)

This adds support for empties to reference images and draw in the 3D view.

Modifications from the original patch.
- use an empty draw 'image' type
- use image aspect ratio for non-square-pixels
- when the image is not found, still draw the frame.

10 years agominor cleanup, no functional changes.
Campbell Barton [Mon, 9 May 2011 14:41:44 +0000 (14:41 +0000)]
minor cleanup, no functional changes.

10 years agoRecreate mipmaps after undo in image editor
Sergey Sharybin [Mon, 9 May 2011 13:13:16 +0000 (13:13 +0000)]
Recreate mipmaps after undo in image editor

10 years agofixed scrolling lists with the mousewheel for some X11 windowmanagers.
M.G. Kishalmi [Mon, 9 May 2011 12:46:59 +0000 (12:46 +0000)]
fixed scrolling lists with the mousewheel for some X11 windowmanagers.

some WMs not only send 'crossing' events when really moving from one
window to another, but also when mousewheeling.
distinguishing those events 'mode' property fixed this.

brecht++ for figuring out the details.

10 years agoFix for memory leak caused by re-making mipmaps
Sergey Sharybin [Mon, 9 May 2011 10:03:06 +0000 (10:03 +0000)]
Fix for memory leak caused by re-making mipmaps

Problem was caused by different limits for "last" mipmap: it was 1x1
for mkaing mipmaps and 2x2 for re-making.

2x2 should be enough for mipmap.

10 years agoset svn end of lines to native
Campbell Barton [Mon, 9 May 2011 08:15:38 +0000 (08:15 +0000)]
set svn end of lines to native

10 years agoCode cleanup: warning fixes.
Brecht Van Lommel [Mon, 9 May 2011 08:01:48 +0000 (08:01 +0000)]
Code cleanup: warning fixes.

10 years agoCode cleanup: remove unused image window code, already implemented elsewhere.
Brecht Van Lommel [Mon, 9 May 2011 07:54:21 +0000 (07:54 +0000)]
Code cleanup: remove unused image window code, already implemented elsewhere.

10 years agoBug fix own collection:
Sergey Sharybin [Sun, 8 May 2011 20:21:31 +0000 (20:21 +0000)]
Bug fix own collection:
 - Recreate mipmaps if they're dirty when drawing background image
   (this prevents "delayed" update of background image when you're paiting on it
    in image editor).
 - Mark mipmaps as dirty when inverting image channels.

TODO: there's memory leak caused by IMB_remakemipmap, but it'll be
      anuther bugfix commit after discussion with other devs.

10 years agofix [#27324] WindowManager.invoke_search_popup() crashes blender and does not work
Campbell Barton [Sun, 8 May 2011 12:51:05 +0000 (12:51 +0000)]
fix [#27324] WindowManager.invoke_search_popup() crashes blender and does not work
also minor formatting fixes.

10 years agocomment some unused code.
Campbell Barton [Sun, 8 May 2011 10:29:40 +0000 (10:29 +0000)]
comment some unused code.

10 years agoApply second half of [#21590] .dds textures: fix for DXT1n format + sync with upstrea...
Nathan Letwory [Sun, 8 May 2011 09:05:52 +0000 (09:05 +0000)]
Apply second half of [#21590] .dds textures: fix for DXT1n format + sync with upstream nvtt
submitted by Amorilia

This updates the DDS module with upstearm nvtt (r1042).

10 years agoFixes for bugs noticed during previous fix:
Joshua Leung [Sun, 8 May 2011 05:41:57 +0000 (05:41 +0000)]
Fixes for bugs noticed during previous fix:
- In Drivers mode of Graph Editor, expanders for sub-object data were
not working at all. This was because they were getting overriden by an
errant ob-level drivers check
- Adding drivers from py-api didn't update Graph Editor

10 years agoRNA Bugfix:
Joshua Leung [Sun, 8 May 2011 05:18:40 +0000 (05:18 +0000)]
RNA Bugfix:

The following script would fail:
#ob = bpy.context.active_object
pb = bpy.context.active_pose_bone
pb.bone.driver_add("hide")  # <--- exception here

The RNA-path function for Bone assumed that when it got called, it's
"id_data" (or owner-idblock-pointer) would only be ID_AR (i.e. an
armature). However, in the above example, pb.bone has ob as its
id_data, resulting in an invalid RNA path getting created. Added check
for this case, since it's likely to be common

10 years agoCommitting patch [#27133] "Fix for for Object Color in BGE" by Kupoman
Mitchell Stokes [Sun, 8 May 2011 03:42:24 +0000 (03:42 +0000)]
Committing patch [#27133] "Fix for for Object Color in BGE" by Kupoman

The tracker description:
"This patch fixes this bug:

This was accomplished by making sure the KX_GameObject's object color gets set during the conversion process in the method gameobject_from_blenderobject. Otherwise all the values for object color default to 0. The reason adding an IPO worked as a work around is because it set the object color."

The bug report mentioned is bug [#25487] "BGE: Object Color only works when it has a keyed frame"

10 years agoPatch [#26799] embedded blenderplayer not receiving keyboard input by Sebastian Korczak
Dalai Felinto [Sat, 7 May 2011 22:28:56 +0000 (22:28 +0000)]
Patch [#26799] embedded blenderplayer not receiving keyboard input by Sebastian Korczak
(patch co-reviewed by Nathan Letwory)

Overview: GHOST using rawinput for keyboard input. GHOST window receives WM_INPUT only when it is the active window. Child window cannot be active, so when embedding blenderplayer, WM_INPUT is consumed by top level parent window (for Burster it is the web browser window). Patch register raw input device as 'inputsink' - it makes GHOST window receives all keyboard messages. Window procedure check if GHOST window is active or focused.

::TranslateMessage(&msg) generates WM_CHAR etc. messages from WM_KEYDOWN, WM_KEYUP etc. Because of using RawInput only WM_INPUT messages are processed, so we doesn't need WM_CHAR, WM_KEYDOWN etc. [this is why ::TranslateMessage is no longer getting called].

Note: It's responsibility of the parent window (aka the wrapper) to send WM_SETFOCUS to child window (embedded blenderplayer).
However some parent windows (e.g. webbrowsers) will not send WM_SETFOCUS to the child window when someone clicks on it.
In those cases the blenderplayer needs to be patched to call setFocus(&msg); in the event of WM_LBUTTONDOWN (see GHOST_SystemWin32.cpp)

10 years agoApply part of [#21590] .dds textures: fix for DXT1n format
Nathan Letwory [Sat, 7 May 2011 20:53:49 +0000 (20:53 +0000)]
Apply part of [#21590] .dds textures: fix for DXT1n format
Submitted by Amorilia.

DXT1 .dds textures with 1-bit alpha channel have their alpha channel imported in Blender.

The patch also makes change to contact info for the patch submitter.

I left the sync with upstream nvtt for another commit.

10 years agoFix #27319: Text editor "Find" does not locate words.
Sergey Sharybin [Sat, 7 May 2011 17:52:44 +0000 (17:52 +0000)]
Fix #27319: Text editor "Find" does not locate words.

Added new option to find panel of space text which toggles
case-esensitive search.

Additional changes:
- Send NC_TEXT|NA_EDITED when removing markers in find_and_replace modifier
  this prevents "sticked" markers which disappears on first redraw when
  search text wasn't found
- Do not show "Text wasn't found" error when text to be searched is contained
  in the end of buffer and it's selected. Replacing/marking used to happen, but
  this popup message was really annoying for this case.

TODO: It's incorrect to use UI_GetThemeColor4ubv from this operator

10 years agoio_utils.axis_conversion(...) utility function to easily convert the forward & up...
Campbell Barton [Sat, 7 May 2011 11:25:59 +0000 (11:25 +0000)]
io_utils.axis_conversion(...) utility function to easily convert the forward & up axis between different apps on import/export.

10 years agopatch from Dan Eicher, CPack/RPM working again
Campbell Barton [Fri, 6 May 2011 23:59:15 +0000 (23:59 +0000)]
patch from Dan Eicher, CPack/RPM working again

10 years agomissed updating warp modifier UI, gave a py error when selecting texture UI layer.
Campbell Barton [Fri, 6 May 2011 23:54:40 +0000 (23:54 +0000)]
missed updating warp modifier UI, gave a py error when selecting texture UI layer.

10 years agofix [#27298] Alt + RMB always extends selection
Campbell Barton [Fri, 6 May 2011 23:46:24 +0000 (23:46 +0000)]
fix [#27298] Alt + RMB always extends selection

10 years agoForgot to mention that for scons, I've disabled install of the texture and
Brecht Van Lommel [Fri, 6 May 2011 20:21:20 +0000 (20:21 +0000)]
Forgot to mention that for scons, I've disabled install of the texture and
sequence plugins, as was already done for cmake, they don't work in 2.5.

This is a fix for last commit, this file shouldn't have been included.

10 years agoCode cleanup: remove source/kernel module, this wasn't really the kernel of
Brecht Van Lommel [Fri, 6 May 2011 20:18:42 +0000 (20:18 +0000)]
Code cleanup: remove source/kernel module, this wasn't really the kernel of
anything, only contained a hash map and functions to pass command line args
to the game engine. Moved those to container and BlenderRoutines modules.

10 years agoCode cleanup: PIL_dynlib, renamed to BLI_dynlib, and other tweaks.
Brecht Van Lommel [Fri, 6 May 2011 15:17:42 +0000 (15:17 +0000)]
Code cleanup: PIL_dynlib, renamed to BLI_dynlib, and other tweaks.

10 years agopatch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter...
Campbell Barton [Fri, 6 May 2011 11:27:04 +0000 (11:27 +0000)]
patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist
by Brandon Ehle (azverkan)

10 years agoPatch #27225: blenderplayer resource compilation error fix for cmake + mingw,
Brecht Van Lommel [Fri, 6 May 2011 08:16:44 +0000 (08:16 +0000)]
Patch #27225: blenderplayer resource compilation error fix for cmake + mingw,
patch by Ryakiotakis Antonis.

10 years agopy/rna debugging option (defaults to off), which quickly exposes errors with RNA...
Campbell Barton [Fri, 6 May 2011 03:29:55 +0000 (03:29 +0000)]
py/rna debugging option (defaults to off), which quickly exposes errors with RNA functions holding string pointers by making a temp copy of the string and freeing after the function is called.

10 years agofix [#27304] uiItemsFullEnumO: operator missing srna ''
Campbell Barton [Fri, 6 May 2011 02:55:09 +0000 (02:55 +0000)]
fix [#27304] uiItemsFullEnumO: operator missing srna ''
python strings are not static so dont hold pointers to them within blenders UI.

10 years ago[#26715] Blender2.57 crash when opening in Windows, non-latin char in path
Campbell Barton [Fri, 6 May 2011 01:03:36 +0000 (01:03 +0000)]
[#26715] Blender2.57 crash when opening in Windows, non-latin char in path
this isn't a fix but GetModuleFileName is returning a name that doesn't exist, so finding python after this isn't working.

Show a popup that the path has an invalid name so at least the user can move it.

10 years agoadd zlib include dir for cmake too.
Campbell Barton [Thu, 5 May 2011 22:41:49 +0000 (22:41 +0000)]
add zlib include dir for cmake too.

10 years agofix to scons after exotic was removed (patch from jms)
Dalai Felinto [Thu, 5 May 2011 18:50:17 +0000 (18:50 +0000)]
fix to scons after exotic was removed (patch from jms)

10 years agoFix for [#27294] Subframes cause dampened particles to behave differently
Janne Karhu [Thu, 5 May 2011 17:07:20 +0000 (17:07 +0000)]
Fix for [#27294] Subframes cause dampened particles to behave differently
* The unphysical particle damping wasn't scaled according to the timestep.

10 years agofix [#27285] Renderslot missing
Campbell Barton [Thu, 5 May 2011 15:21:43 +0000 (15:21 +0000)]
fix [#27285] Renderslot missing
scale fixes size header buttons by DPI

10 years agosphinx api docs: fix for addons linking to the wrong operator SVN url's.
Campbell Barton [Thu, 5 May 2011 14:45:24 +0000 (14:45 +0000)]
sphinx api docs: fix for addons linking to the wrong operator SVN url's.
also change from blender from 'release' back to beta so new docs don't overwrite the 2.57b release docs.

10 years agoremove exotic.c, there was no operators to access these formats and they were not...
Campbell Barton [Thu, 5 May 2011 14:21:31 +0000 (14:21 +0000)]
remove exotic.c, there was no operators to access these formats and they were not well maintained.

10 years agoalternative to joe's commit r36451.
Campbell Barton [Wed, 4 May 2011 20:42:34 +0000 (20:42 +0000)]
alternative to joe's commit r36451.
loopcut now follows 'Release confirms' user preference.