Commit Graph

49420 Commits

Author SHA1 Message Date
Jason Wilkins
0fcb7d813e There is no GLenum called LIGHT_POSITION
There is an FAQ that mentions a mythical GL_LIGHT_POSITION, and lots of programmers speak of it, but this mythical creature does not exist!

The correct symbol is GL_POSITION
2012-05-04 07:23:50 +00:00
Nicholas Bishop
4ea8c9ab38 Small hull bmop fix, distance check from plane needs absolute value. 2012-05-04 03:25:46 +00:00
Sergey Sharybin
e3535e884a Style cleanup: spaces around operators 2012-05-03 23:47:39 +00:00
Sergey Sharybin
9a9924c79c Camera tracking: show disabled active track even if Show Disabled is switched off 2012-05-03 23:41:28 +00:00
Sergey Sharybin
48ead27366 Camera tracking: switch dopesheet information to lazy calculation
All operators which changes tracking data now just tags dopsheet as outdated,
actual re-calculaiton of happens only when this information is actually needed
(like on dopesheet draw).

This makes things a bit faster when there's no dopesheet visible in current
screen and also makes it much easier to update dopesheet using dependency
graph.

Also renamed dopesheet_sort_order to dopesheet_sort_method in rna and internal
stuff which makes much more sense and also correlated with naming in
file browser.
2012-05-03 23:15:01 +00:00
Campbell Barton
5da2135eef code cleanup: double promotion & some style cleanup 2012-05-03 21:35:04 +00:00
Brecht Van Lommel
b075765edd Fix #31258: collada now selects newly added objects after import. 2012-05-03 21:32:49 +00:00
Campbell Barton
552a70f177 code cleanup:
- replace iterators with macros
- move vertexCos checks outside the for loops (use 2 for loops).
- style cleanup
2012-05-03 21:19:31 +00:00
Campbell Barton
ae585d5969 fix for last commit, (warning was without openmp only) 2012-05-03 20:26:05 +00:00
Brecht Van Lommel
d0017e1813 Fix strand render + instancing render bug, gave tile artifacts. 2012-05-03 20:06:25 +00:00
Campbell Barton
2a1ba8c85b style cleanup: formatting and some float/double promotion 2012-05-03 19:57:24 +00:00
Campbell Barton
dfb3e41cf9 code cleanup: minor changes to get trunk compiling with strict warnings. 2012-05-03 19:47:16 +00:00
Sergey Sharybin
b1006fb949 Clip editor: sort order for dopesheet channels
Supported sorting by name, longest tracked segment and total tracked frames.

Internally tracks are stored in Tracking datablock, but sort order is
a clip editor space property and sorting happens on clip editor draw.
If there's no dopesheet opened with different sort orders it's not
a problem due to re-sorting wouldn't happen.

