Campbell Barton [Fri, 13 May 2011 16:55:07 +0000 (16:55 +0000)]
svn merge -r36651:36672 https://svn.blender.org/svnroot/bf-blender/trunk/blender
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.
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'.
Campbell Barton [Fri, 13 May 2011 13:17:30 +0000 (13:17 +0000)]
remove unused vars
Sergey Sharybin [Fri, 13 May 2011 12:57:54 +0000 (12:57 +0000)]
Use jemalloc in buildbot for linux targets
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.
Campbell Barton [Fri, 13 May 2011 10:59:30 +0000 (10:59 +0000)]
skip assigning vars for inline bmesh flag funcs, just cast.
Campbell Barton [Fri, 13 May 2011 10:49:26 +0000 (10:49 +0000)]
rename BMINDEX_GET/SET to BM_GetIndex/BM_SetIndex
Campbell Barton [Fri, 13 May 2011 04:53:20 +0000 (04:53 +0000)]
remove imbuf crect and profile_filename when building without LCMS
Campbell Barton [Fri, 13 May 2011 04:04:53 +0000 (04:04 +0000)]
svn merge -r36603:36651 https://svn.blender.org/svnroot/bf-blender/trunk/blender \nwith some manual edits
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. http://vimeo.com/
21870635 ).
Python code snippet for interpreting this data here: http://www.pasteall.org/21577 . 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()
Joseph Eagar [Thu, 12 May 2011 18:46:21 +0000 (18:46 +0000)]
=bmesh= fixed knifetool mem leak
Joseph Eagar [Thu, 12 May 2011 18:33:10 +0000 (18:33 +0000)]
=bmesh=fixed shapekey mem leak
Joseph Eagar [Thu, 12 May 2011 18:17:23 +0000 (18:17 +0000)]
demoved some extraneous members from BMHeader
Sergey Sharybin [Thu, 12 May 2011 18:04:24 +0000 (18:04 +0000)]
Forgot to close clipboard when lock fails.
Thanks to jesterKing!
Joseph Eagar [Thu, 12 May 2011 17:47:26 +0000 (17:47 +0000)]
=bmesh= fixed non-multires sculpt; excluding the DAG update won't work here, since the tesselation has to be recalculated.
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.
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
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).
Campbell Barton [Thu, 12 May 2011 11:16:32 +0000 (11:16 +0000)]
option to link with jemalloc on *nix, off by default.
Campbell Barton [Thu, 12 May 2011 09:02:39 +0000 (09:02 +0000)]
manually copy more changes from trunk.
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.
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.
Campbell Barton [Thu, 12 May 2011 06:32:21 +0000 (06:32 +0000)]
python utility module for converting between 2d/3d region/world coordinates.
Campbell Barton [Thu, 12 May 2011 05:35:19 +0000 (05:35 +0000)]
svn merge -r36603:36628 https://svn.blender.org/svnroot/bf-blender/trunk/blender
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: http://codereview.appspot.com/
4280080/
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.)
Joseph Eagar [Thu, 12 May 2011 01:55:08 +0000 (01:55 +0000)]
=bmesh=
1. Removed pinning, at least until after trunk
reintegration (it's a usefull feature, but
incomplete).
2. Ripped out the subclassing code I originally
wrote so bmesh would be more usable for modifiers
(I ended up improving CDDM instead).
3. Inlined some of the macros in bmesh.h, still need to
do the macros in bmesh_operator_api.h.
4. Removed the BMESH_ITER_*** macros (except for BMESH_ITER_INDEX).
They were too clunkly to be worth it.
Campbell Barton [Thu, 12 May 2011 00:20:35 +0000 (00:20 +0000)]
missing free call in rotsys_make_consistent
Joseph Eagar [Wed, 11 May 2011 20:40:03 +0000 (20:40 +0000)]
compile fix
Joseph Eagar [Wed, 11 May 2011 20:39:27 +0000 (20:39 +0000)]
remove remaining event recording code
Joseph Eagar [Wed, 11 May 2011 20:37:11 +0000 (20:37 +0000)]
add back ghost/guardedalloc from trunk
Joseph Eagar [Wed, 11 May 2011 20:36:30 +0000 (20:36 +0000)]
remove modified guardedalloc/ghost to rebranch from trunk
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. :)
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.
Campbell Barton [Wed, 11 May 2011 14:05:22 +0000 (14:05 +0000)]
updated Ctrl+Click extrude for bmesh so it can rotate the initial selection (as in trunk), and added back vertex projection function.
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.
Campbell Barton [Wed, 11 May 2011 09:31:00 +0000 (09:31 +0000)]
more syncing with trunk.
Campbell Barton [Wed, 11 May 2011 09:28:00 +0000 (09:28 +0000)]
manually merged older changes from trunk.
Campbell Barton [Wed, 11 May 2011 08:43:39 +0000 (08:43 +0000)]
reverting change made r20939 with custom data layer merging.
if this is really a fix it should be made in trunk first, but looks like it was committed by accident.
Campbell Barton [Wed, 11 May 2011 02:14:43 +0000 (02:14 +0000)]
set many vars & functions as static,
also commented invalid pin theme alpha assignment so bmesh branch builds with -Werror
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.
Campbell Barton [Wed, 11 May 2011 00:19:13 +0000 (00:19 +0000)]
svn merge -r36583:36603 https://svn.blender.org/svnroot/bf-blender/trunk/blender
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 :)
Campbell Barton [Tue, 10 May 2011 23:48:09 +0000 (23:48 +0000)]
fixed 4 uses of un-inirialized vars + some compiler warnings.
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.
Joseph Eagar [Tue, 10 May 2011 22:48:22 +0000 (22:48 +0000)]
=bmesh=
cleaned up multires projection math a bit,
and improved boundary smoothing.
Campbell Barton [Tue, 10 May 2011 21:59:11 +0000 (21:59 +0000)]
patch from Dan Eicher for cpack rpms
Joseph Eagar [Tue, 10 May 2011 17:01:26 +0000 (17:01 +0000)]
=bmesh= glsl drawing in editmode works again, also fixed some minor customdata bugs
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!
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.
Campbell Barton [Tue, 10 May 2011 14:48:06 +0000 (14:48 +0000)]
remove some duplicate declarations
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.
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
imbuf.
Daniel Salazar [Tue, 10 May 2011 05:20:18 +0000 (05:20 +0000)]
Typo in composition guides
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.
Campbell Barton [Tue, 10 May 2011 03:03:53 +0000 (03:03 +0000)]
camera composition guides: center, thirds, golden rule
Campbell Barton [Tue, 10 May 2011 00:45:06 +0000 (00:45 +0000)]
svn merge -r36564:36583 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Joseph Eagar [Mon, 9 May 2011 22:16:31 +0000 (22:16 +0000)]
=bmesh= fixed mesh deform crasher
Joseph Eagar [Mon, 9 May 2011 22:07:31 +0000 (22:07 +0000)]
=bmesh= fixed unlink uv selection bug
Joseph Eagar [Mon, 9 May 2011 22:05:07 +0000 (22:05 +0000)]
=bmesh= fixed prop crasher and knifetool modal map typo
Joseph Eagar [Mon, 9 May 2011 21:55:15 +0000 (21:55 +0000)]
=bmesh= fixed dissolve verts crash
Joseph Eagar [Mon, 9 May 2011 21:38:55 +0000 (21:38 +0000)]
=bmesh=
added modal keymap for knife tool.
I'm not sure how to handle the panning
pass-through, it's still hardcoded to
happen on MIDDLEMOUSE.
Nathan Letwory [Mon, 9 May 2011 21:34:52 +0000 (21:34 +0000)]
Revert rename of r36578, breaks scons compile.
Joseph Eagar [Mon, 9 May 2011 20:43:05 +0000 (20:43 +0000)]
=bmesh= undo loopcut commit, for some reason the recent merge didn't catch it
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.
Guillermo S. Romero [Mon, 9 May 2011 20:13:48 +0000 (20:13 +0000)]
SVN maintenance.
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.
Campbell Barton [Mon, 9 May 2011 14:41:44 +0000 (14:41 +0000)]
minor cleanup, no functional changes.
Campbell Barton [Mon, 9 May 2011 14:32:55 +0000 (14:32 +0000)]
tag unused arguments, quiet some warnings
Sergey Sharybin [Mon, 9 May 2011 13:13:16 +0000 (13:13 +0000)]
Recreate mipmaps after undo in image editor
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.
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.
Campbell Barton [Mon, 9 May 2011 09:38:48 +0000 (09:38 +0000)]
svn merge -r36529:36564 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Mon, 9 May 2011 08:20:39 +0000 (08:20 +0000)]
warning fixes
Campbell Barton [Mon, 9 May 2011 08:15:38 +0000 (08:15 +0000)]
set svn end of lines to native
Brecht Van Lommel [Mon, 9 May 2011 08:01:48 +0000 (08:01 +0000)]
Code cleanup: warning fixes.
Brecht Van Lommel [Mon, 9 May 2011 07:54:21 +0000 (07:54 +0000)]
Code cleanup: remove unused image window code, already implemented elsewhere.
Campbell Barton [Mon, 9 May 2011 07:48:16 +0000 (07:48 +0000)]
set the property on text files to native eol.
for x in `find . -name '*.c*'`; do svn propset svn:eol-style "native" $x; done
for x in `find . -name '*.h'`; do svn propset svn:eol-style "native" $x; done
Campbell Barton [Mon, 9 May 2011 06:53:39 +0000 (06:53 +0000)]
moved more minor changes across from trunk, fixed some incorrect merges and removed unused includes.
Campbell Barton [Mon, 9 May 2011 05:55:41 +0000 (05:55 +0000)]
writing normal customdata was failing because vec3f type wasn't stored in SDNA.
Campbell Barton [Mon, 9 May 2011 05:18:38 +0000 (05:18 +0000)]
removed the OBJ export recent commit, didnt realize BMesh had its own OBJ exporter.
Campbell Barton [Mon, 9 May 2011 05:09:07 +0000 (05:09 +0000)]
quiet more compiler warnings, also found a bug using printf rather then fprintf.
Campbell Barton [Mon, 9 May 2011 04:06:48 +0000 (04:06 +0000)]
more syncing with trunk, also cleared many warnings with gcc4.6
Campbell Barton [Mon, 9 May 2011 02:45:52 +0000 (02:45 +0000)]
copied across changes which were missed by merging.
Joseph Eagar [Sun, 8 May 2011 23:43:18 +0000 (23:43 +0000)]
=bmesh= merge from trunk at r36529
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.
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.
Campbell Barton [Sun, 8 May 2011 10:29:40 +0000 (10:29 +0000)]
comment some unused code.
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).
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
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
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:
http://projects.blender.org/tracker/index.php?func=detail&aid=25487&group_id=9&atid=306
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"
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)
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.
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
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.
Joseph Eagar [Sat, 7 May 2011 02:48:14 +0000 (02:48 +0000)]
=bmesh=
Cut out some unwanted differences with trunk
in preparation for merge. Also fixed some
warnings, though many remain.
Campbell Barton [Fri, 6 May 2011 23:59:15 +0000 (23:59 +0000)]
patch from Dan Eicher, CPack/RPM working again
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.
Campbell Barton [Fri, 6 May 2011 23:46:24 +0000 (23:46 +0000)]
fix [#27298] Alt + RMB always extends selection