Commit Graph

49420 Commits

Author SHA1 Message Date
Campbell Barton
c213b9525f minor changes to view3d operators, add View3D to 'ViewOpsData' 2011-05-14 05:42:58 +00:00
Campbell Barton
054eb2897c 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). 2011-05-14 04:59:37 +00:00
Campbell Barton
4b7d981c91 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.
2011-05-14 04:25:47 +00:00
Campbell Barton
daa3dd0e9b using the viewmatrix to position the camera could be problematic if the view wasn't yet recalculated, use the quaternion instead. 2011-05-13 18:32:27 +00:00
Campbell Barton
47569160d7 rename setcameratoview3d to view3d_to_ob & add to ED_view3d.h so others can use. 2011-05-13 18:05:30 +00:00
Campbell Barton
16710fb3c2 svn merge -r36651:36672 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-05-13 16:55:07 +00:00
Campbell Barton
62cd927f57 made BLI_edgefill returns the list length since some callers count directly after, also remove 2 unused flags from ScFillVert struct. 2011-05-13 16:04:20 +00:00
Brecht Van Lommel
922bb24865 Cycles: color space control for image/environment texture nodes. Ideally would
be automated but need to think about how to do this, not so simply in a node
system. But guideline for now is, for color textures set to sRGB, for things like
bump or roughness map, set to Linear.
2011-05-13 14:32:08 +00:00
Brecht Van Lommel
50d1a5b1eb Cycles: action zone drawing tweak. 2011-05-13 14:29:07 +00:00
Campbell Barton
05d004fd14 support for reading/writing image resolution (dpi), for PNG and TIFF,
only RNA access currently 'image.resolution'.
2011-05-13 14:27:12 +00:00
Campbell Barton
068c627013 remove unused vars 2011-05-13 13:17:30 +00:00
Brecht Van Lommel
f48fbd3f68 Cycles: fix node link remove from menu not working. 2011-05-13 12:10:03 +00:00
Campbell Barton
73e2b88f62 skip assigning vars for inline bmesh flag funcs, just cast. 2011-05-13 10:59:30 +00:00
Campbell Barton
1d8fa52883 rename BMINDEX_GET/SET to BM_GetIndex/BM_SetIndex 2011-05-13 10:49:26 +00:00
Campbell Barton
91bddf2b13 remove imbuf crect and profile_filename when building without LCMS 2011-05-13 04:53:20 +00:00
Campbell Barton
6cc8f734c0 svn merge -r36603:36651 https://svn.blender.org/svnroot/bf-blender/trunk/blender \nwith some manual edits 2011-05-13 04:04:53 +00:00
Matt Ebb
b73fe01295 * 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()
2011-05-12 22:52:30 +00:00
Joseph Eagar
e636893b1b =bmesh= fixed knifetool mem leak 2011-05-12 18:46:21 +00:00
Joseph Eagar
cc2352cdd0 =bmesh=fixed shapekey mem leak 2011-05-12 18:33:10 +00:00
Joseph Eagar
0400b2e136 demoved some extraneous members from BMHeader 2011-05-12 18:17:23 +00:00
Joseph Eagar
6dc8a64d3e =bmesh= fixed non-multires sculpt; excluding the DAG update won't work here, since the tesselation has to be recalculated. 2011-05-12 17:47:26 +00:00
Sergey Sharybin
1d6278f80a 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.
2011-05-12 16:49:53 +00:00
Campbell Barton
5f5cdf9d00 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
2011-05-12 16:47:36 +00:00
Ton Roosendaal
2ca7ded51d 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).
2011-05-12 13:49:47 +00:00
Campbell Barton
33bfcb26b8 manually copy more changes from trunk. 2011-05-12 09:02:39 +00:00
Campbell Barton
2f08309ffe 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. 2011-05-12 06:52:24 +00:00
Campbell Barton
191ad54599 svn merge -r36603:36628 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-05-12 05:35:19 +00:00
Nicholas Bishop
910220be47 == 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.)
2011-05-12 01:57:47 +00:00
Joseph Eagar
521d824371 =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.
2011-05-12 01:55:08 +00:00
Campbell Barton
88c3781b7c missing free call in rotsys_make_consistent 2011-05-12 00:20:35 +00:00
Joseph Eagar
9f5de68e53 compile fix 2011-05-11 20:40:03 +00:00
Joseph Eagar
b72f087e7e remove remaining event recording code 2011-05-11 20:39:27 +00:00
Joseph Eagar
ee7b7a500a remove modified guardedalloc/ghost to rebranch from trunk 2011-05-11 20:36:30 +00:00
Thomas Dinges
040f65f6c2 2.5 Smoke UI:
* More generic tooltip for "strength" property as it can be FFT as well. 
Discovered by tobkum in IRC. :)
2011-05-11 20:23:55 +00:00
Brecht Van Lommel
3a34dcde68 Code cleanup: remove readblenfile module, only contained some utility functions
to read .blend files from runtimes, folded those into blenloader.
2011-05-11 19:29:23 +00:00
Campbell Barton
c865793d9e updated Ctrl+Click extrude for bmesh so it can rotate the initial selection (as in trunk), and added back vertex projection function. 2011-05-11 14:05:22 +00:00
Campbell Barton
fcc85eea12 recent camera border drawing glitch fix needs to be applied to the top right sides too. 2011-05-11 09:42:46 +00:00
Campbell Barton
1e90add66c more syncing with trunk. 2011-05-11 09:31:00 +00:00
Campbell Barton
b254960873 manually merged older changes from trunk. 2011-05-11 09:28:00 +00:00
Campbell Barton
75512cee82 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.
2011-05-11 08:43:39 +00:00
Campbell Barton
cd55aeaf6d set many vars & functions as static,
also commented invalid pin theme alpha assignment so bmesh branch builds with -Werror
2011-05-11 02:14:43 +00:00
Campbell Barton
a3ab7c01bb 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.
2011-05-11 00:59:22 +00:00
Campbell Barton
0f329ebdf1 svn merge -r36583:36603 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-05-11 00:19:13 +00:00
Campbell Barton
bcdd9d236c fixed 4 uses of un-inirialized vars + some compiler warnings. 2011-05-10 23:48:09 +00:00
Joseph Eagar
a7b07ca584 =bmesh=
cleaned up multires projection math a bit,
and improved boundary smoothing.
2011-05-10 22:48:22 +00:00
Joseph Eagar
086d013ec2 =bmesh= glsl drawing in editmode works again, also fixed some minor customdata bugs 2011-05-10 17:01:26 +00:00
Ton Roosendaal
0c990fba6e Bugfix #27305
RGB color node supports to set alpha too but never put alpha in the output.
Report + fix provided by Dani G. Thanks!
2011-05-10 16:30:03 +00:00
Ton Roosendaal
f1f1dde1c8 Bugfix #27311
Physics Gravity property now has UI range of 0-25, but real range goes
to 10000 to allow scaled scenes.
2011-05-10 15:13:03 +00:00
Campbell Barton
89a166d0de remove some duplicate declarations 2011-05-10 14:48:06 +00:00
Sergey Sharybin
1d53ea0a65 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.
2011-05-10 14:38:55 +00:00