Also fixed draw issue of tracked segments introduced in previous commit.
2012-05-03 19:28:41 +00:00
Sergey Sharybin
5821c2973e Camera tracking: pre-calculate tracked segments for dopesheet channels 2012-05-03 17:52:34 +00:00
Sergey Sharybin
96693d37e6 Camera tracking: clear clipboard path before copying tracks to it. 2012-05-03 17:02:33 +00:00
Brecht Van Lommel
4965f3d022 Fix #31234: vertex normals not update after knife cut. 2012-05-03 16:35:51 +00:00
Brecht Van Lommel
763dee2904 Fix #31275: mesh draw issues after adding hook to mesh in edit mode. 2012-05-03 16:24:27 +00:00
Brecht Van Lommel
885c4a6e78 Fix #31273: videotexture ImageRender not working in blenderplayer. 2012-05-03 14:59:42 +00:00
Brecht Van Lommel
13e97f86d0 Fix #31259: particle grid distribution not working. 2012-05-03 13:56:15 +00:00
Sergey Sharybin
d10da0fbd2 Fix #31272: Blender Crashes when press render
Issue was caused by missed libraries. Seems compositor nodes already does check
in such cases, added the same check to texture and shader nodes.
2012-05-03 12:55:18 +00:00
Sergey Sharybin
eec8de9469 Fix #31254: OpenGL-Rendering dark without Effect-Strip
Issue was caused by the fact, that sequencer is working in sRGB space, but
when there's only image input strips we need to make sure conversion from
byte to float buffer would keep float buffer in sRGB space and wouldn't
make it linear as it's supposed to be in other areas.
2012-05-03 11:54:12 +00:00
Antony Riakiotakis
3509daa1c1 Fix #31178, the cause is hidden and selected faces would return NULL as UVElements. To avoid checking the whole contingency of UV synch selection + face selection + face hidden, added a NULL check. 2012-05-03 10:56:35 +00:00
Sergey Sharybin
56d22457e3 Fix #31266: Track preview is shifted by half a pixel 2012-05-03 10:40:04 +00:00
Brecht Van Lommel
3ee4be913b Fix #31139: fractal mesh subdivide was only working along normal where previously
it would displace in all directions. Now there's an operator option to control this.
2012-05-03 10:14:08 +00:00
Brecht Van Lommel
949de4688d Fix #31257: tiff reader not reading 16 bit grayscale images correctly. 2012-05-03 09:51:12 +00:00
Brecht Van Lommel
dcdf768147 Fix #31108: entering local view with glsl shows objects black. Now keeps lamps
affecting the material even if they are not part of the local view.
2012-05-03 09:31:59 +00:00
Lukas Toenne
d3a5fd5508 Enum property items were missing a terminator item. 2012-05-03 06:57:30 +00:00
Bastien Montagne
aecddee333 Grr! Fix for own error in r46193. 2012-05-03 05:39:30 +00:00
Jason Wilkins
90b0be522c Patch [#30965] Cancel Sculpt Stroke w/ ESCAPE
If the RMB has not been released after starting a sculpt stroke, then hitting escape will cancel the stroke in progress and undo any changes to the mesh.

This is a slightly faster work-flow than using undo, is a feature available in other paint programs, and also puts in place the infrastructure to add other keys later that could tweak strokes in different ways.
2012-05-03 04:11:53 +00:00
Jason Wilkins
2a6217859e Patch [#30255] Center Last Stroke
Enables the NUMPERIOD view centering operator to work in sculpt mode.  Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user.

This is useful for quickly refocusing on the current work area without fussing with the view controls.

It does not zoom into the stroke (slide only).

It does nothing if there have been no strokes.
2012-05-03 03:51:30 +00:00
Jason Wilkins
af1720bc77 ED_object_exit_editmode needs ED_object.h 2012-05-03 01:07:16 +00:00
Brecht Van Lommel
bfcee9addb Fix #31256: collada export while in edit mode does not export edit mode changes,
now uses same call as render to flush mesh without leaving edit mode.
2012-05-02 23:48:16 +00:00
Brecht Van Lommel
959a717d91 Fix #31250, #31248: wrong vertex normals after transform apply, collada import,
sculpt shape key switch. All cases that called this function needed parameter
only_face_normals set to false, so changed it now.

Also fixed wrong user count for imported mesh from collada and simplified
previous fix for tesselated faces to polygons conversion.
2012-05-02 23:36:34 +00:00
Brecht Van Lommel
893cd1b4fd Fix #31253: collada export default file name now is no longer always
untitled.dae, but rather uses .blend file name like other exporters.

Patch by Gaia Clary.
2012-05-02 23:36:31 +00:00
Nicholas Bishop
6f0cb140b0 Initialize an input in bmo_hull. 2012-05-02 23:29:52 +00:00
Brecht Van Lommel
203a4d42ca Fix #31089: collada file crashing on importing file with unknown/unsupported animation data. 2012-05-02 18:11:09 +00:00
Sergey Sharybin
3336909050 Merging r46137 through r46202 from trunk into soc-2011-tomato 2012-05-02 18:07:01 +00:00
Sergey Sharybin
a1f4be4577 Style cleanup: spaces around operators 2012-05-02 17:37:39 +00:00
Sergey Sharybin
6f3400ca52 Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view 2012-05-02 17:33:48 +00:00
Brecht Van Lommel
d64661b507 Cycles: add Ray Length output to Light Path node. This gives the distance travelled
by the last light ray. One use case for this might be to do absorption.

Patch #31232 by Agustin benavidez, see this blog post for details:
http://agus3d.blogspot.com.ar/2012/05/blender-cycles-ray-length-node-output.html
2012-05-02 17:03:46 +00:00
Sergey Sharybin
89f554fd24 Clip editor: remove Z-key shortcut for curve view. It doesn't make many sense anymore. 2012-05-02 17:01:48 +00:00
Sergey Sharybin
d821cdd948 Clip editor: added drag-n-drop support so files can be opened in clip editor
by drag-n-dropping them from an external application.
2012-05-02 16:42:42 +00:00
Juha Mäki-Kanto
66581e903c Fix #31176: Collada model shows weird textures in editmode
Issue with multimaterial meshes and mface to mpoly conversion being before assignment of materials (which is done on meshobject instancing?).
Added explicit bmesh conversion to MeshImporter which is called from DocumentImporter::import.
2012-05-02 16:18:20 +00:00
Brecht Van Lommel
ade7f59d0a Fix #31190: mirror modifier caused non-planar quads to be split differently on
the other side, now keep the first vertex of the polygon the same to avoid this.
2012-05-02 16:17:04 +00:00
Brecht Van Lommel
a0642a2597 Fix wrong unified weight paint value version patch, was doing incorrect version check.
Fix #31209: weight paint sample & fill not using correct brush/unified value.
2012-05-02 16:05:25 +00:00
Brecht Van Lommel
b2a9d012b4 Fix #31236: linking a socket of a different type to an existing node group output
would crash, did not convert default value storage correctly.
2012-05-02 15:47:15 +00:00
Bastien Montagne
1d2e1018f7 Small enhancement to Fast Gaussian compo blur node: do not compute when size is below 0.001!
(Was already checked/done for other blur algos, can be annoying when you animate the blur size to apply it only on a few frames.)
2012-05-02 14:29:12 +00:00
Brecht Van Lommel
5c5349e086 Fix: --debug-python command option was not working correct. 2012-05-02 14:23:00 +00:00
Brecht Van Lommel
30c2abd323 Fixes for recent cycles and python/context commits. 2012-05-02 14:22:22 +00:00
Bastien Montagne
3224ac738e CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.
Note that there is still a problem, destination ("site-packages") is not in blender's python path, so you have to edit sys.path before being able to import numpy... but at least it installs again.
2012-05-02 14:16:35 +00:00